第五天

 1 /*2016-03-11 12:38:28
 2 
 3 */
 4 
 5 #include<stdlib.h>
 6 #include<stdio.h>
 7 int main(void)
 8 {
 9     char str1[10], str2[10],str[50];
10     scanf("%[^
]",str1);//%[]是接受一连串字符串包括空格,直到遇到^后的字符才结束
11     //sprintf(str, "%s %s", str1, str2);
12     printf("%s", str1);
13     system(str1);
14     //system("pause");
15 }
原文地址:https://www.cnblogs.com/susen/p/5265173.html