PrtScr capture


#include <QCoreApplication>
#include <QDebug>
#include "windows.h"                // Windows
// #include "#include <sys/stat.h>" // Linux
 
 
intmain(int argc, char * argv[]){
 
    QCoreApplication a(argc,argv);
 
    QString msg;
 
    for(int i=1;i<=10;i++){
        msg.sprintf("Hello:%d",i);
        qDebug()<<msg.toStdString().c_str();
        Sleep(1000);
    }
 
    returna.exec();
}
 

也可以參考:http://blog.csdn.net/dbzhang800/article/details/6300425

 

 

arrow
arrow
    全站熱搜

    黃彥霖 發表在 痞客邦 留言(0) 人氣()