Hmm, In VS2010 it is F11.
In Dev C++ it is F7.
I forgot what it is in Eclipse...
It may also good to get into the habit of setting up 'roadblocks' in your code, for parts you think may be causing it to fail... These roadblocks, would be, for example, printing out what part of the program you're at, e.g.
1 2 3 4 5 6 7 8
|
int main() {
cout << "I'm in main() now\n Press Enter to continue ... ";
cin.get();
//other stuff in main() func
cout << "I'm all done and about to return 0! \nPress Enter to continue ...";
cin.get();
return 0;
}
|
Doing something like that can help you to track down where errors are occuring, or where you missed something, etc. The built in debugger of any IDE is usually sufficient though, but it doesn't hurt, especially if your IDE doesn't do stepping (that'd be weird though).
Anyways,
Good luck with your project & Happy Coding!
Edit: after looking at your code more thoroughly, it is now clear to me that you're using Visual Studio ... lol
VS definately has a full debugger. So press either F11 or F10, depending on version I guess.