What OS and compiler are you using?
It's OS-specific. In Windows for example you could call GetKeyState(), and/or process the relevant WM_CHAR messages in your message loop.
". invelid like some thing" Riiiiiiiiiiiiight. That's really clear. Cos I'm a bit dumb, could you post the exact error?
Why would a competition need you to supply 100 questions? Why not write your own?
File -> New. Save as filename.h, in the directory you want it.
Shouldn't printData move to the beginning of the file _before_ reading anything from it? Have you checked there are multiple rows of data in the...
Identical.
Strange request. The assignment says "verify its operation by executing it" - so why don't you do that? "I wrote the program" Are you sure...
You could do it without any array storage but you would need some way of reading through the file twice; if you can "rewind" the file, or if not...
You don't appear to have read anything in from the file. I'm not even sure you've opened it (I don't know ifstream too well). Can I suggest...
What compiler are you using (include full version number)?
I don't see the point of Clayton's posts. Easiest way if you've got the space is a 3*256-byte lookup table (3*256, because if you have 3...
You might feel a slight tingling while I read your mind to get the error message(s). If you find it unpleasant (some do), post the errors here...
Please use code blocks when posting code. What is the weird output you see?
Yep, that's about it. I'd be inclined actually to use those values, for example desktopAmount = quantity * prices[0];
You've also got the second of the three: desktop(), laptop() and tablet() are user defined functions. Which of an enumerated data type, array or...
If I understand you correctly you've got part 1 sorted. The first part of part 2 is easy enough. Just compare name1 with name2, and name2 with...
operator int() casts to int, the return type is already known so it doesn't need specifying again. The syntax if it was specified would be int...
One way is to assign specific colours (or greyscale values) to specific depths. For example red=1, orange=2, yellow=3, green=4, blue=5. It's a...
I get no error (although I had to add "using namespace std;" to BookData.h) with Visual Studio 2010. What compiler and OS are you using...
Separate names with a comma.