Problem1327--cpp-4-3 编写程序

1327: cpp-4-3 编写程序

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 73  Solved: 45
[Submit] [Status] [Web Board] [Creator:]

Description

编写程序,要求用户首先输入其名,然后输入其姓;然后程序使用一个逗号和空格将姓和名组合起来,并存储和显示组合结果。请使用char数组和头文件cstring中的函数。下面是该程序运行时的情形:
Enter your first name: Filp
Enter your last name: Fleming
Here's the information in s single string: Fleming, Flip

Input

Flip
Fleming

Output

Fleming, Flip

Sample Input

James
Fleming

Sample Output

Fleming, James

Source/Category

 

[Submit] [Status]