现在的位置: 首页 > 综合 > 正文

一步步学Qt,第四天-Qt使用sleep

2014年09月15日 ⁄ 综合 ⁄ 共 277字 ⁄ 字号 评论关闭

一步步学Qt,第四天-Qt使用sleep

今天前使用过sleep函数,不过当时没有成功,也接触了QTime的qSleep函数,不过不得其意..今天的程序执行成功,看code

#include <QtCore/QCoreApplication>
#include <iostream>
#include <windows.h>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    Sleep(5000);
    cout << "asd" << endl;
    return a.exec();
}

抱歉!评论已关闭.