竹園論壇

標題: 語法 [打印本頁]

作者: 林宇翔    時間: 2014-8-16 18:30
標題: 語法
本帖最後由 林宇翔@FB 於 2014-8-17 19:57 編輯

請問
可以把營隊最後一天
補充進階的那些語法列出來嗎(就是把版面上的東西清除 暫停......之類的)
我忘了抄
現在要用謝謝

作者: jd3    時間: 2014-8-16 21:48
範例:

[C++] 純文本查看 復制代碼
#include<iostream>
#include<cstdlib>
#include<conio.h>
#include<windows.h>

using namespace std;

int main()
{
        char c;
        while(1)
        {
                Sleep(100);        // in <Windows.h>
                cout << "按下按鍵" << endl;
                c = getch();        // in <conio.h>
                cout << "你按的按鍵是:" << c << endl;
                system("pause");
                cout << "plz wait for cls...\n";
                system("cls");
        }
        return 0;
}

作者: 林宇翔    時間: 2014-8-17 19:25
謝謝
感動




歡迎光臨 竹園論壇 (http://forum.tfcis.org/) Powered by Discuz! X3.2