这段程序为什么报错
#include<stdio.h>int cube(int);
void main(void)
{
prinyf("cube (3) =%d\n",cube(3));
printf("cube (5) =%d\n",cube(5));
printf("cube (8) =%d\n",cube(8));
}
int cube (int x){return x*x*x;}
报错:
-------------------Configuration: Func1 - Win32 Debug--------------------
Linking...
Func1.obj : error LNK2001: unresolved external symbol _prinyf
Debug/Func1.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
Func1.exe - 1 error(s), 0 warning(s)
请高手谈谈