本帖最后由 evenzhu1989 于 2015-6-1 19:11 编辑
- int main(int argc, const char * argv[]) {
- char a[10];
- char b[100];
-
- printf("What's your frist name?\n");
-
- scanf("%s",a);
-
- printf("Oh,your frist name is %s\n",a);
-
- printf("What's your last name?\n");
-
- scanf("%s",b);
-
- printf("Oh,your name is %s%s",a,b);
-
-
- return 0;
- }
复制代码 |