Forum Replies Created

Viewing 15 posts - 1 through 15 (of 41 total)
  • Author
    Posts
  • in reply to: Business & Personal Webhosting Packages. #3588
    msaqib
    Participant

    I have been using godaddy.com to host my websites. It’s quite affordable and provides lots of extra services. Plus unlimited subdomains and host unlimited websites.

    I also used brinksters but didn’t like it much.

    in reply to: prob in running a graphics program in c lang.. #3540
    msaqib
    Participant

    Are you using turbo C++ compiler to compile and run your programs or what?

    in reply to: Help – file reading #3535
    msaqib
    Participant

    The code

    reads the file and function fgets() reads the file line by line. So when the program reads first line, it skips the first line of records which is
    No Matrix quiz1(5%) quiz1(5%) quiz1(5%) Proj(25%) MidT(20%) Final(40%)
    and is done by this code:

    And you read all the marks and data in else part of the program.

    in reply to: Help – file reading #3532
    msaqib
    Participant

    Use fgets() function to read the file line by line and then split the string and store all the values in variables.

    in reply to: Cannot implicitly convert type int to string? why? #3405
    msaqib
    Participant

    HelloYou are trying to use string type variable in your switch statement which is expecting an int type variable. Here is how you are doing

    Now the problem is you can not use string type variable in switch statement. You could use it like

    Or you could have use int type variable like

    in reply to: draw chess board #3360
    msaqib
    Participant

    Someone has already done the hard work for you :D. So you can use the same graphis.h functions and library. So what you have to do is, https://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/ checkout this webpage, read through it, and download the gaphics library and graphics.h header file.
    Next step is to read the manual on how to prepare you project to use this library. And thats it, you are done.
    Here is a simple graphics program which i wrote for my Borland compiler 3. But the same program without any modifications is working fine on Dev-C++ 4.9.

    • This reply was modified 9 years, 6 months ago by M. Saqib.
    • This reply was modified 7 years ago by M. Saqib. Reason: Code formatting
    • This reply was modified 7 years ago by M. Saqib.
    in reply to: C++ abrupt termination #3353
    msaqib
    Participant

    Hey
    Yes I got the same error, this is not the compiler or OS error. Actually the variable choice in your program is of type int. And you use that variable to get the input from the user to make the decision and navigate through the menu. So now the problem is when enters character instead of an integer value, it crashes your program.

    So the solution to your problem is that you will have to check this input first, whether the choice is of type integer or character. If its of character type then ignore it, as you are doing cin.ignore(); but you will have to implement it properly. As cin.ignore(); ignores characters only.

    in reply to: C++ abrupt termination #3352
    msaqib
    Participant

    Hello

    Well it’s quite strange then, because I am using the same compile, OS version. Do you exit the program when you press ‘0’? And then press Enter kay to exit the program?

    I did the same thing, it worked fine here…

    May be anyone else might help you out here. For me this program works fine.

    I did not talk about smilies in the post, infact they are to show the feelings. I am talking about the language like

    @Encrypted wrote:

    nd i m usin windows XP SP2 ….
    hwever it ddnt wrk even in windows 2000 …
    nd 1 more thng…u r sayin its wrkn fine thru ur compiler

    You could have written it like
    and i am using windows xp SP2
    How ever it did not work even in windows 2000…
    and one more thing..you are saying its working fine through your compiles

    This way it looks quite readable.

    Thanks

    in reply to: C++ abrupt termination #3349
    msaqib
    Participant

    Hello

    I have jsut compiled and run your program, and it works fine with me. I am using the same version of borland turbo c compiler on windows XP. It didn’t give me any errors or warning message and the program remained stable. Turbo C neither crashed nor closed with or without any warnings.
     
    What operating system do you use?

    Note:
    @Encrypted wrote:

    dis is my code…
    now wen i run it, it runs well nd fine…widout ne problems…
    but as sun as i exit it…instead of returnin to TC compiler, it jsts exits to d windows…
    soo…now if u hav gotta time for it…den pls check it out…
    nd giv me a reason nd solution…

    nd yaaa…i m using a Borland  Turbo C compiler of version 3.0….thot it mite help u…

    Please read the forums guidelines, as people would not understand this language,  it looks like some sort of chatting language :P
    But I would advise not to use it because it looks a bit odd and one can’t understand it easily.

    in reply to: C++ abrupt termination #3348
    msaqib
    Participant

    What operating system are you using?
    I worked on Win 98, 2000 and XP. turbo C/C++ compiler has no problems while using on win98. But if you write code which try to directly access any I/O port like COM port, then it causes problems. Because win 2000 and XP has some restrictions on accessing these resources.

    So if this is causing the problem for you…then I would advise you to use either win98 or change your program in a way that can safely access I/O devices.

    Or you could explain any situation when your program crashed, was that TC.exe file itself or you were trying to compile and run any program on TC?

    in reply to: Errors in my program #3327
    msaqib
    Participant

    Hello
    I have made few changes to your program and its working fine and shows all the details about the bitmap image. What I think is that you have copied and pasted the code from some other source, and there were some errors (might be pasting errors), that was the reason your program was not working.
    OK! I have tested your program on MS visual C++ 6 compiler and working fine. Below you can find the working code for your program. As it was an MFc application so “stdafx.h” header file has been added. Also if you goto the line (54-56) you will find that some code is commented, I think that was not a necessary code and was also creating some errors of type casting. If you really need that code to use then you will have to get around with it through some other ways.
    Because

    you can not declare an array variable with dynamic size which can change at run time. You can use some other techniques like type casting. Rest of the code is working fine.
    Oh one more thing, by default MS visual Studio environment creates a single threaded application where as the libraries used in this program are multithreaded so you might get some errors at run time. To run the program smoothly you will need to make few changes in project settings. You will need to perform the following tasks before running the project.
    Change the application to multithreaded. To do this:
    1. Go to Project Settings and select the ‘C/C++’ tab.
    2. Select ‘Code Generation’ in Category.
    3. Set Use run-time library to either Debug Multithreaded (for debug builds) or Multithreaded (for release builds).
    Best of luck with your project.

    in reply to: REGISTRATION 4 PROGRAMMING(c/c++) CONTEST #3324
    msaqib
    Participant

    Hi
     
    Please provide a proper working link.

    in reply to: Question about secure file transfer #3320
    msaqib
    Participant

    Secure File Transfer is a secure way to move business critical files between almost any two computers across the networks. Its just a service which is provided by third parties, and one person upload the files to the thirdparty’s server and which is later picked by the other person. And the third party may apply extra security features on the fliles including encrypation, passwords, access level etc..

    in reply to: Change text clour #3313
    msaqib
    Participant

    Here is the program you are looking for. That program actually does the color and background color change but also blinks the text.

    • This reply was modified 9 years, 6 months ago by msaqib.
    • This reply was modified 3 years, 10 months ago by M. Saqib.
    in reply to: C++ Games #3311
    msaqib
    Participant

    Hello,

    How come you know me? yes I am from pak and I am the webmaster of this website.
     
     

Viewing 15 posts - 1 through 15 (of 41 total)