cpp_primer_plus/ch02/03.cpp

16 lines
310 B
C++
Raw Normal View History

2022-08-24 01:47:13 +08:00
# include <iostream>
using namespace std;
void Double_wd (string b, string c);
int main(){
Double_wd ("Three blind mice", "See how they run");
return 0;
}
void Double_wd (string b, string c){
string wd1, wd2, wd3;
wd1 = b;
wd2 = c;
cout << wd1 << endl << wd1 << endl << wd2 << endl << wd2 << endl;
}