Post all of your code, please. If you're not at the point where you can solve that particular error, I'd much rather just show you the correct fix in your actual code than play twenty questions to figure out what you're doing wrong.
You can also use system("PAUSE") but I think it is only for windows.
system("PAUSE") will work for any system that has a PAUSE program available. This is a very Bad Thing™ because that program doesn't need to be provided by the system, nor does it need to do anything even close to suspending execution of your program. Even on Windows, where this idiom originated and a system-provided PAUSE program is available, a malicious user could replace that program with malware under the same name and you'd run it happily.
The system("PAUSE") idiom is a huge, gaping security hole.
:) I would like to hear those stories. I actually wanted to be a hacker when I was 11 years old and thats how I started programming. But I find "good" programming much more fun then hacking. But still I do not find current copyright laws suitable for our society so.... errrr, Me is a pirate.