void main(void)
{
char buffer[256];
char *p;
buffer[0] = 80;
printf("Type in a string and press Enter\n");
p = cgets(buffer);
printf("\n\nThe number of characters read was %d\n", buffer[1]);
printf("The string read: %s\n%s", &buffer[2],p);
getch();
}
请教各位,buffer在这里是什么,buffer[0] buffer[1] buffer[2] 是什么?buffer[3] 可以用吗?
[此贴子已经被作者于2006-2-10 9:10:03编辑过]