Qt程序的一个编译错误 70
#include<QCoreApplication>#include<QDebug>intmain(intargc,char*argv[]){QCoreApplicati...
#include <QCoreApplication>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "闸" << endl;
return a.exec();
}
为什么会出错
warning: C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
error: C2001: newline in constant
error: C2143: syntax error : missing ';' before 'return' 展开
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "闸" << endl;
return a.exec();
}
为什么会出错
warning: C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
error: C2001: newline in constant
error: C2143: syntax error : missing ';' before 'return' 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏70(财富值+成长值)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询