[code]
#include < iostream.h >
#include < conio.h > //for getch()
void main()
{
Printable View
[code]
#include < iostream.h >
#include < conio.h > //for getch()
void main()
{
แนะนำอีกวิธีนึงครับ โดยการใช้ shell command ใน console
Code:#include < cstdlib >
using namespace std;
int main(int argc, char* argv[])
{
/* wait for any key input here */
system("pause");
}
ง่ะ ทำไมตรง include มันหายไปเนี่ย -_-'
เอาเป็นว่อย่าลืม include standard library (cstdlib) ก็แล้วกันครับ ก่อนใช้ฟังก์ชัน system()