Forum: C++ Feb 3rd, 2005 |
| Replies: 3 Views: 1,771 I don't understand why the user would enter a character. |
Forum: C++ Feb 3rd, 2005 |
| Replies: 30 Views: 6,847 Well looking at your solution, the user can enter even a negative. Says the input must be more than 10 so... as a suggestion (for the getsalary())
int getsalary()
{
int usersalary=0;
... |
Forum: C++ Feb 2nd, 2005 |
| Replies: 5 Views: 2,971 Adding on, GetTickCount() is also a way to seed the random number generator
srand( GetTickCount() ); |
Forum: C++ Jan 28th, 2005 |
| Replies: 9 Views: 10,378 Oh and to answer the question of multiple compilations... it only defines the file name if it wasnt defined. |
Forum: C++ Jan 28th, 2005 |
| Replies: 9 Views: 10,378 Header files aren't compiled but when the compiler sees
#include "filehere.h" ,
it looks for the file for that name in the directories specified. Then it looks through the header during runtime for... |
Forum: C Jan 22nd, 2005 |
| Replies: 8 Views: 14,099 Ok well, the reason why it's easy in win32 to check for keyboard input is because you can check for a window message WM_KEYDOWN. Each key has a specific virtual key code, but, you can figure that... |
Forum: C Jan 22nd, 2005 |
| Replies: 8 Views: 14,099 Well, i think i know what you mean but it may help to know what kind of program you want to make. If it's a win32 application, checking for keyboard input during a loop is easy, but if this isnt a... |
Forum: C++ Jan 16th, 2005 |
| Replies: 21 Views: 5,971 All i see in your code that could give a syntax error is the lack of a semicolon after the function call order_chars. |
Forum: C++ Nov 4th, 2004 |
| Replies: 3 Views: 2,227 I'm preety sure the error untermined character constant means you forgot to close a string in output with quotes.
I believe that occurs here:
cout << "\n\nDo you want to continue(Y/N)?
Needs... |
Forum: C++ Sep 29th, 2004 |
| Replies: 2 Views: 5,137 Hello, my name is Jonathan and I am a beginner programmer in my first year of studies. I am using a Turbo C++ editor and I'm trying to set up graphics. The problem is I'm not sure how. Here's how i... |