编译器中的fehler [英] fehler in compiler

查看:75
本文介绍了编译器中的fehler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试编译这个程序使用冥王星,它显示我的错误。在哪里schould fehler?


#include<" stdio.h"> ;

int main()

{

int counter;

int even = 0;

int b = 7,int h = 10;

如果h + = b%10;

b / = 10;

for(counter = 1; counter< = 10; counter ++);

{

if(偶数== 1)

for(b = 1; b <= 7; b ++);

{

printf(" + \ n");

even = 0;

}

if(even == 0)

for(b = 1; b <= 7; b ++);

{

printf(" * \ n");

even = 1;

}

counter ++;

printf(" \ n");

}

i try to compile this programm useing pluto,it shows me error .where schould the fehler be?


#include <"stdio.h">
int main()
{
int counter;
int even=0;
int b= 7,int h= 10;
if h+ = b % 10;
b /= 10;
for( counter = 1; counter <= 10; counter++);
{
if (even == 1)
for( b = 1; b <= 7; b++);
{
printf("+\n");
even=0;
}
if (even == 0)
for( b = 1; b <= 7; b++);
{
printf("*\n");
even=1;
}
counter++;
printf(" \n ");
}

推荐答案


i尝试使用pluto编译这个程序,它显示了我的错误。在哪里schould the fehler?


#include<"" stdio.h">

int main()

{

int counter;

int even = 0;

int b = 7,int h = 10;

如果h + = b%10;

b / = 10;

for(counter = 1; counter< = 10; counter ++);

{

if(偶数== 1)

for(b = 1; b <= 7; b ++);

{

printf(" + \ n");

even = 0;

}

if(even == 0)

for(b = 1; b <= 7; b ++);

{

printf(" * \ n");

even = 1;

}

counter ++;

printf(" \ n");

}
i try to compile this programm useing pluto,it shows me error .where schould the fehler be?


#include <"stdio.h">
int main()
{
int counter;
int even=0;
int b= 7,int h= 10;
if h+ = b % 10;
b /= 10;
for( counter = 1; counter <= 10; counter++);
{
if (even == 1)
for( b = 1; b <= 7; b++);
{
printf("+\n");
even=0;
}
if (even == 0)
for( b = 1; b <= 7; b++);
{
printf("*\n");
even=1;
}
counter++;
printf(" \n ");
}



错误是什么?请粘贴在这里。还可以在代码周围使用CODE标签:

[代码] ..代码在这里.. [/ CODE]


问候

What is the error? Please paste it here. Also use CODE tags around your code:
[CODE ]..code goes here..[/CODE ]

Regards


[quote = zodilla58]错误是什么?请粘贴在这里。还要在代码周围使用CODE标签:

[代码行1:stdio.h没有这样的文件或目录


第6行:预期标识符


第7行:期待(在h之前,


第7行:h undeclerd(首次使用此函数),


第14,20,24行:警告:内置函数printf的内容声明不兼容,


第25行:输入结束时语句的预期声明


.. [/ CODE]


问候[/ QUOTE
[quote=zodilla58]What is the error? Please paste it here. Also use CODE tags around your code:
[CODE line 1:"stdio.h"no such file or directory

line 6: expected identifer

line 7: expecting ( before h,

line 7: h undeclerd (first use in this function),

line 14,20,24:warning: incompatible implicit declaration of built-in function printf,

line 25:expected declaration of statement at end the input

..[/CODE ]

Regards[/QUOTE


代码标签意味着,无论你放在哪里代码,你必须以''[code]''(不带引号)开头,以''[\ COOD]''结束。


你应该包括stdio.h之类的#include< stdio.h>或#include" stdio.h"


问候[/ QUOTE [/ quote]
Code tags mean, anywhere you put code, you have to start with ''[code]'' (without quotes) and end with ''[\CODE]''.

You should include stdio.h like #include <stdio.h> or #include"stdio.h"


Regards[/QUOTE[/quote]


这篇关于编译器中的fehler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆