User Profile
Collapse
-
I'm still a newb to C++, but from what I've read you want to check out SDL, DirectX9/10, and OpenGL probably. If you search the forums there is someone else asking the same type of question and someone linked an SDL tutorial site. I'm gonna check it out when I get home. -
Yeah I tried that and it did not work. I just need to figure out a way to use File I/O another way I guess.
Thanks for the help...Leave a comment:
-
-
Well thats my problem. How do I get the string to be displayed in the file?
Also, another thing that is bugging me is when I run the File I/O by itself it still does not work. Can you not use a string to input something into a file? I.e.
...Code:ifstream inFile; ofstream outFile; inFile.open("i.txt); outFile.open("o.txt"); inFile >> string; outFileLeave a comment:
-
I need to input the string into the file though, cin >> will not do this will it?...Leave a comment:
-
File I/O problem and other functions
Hey everyone,
I was making a program for a class, and I ran into a problem that is driving me crazy. I first suspected Vista, and since I am not home I cannot verify if it just my Vista computer, anyway, here is the problem.
I know this is a lame program, but I lacked the creativity to come up with a program including all the required items in three days. I ended up getting 351/585(60%) on this because, I didn't include... -
Yeah, I noticed that right after my last post. I would of edited it myself, but it wouldn't let me edit passed the last post for some reason. Sicarie edited the code spots for me though. Thank you Sicarie.
strife...Leave a comment:
-
Need help finding highest number through user input
Lost quote, because I was just trying to get it down for you guys. Is there a way to make it show color coded text while posting? I'm doing it all as if it were in notepad, so it makes it a little harder.
I'll try pseudo code and see if it helps me.
Thanks for the help,
strife...Leave a comment:
-
That was supposed to be a space. I thought it looked wrong, :). I fixed it and just made it "Enter number ". That is what you meant right? CORRECTION:
I noticed what you meant after editing the wrong item. It is fixed now.
The case works absolutely fine. I use char choice; and I give a menu of "select A, B, or C, so this is why I am using a switch statement with char cases. I don't think the case is the problem,...Leave a comment:
-
well I kind of sort of did. I tried a couple of times and I am just not getting it.
I am still just a beginner. I am in the first level programming class. I have been doing fine up till this point. The control structures, although easy, are at the same time hard. The if, if...else, and switch statements were easier than the loops for me.
I guess I'll try to get it on paper again, but all I do on paper is write what the code should look...Leave a comment:
-
Need helping finding highest number from user input.
Hi,
This is a homework question. I will try to keep it minimal so not to have anyone do it for me. I am really just stuck on one small spot.
I have to figure out the highest number from a users input.
I give them a menu to choose from, and I am stuck on only one of the choices.
When this choice is picked I must allow the user to enter how many numbers he/she wants to enter; then I must figure out...
No activity results to display
Show More
Leave a comment: