#include <stdio.h>
#include <conio.h>
int main(void){
char x[100];
int y;
printf("enter letters:\n");
for(y=0;y<100;y++)
{
x[y]=getche();
if(x[y]=='\r') break;
}
for(y=0;x[y]!='\r';y++)
printf("%c ",x[y]);
return 0;
}
#include <stdio.h>
#include <conio.h>
int main(void){
char x[100];
int y;
printf("enter letters:\n");
for(y=0;y<100;y++)
{
x[y]=getche();
if(x[y]=='\r') break;
}
for(y=0;x[y];y++)
printf("%c ",x[y]);
return 0;
}
歡迎光臨 code.club (https://code.club/) | Powered by Discuz! X3.2 |