使用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;
}

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐