Last Online: 5/19/07
C++Programmers
A place where C++ programmers gather, share code,
ideas, good books, and/or anything else related to
C++. C/C# can also be included.
~[Adam Phelps]~
ideas, good books, and/or anything else related to
C++. C/C# can also be included.
~[Adam Phelps]~
~Helpful hints(beginner)~
To keep your programs form closing after it has been executed. Here are two ways of doing this.
cin.get();
This one is very easy, and dosen't require and extra header files except the main one.
Or:
Add this as one of the headers:
#include<windows>
The windows header has the function ' system("PAUSE") ' that we will use. After you put that, put this before ' return 0; ' :
system("PAUSE");
This should prompt a message that says "press any key to continue". This will keep the program from closing after it has executed.
Now something you will all like :).
To make a beeping noise:
std::cout<<"\a";
My dad showed me that one :D.
cin.get();
This one is very easy, and dosen't require and extra header files except the main one.
Or:
Add this as one of the headers:
#include<windows>
The windows header has the function ' system("PAUSE") ' that we will use. After you put that, put this before ' return 0; ' :
system("PAUSE");
This should prompt a message that says "press any key to continue". This will keep the program from closing after it has executed.
Now something you will all like :).
To make a beeping noise:
std::cout<<"\a";
My dad showed me that one :D.







This is a private group; you must be a member of the group to see discussion threads.
Click the Join this Group button to request membership