#include <stdio.h>
#include <conio.h>
#define MAX 80
int main( void )
{
char ch, buffer[MAX+1];
int x = 0;
while ((ch = getch()) != '/r' && x < MAX)
buffer[x++] = ch;
buffer[x] = '/0';
printf("%s", buffer);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266641.html