指教一下吧

这是我用c做的,源码如下#include ;

void main()

{

int a,b,c;

scanft("%d,%d",&a,&b);

c=a+b;

printf("%d",c);

}我是菜鸟请问哪里错了

5 条评论

  • @ 2013-10-21 15:46:24

    显然是“scanf”而不是“scanft”……手误而已……

  • @ 2013-07-11 12:45:23

    #include <stdio.h>;
    int main()
    {
    int a,b,c;
    scanf("%d,%d",&a,&b);
    c=a+b;
    printf("%d",c);

  • @ 2009-09-21 17:35:49

    Ls看得好仔细 鼓掌~

  • @ 2009-09-21 17:11:37

    "scanft"没有"t"吧!

  • @ 2009-09-21 12:40:09

    #include 后面不用加分号,而且现在一般要求main要有返回值

  • 1

信息

ID
1000
难度
9
分类
(无)
标签
(无)
递交数
73532
已通过
28210
通过率
38%
被复制
201