标签:style blog http io color ar os sp for
#include <stdio.h> int main() { int i; static char str[80]; for (i=0; i<80; i++) { str[i] = getchar(); if (str[i] ==‘\n‘) break; } i = 0; while (str[i] != ‘\n‘) printf("%c",str[i++]); //这里的方法好赞! printf("\n"); }
1 #include <stdio.h> 2 3 int main() 4 { 5 int i; 6 static char str[80]; 7 for (i=0; i<80; i++) 8 { 9 str[i] = getchar(); 10 if (str[i] ==‘\n‘) 11 break; 12 } 13 i = 0; 14 while (str[i] != ‘\n‘) 15 printf("%c",str[i++]); //这里的方法好赞! 16 printf("\n"); 17 } 18 19
标签:style blog http io color ar os sp for
原文地址:http://www.cnblogs.com/jenny42/p/Git.html