Total Beginner

Started by
12 comments, last by RichieW 18 years, 8 months ago
EDIT: it's system("pause") - not system(pause)
"It's better to regret something you've done than to regret something you haven't done."
Advertisement
Quote:Original post by RichieW
Im getting:

implicit declaration of function `int system(...)'

when I try to compile it after adding system(pause); at the end. Anything else I need to add in?


Just open the .exe from an already open console, don't double click the .exe.

Or at the end of your main.cpp just add : getch(); ( Also #include <conio.h> to use getch() )
in order to use system, you need to include stdlib.h.
HxRender | Cornerstone SDL TutorialsCurrently picking on: Hedos, Programmer One
Quote:Original post by Shai
EDIT: it's system("pause") - not system(pause)


I did have system("pause"); written in the code, I just left it out here lol

Im getting the same compiler error I had before with the system("pause") command, but now with the getch();

*tears hair out in frustration*

This topic is closed to new replies.

Advertisement