/*
* c++11关键字
* noexcept
* 告诉编译器不会报异常
* 小鱼号的代码日志
*/
#include <QCoreApplication>
#include <iostream>
using namespace std;
void f() noexcept
{
cout << "hello" << endl;
}
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
f();
return a.exec();
}
网友评论