Visual Studio

Visual Studio

心舞飞扬 发布于 2021-11-27 字数 50 浏览 806 回复 7

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

扫码加入群聊

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

刘备忘录 2021-12-01 7 楼

for(count = 1; ount <= WIDTH; count++)

count != ount

私藏温柔 2021-12-01 6 楼

你的括号都是全角的

丢了幸福的猪 2021-12-01 5 楼

#include <stdio.h> 

#define NAME "GIGATHINK,INC. " 

#define ADDRESS "101 Megabuck Plaza" 

#define PLACE "Megapolis,CA 94904" 

#define WIDTH 40 

void starbar(void);

int main(void)

{

starbar();

printf("%sn",NAME);

printf("%sn",ADDRESS);

printf("%sn",PLACE);

starbar();  /* 使用函数 */

return 0;

}

void starbar(void)  /* 定义函数 */

{

int count;

for(count = 1; ount <= WIDTH; count++)

putchar('*');

putchar('n');

}

5 IntelliSense: incomplete type is not allowed d:CworkspacetesttestTest.c 7 6 test
7 IntelliSense: incomplete type is not allowed d:CworkspacetesttestTest.c 19 6 test
6 IntelliSense: expected a ';' d:CworkspacetesttestTest.c 10 1 test
8 IntelliSense: expected a ';' d:CworkspacetesttestTest.c 20 2 test
Error 1 error C2182: 'starbar(void)' : illegal use of type 'void' d:cworkspacetesttesttest.c 7 1 test
Error 3 error C2182: 'starbar(void)' : illegal use of type 'void' d:cworkspacetesttesttest.c 20 1 test
Error 4 error C2054: expected '(' to follow 'starbar(void)' d:cworkspacetesttesttest.c 20 1 test
Error 2 error C2054: expected '(' to follow 'main(void)' d:cworkspacetesttesttest.c 10 1 test

我改成英文分号,还是报这些错误啊

做个少女永远怀春 2021-12-01 4 楼

你这个分号显然是全角符~

画骨成沙 2021-12-01 3 楼

楼上正解,别老用中文的注释,你写的这类注释用下英文也不错,这样就不用中文输入法了

情痴 2021-11-30 2 楼

怎么感觉是 标点符号使用了中文的

可是我不能没有你 2021-11-30 1 楼

引用来自“cuiliu”的评论

#include <stdio.h> 

#define NAME "GIGATHINK,INC. " 

#define ADDRESS "101 Megabuck Plaza" 

#define PLACE "Megapolis,CA 94904" 

#define WIDTH 40 

void starbar(void);

int main(void)

{

starbar();

printf("%sn",NAME);

printf("%sn",ADDRESS);

printf("%sn",PLACE);

starbar();  /* 使用函数 */

return 0;

}

void starbar(void)  /* 定义函数 */

{

int count;

for(count = 1; ount <= WIDTH; count++)

putchar('*');

putchar('n');

}

5 IntelliSense: incomplete type is not allowed d:CworkspacetesttestTest.c 7 6 test
7 IntelliSense: incomplete type is not allowed d:CworkspacetesttestTest.c 19 6 test
6 IntelliSense: expected a ';' d:CworkspacetesttestTest.c 10 1 test
8 IntelliSense: expected a ';' d:CworkspacetesttestTest.c 20 2 test
Error 1 error C2182: 'starbar(void)' : illegal use of type 'void' d:cworkspacetesttesttest.c 7 1 test
Error 3 error C2182: 'starbar(void)' : illegal use of type 'void' d:cworkspacetesttesttest.c 20 1 test
Error 4 error C2054: expected '(' to follow 'starbar(void)' d:cworkspacetesttesttest.c 20 1 test
Error 2 error C2054: expected '(' to follow 'main(void)' d:cworkspacetesttesttest.c 10 1 test

我改成英文分号,还是报这些错误啊