#include <stdio.h>
int main(int argc, char *argv[])
{
print("Merry Christmas and happy holidays!");
return 0;
}
Can someone please run this on your system and check back why?
It says, linker error
print is not defined
.
标准C中没有print
功能。您要查找的功能是printf
( f是格式化的缩写。
printf("Merry Christmas and happy holidays!");
It is not print
, it is called printf
function. There is nothing call print
in C .standard
linker errors are due to the call of functions that are not defined or due to wrong way of call of a function.
In your program function print()
does not exist anywhere as a user defined function nor does it exist in the header 'stdio.h' that you included.
To print a line in C you need to use printf()
statement and not print()
as in your program.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.