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>
3
using namespace
std;
4
5
int
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
}
main
int main()
Definition
string_io.cpp:5
Module6
Sample Code
Part III - C++ Strings
string_io.cpp
Generated on Sun Sep 29 2024 16:39:53 for COMP2113 by
1.12.0