阅读:7545回复:2
c语言: error: expected constructor, destructor, or type conversion bef
最近准备玩一下c语言,写了一句hello world. 代码如下:
#include <stdio.h> printf("hello world");报错: [Error] D:\CFreeProject\demo1.cpp:2: error: expected constructor, destructor, or type conversion before '(' token 原因: C语言不能直接执行代码,要写一个main方法 解决方案; #include <stdio.h> int main() { printf("hello world"); return 0; } |
|
|
沙发#
发布于:2019-09-18 16:35
|
|
|