Hi toysoldier,
I found this link quite useful. It really helped clear up a lot of my input woes.
http://www.augustcouncil.com/~tgibson/tutorial/iotips.html
Hope it helps you.
Type: Posts; User: Elhaz
Hi toysoldier,
I found this link quite useful. It really helped clear up a lot of my input woes.
http://www.augustcouncil.com/~tgibson/tutorial/iotips.html
Hope it helps you.
Notice elad said loops. When I do it I use two for loops, one nested within the other.
I recently made a tic-tac-toe game and in the first version I filled the array I used for the board...
Thanks Hunter2 and elad. I'll check out the windows.h header and see what I can find.
Thanks Hunter2,
SetConsoleCursorPosition(hConsole, coordScreen);
Does this actually position the console on the screen? Or just the cursor in the console?
And do I need to include some...
Hi PJYelton,
That was very useful, thanks. Is there a similar code to position the console on the screen? I find that my extended console opens down off the screen a little the first time the...
Hi dAzed,
You missed the closing curly bracket } at the end of void averageScore(int num[]) - it thinks you're trying to declare void highestScore (int exam[]) in void averageScore(int num[]).
Hi deadkat,
Maybe this will help a little...
You need to apply %2 to every possible x entry, right? But it's impossible to create a seperate case in a switch statement for every possible x...
I use Win Xp Home with Dev-C++ and things seem to compile just fine. But my XP Home is the japanese version so... I don't know if that confirms or disproves anything as there may be differences...
Hi Tryce,
I have no idea if this'll help or not but I figure it's worth a shot posting it just in case. I got DevC++ from a disk in the back of my first C++ book. There's a fairly good step by...
Hunter2,
That while is loads better than my for loop. I never woulda thought of using the bool. Cool.
Dae,
Ya, I suppose you're right. But it's sooo hard to look away! :D
Hi Dae,
I worked through this one last night. Like you, I used a for loop and a whole mess of ifs (though my for loop is a little different than yours).
I won't post my code unless XenoForce...
I started out with Liberty BASIC (it was free!).
With C++, as a beginner, I've been staring into the black and white text of of the console for the past two months. With Liberty BASIC, after...
Thanks jlou. For some strange reason I had the two streams confused in my mind (going into the input buffer then waiting, then coming out of the input buffer when cin.get() was called... "out of",...
I don' know. That's the first time I've seen those. I'll check them out. Thanks.
Sometimes when I use cin.get() to pause the program before ending (keep the console open long enough to read it) it doesn't work by itself and I have to precede it with cin.ignore(). I understand...
Hi Sako,
Waldo2K2 mentioned spyware.
I had a spyware incident that might be relavant to your situation. After installing and running Ad-aware (an anti-spyware prog), I kept receiving a similar...
Hi Vicious,
This is perfect timing. I just finished a chapter on binary operators. Thanks for posting this. I still haven't got to file input/output yet but I think I can follow what you've...
No worries Micko. Not a problem. I do appreciate your comments though. It gave me another angle from which to work on figuring it out.
Thanks.
Thanks Micko.
I did search MSDN a while back but could only find XML references to round (). I didn't see any C++. Though I'm sure I probably just missed it. Could you post the link to theC++...
Thanks jlou and Salem.
It never occurred to me that it could be nested so deeply.
Salem, I tried your suggestion but I don't think I'm using it right. I couldn't get it to work. I saved the...
Hi Micko,
Thanks for the reply.
I read your response over several times but I don't think it answers my question (maybe I'm missing something though?). Can you explain why my version of round...
Hi there,
I just finished this and had a question.
I was asked to "create a void function called round() that rounds the value of its double argument to the nearest whole value. Have round()...
Hi ChaosTony,
If you're trying to calculate the hypotenuse of a right angle triangle I think you'll need a sqrt() in there somewhere.
Hi AdamLAN,
You might try Ogden's Basic English. It's a bit old but it gives a list of 850 basic English words.
Be sure to note the "criticisms" section, though, in the above link.
You...
Hi Hoschi,
I see it now. The exit (0) is a library function. I didn't look at it (think about it) carefully enough. My mistake. I'll try to be more careful about "piping up" in the future. ...