Commit 555f686f by 李楚霏

练习2

parent 8c8cc777
#include <iostream>
#include <string>
using namespace std;
int main()
{
string firstname;
string lastname;
(cin >> firstname).get();
(cin >> lastname).get();
cout << "Here's the information in a single string:" << firstname + ',' + lastname << endl;
return 0;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment