使用Visual studio2017community版本写c程序
报错误:C2061 语法错误: 标识符“noexcept”
共报错了1000多个问题,意识到不是我写的语法问题,一定是其他问题。
搜索后判定问题为:
很简单,其实就是引用了c++的头文件,将c++的头文件注掉即可。
//#include <iostream>
#include<stdio.h>
#include<stdlib.h>
int main()
{
printf("hello advanced c!");
return EXIT_SUCCESS;
}