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

一步步学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();
}



posted @ 2011-08-27 13:05  Podevor  阅读(257)  评论(0编辑  收藏  举报