大家好,我是初学者,编了个时间程序。
#include<QApplication>
[pre]#include<QLabel>[/pre][pre]#include<QDateTime>[/pre][pre]int main(int argc,char* argv[])[/pre][pre]{[/pre][pre]QApplication app(argc,argv);[/pre][pre]QLabel *datalabel =new QLabel();[/pre][pre] QDateTime *datetime=new QDateTime(QDateTime::currentDateTime());[/pre][pre] datalabel->setText(datetime->date().toString());[/pre][pre] datalabel->show();[/pre][pre] return app.exec();[/pre][pre]}[/pre][pre]找了个时间程序,但编译出错。[/pre][pre]为stray'\241'in program是怎么回事呢[/pre]