嗨朋友们,我该怎么解决这个问题? [英] Hi friends , how can I fix this ?

查看:72
本文介绍了嗨朋友们,我该怎么解决这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始学习C语言,我有这个错误(函数调用丢失),





我尝试过:



#include< stdio.h>

#include< conio。 h>

void main()

{

clrscr();

int a,b,c;

a = 10

b = 12

c = a + b

printf(总价值:\ n% dc);

getch();

}

解决方案

这不是确切而完整的错误消息,你没有说出问题发生在哪一行。在提出问题时,EXACT错误信息始终是您可以提供的最重要的信息。



我只能假设你在谈论失踪 printf 行中的逗号:

 printf( 总值:\ n%d  c); 



a =,b =和c =陈述之后,你丢失了分号(;)。 / BLOCKQUOTE>

i just started to study C language, i had this error (function call missing ) ,



What I have tried:

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int a,b,c ;
a=10
b=12
c=a+b
printf("Total Value : \n%d " c) ;
getch() ;
}

解决方案

That's not the exact and complete error message and you didn't say which line the problem occurs on. The EXACT error message is always going to be the most important piece of information you can provide when asking a question.

I can only assume you're talking about the missing a comma in your printf line:

printf("Total value: \n%d", c);


You're missing semicolons (;) after
a=, b=, and c= statements.


这篇关于嗨朋友们,我该怎么解决这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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