求教一个乘法表的问题
#include <stdio.h>#include <conio.h>
void main(void)
{
int i,j,x,y;
clrscr();
printf("\n\n***Pithy Formula Table of Multiplication***\n\n");
x=9;
y=5;
for(i=1;i<=9;i++)
{
gotoxy(x,y);
printf("%2d ",i);
x+=3;
}
x=7;
y=6;
for(i=1;i<=9;i++)
{
gotoxy(x,y);
printf("%2d ",i);
y++;
}
x=9;
y= 6;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
gotoxy(x,y);
printf("%2d ",i*j);
y++;
}
y-=9;
x+=3;
}
printf("\n\n Press any key to quit...\n");
getchar();
}
明明例题的一样的 为啥老是出现C:\Users\sun\C\Cpp1.cpp(14) : error C2065: 'gotoxy' : undeclared identifierz
这个错误呢