错误信息:“未定义引用`print”,不知道它是什么?

时间:2014-11-03 18:42:19

标签: reference undefined

# include <stdio.h>

    main()
    {

          int name, age, siblings, children;

          printf ("Hello my name is A.I, what is your name?\n");
          scanf("%d", &name);
          print ("Hello", name,"How old are you?\n");
          scanf("%d", &age);
          printf("Do you have any brothers and sisters?\n");
          scanf("%d", &siblings);
          printf("and how many children do you have?\n");
          scanf("%d", &children);
          printf("So your name is\n", name, "you are", age, "you have", siblings, "brothers/sisters and have", children, "children\n");
          getchar();

    }

这是我的第一个程序,如果我的错误非常简单,但我无法弄清楚我做错了什么,我道歉?

1 个答案:

答案 0 :(得分:3)

stdio.h中的打印功能为printf