COMP2113
COMP2113_ENGG1340 Programming technologies and Computer programming II [Section 2BC] [2023]
Loading...
Searching...
No Matches
string_io.cpp
Go to the documentation of this file.
1#include <iostream>
2#include <string>
3using namespace std;
4
5int main()
6{
7 string word1, word2, word3;
8 cout << "Please input a sentence: " << endl;
9
10 cin >> word1 >> word2 >> word3;
11
12 cout << "Word 1 = \"" << word1 << "\"\n"
13 << "Word 2 = \"" << word2 << "\"\n"
14 << "Word 3 = \"" << word3 << "\"\n";
15 return 0;
16}
int main()
Definition string_io.cpp:5