
#include <conio.h>
main()
{
int color;
for(color=0;color<8;color++)
{
textbackground(color);
cprintf("This is color %d\r\n",color);
printf("Press any key to continue!\n");
getch();
}
}
土问上边这个程序里面的cprintf和printf有虾米区别。。main()
{
int color;
for(color=0;color<8;color++)
{
textbackground(color);
cprintf("This is color %d\r\n",color);
printf("Press any key to continue!\n");
getch();
}
}
getch是做虾米用的?

#include <conio.h>
main()
{
int color;
scanf("Please input the color you choose!",&color);
textbackground(color);
cprintf("This is color %d\r\n",color);
}
main()
{
int color;
scanf("Please input the color you choose!",&color);
textbackground(color);
cprintf("This is color %d\r\n",color);
}
上面的程序运行时为虾米不显示我要输出的那句话啊,而且我输1时,屏幕上显示
This is color 29789。怎么回事啊。。
[[it] 本帖最后由 jerry4966263 于 2008-3-25 21:10 编辑 [/it]]