Results 1 to 3 of 3

Thread: การใช้คำสั่ง getch ในการหยุดหน้าจอหลังรันเสร็จ

  1. #1
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    การใช้คำสั่ง getch ในการหยุดหน้าจอหลังรันเสร็จ

    [code]
    #include < iostream.h >
    #include < conio.h > //for getch()
    void main()
    {

  2. #2
    Anonymous
    Guest


    Re: การใช้คำสั่ง getch ในการหยุดหน้าจอหลังรันเสร็จ

    แนะนำอีกวิธีนึงครับ โดยการใช้ shell command ใน console

    Code:
    #include < cstdlib >
    using namespace std;
    
    int main(int argc, char* argv[])
    {
    /* wait for any key input here */
    system("pause");
    }

  3. #3
    Anonymous
    Guest


    Re: การใช้คำสั่ง getch ในการหยุดหน้าจอหลังรันเสร็จ

    ง่ะ ทำไมตรง include มันหายไปเนี่ย '
    เอาเป็นว่อย่าลืม include standard library (cstdlib) ก็แล้วกันครับ ก่อนใช้ฟังก์ชัน system()

Similar Threads

  1. Replies: 1
    Last Post: 25-11-2008, 02:48 PM
  2. Replies: 0
    Last Post: 17-05-2008, 10:26 PM
  3. Replies: 0
    Last Post: 25-11-2003, 08:16 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •