Issue
Code backup
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// print a msg Hello word
|
||||
|
||||
//#include <iostream>
|
||||
//
|
||||
//int main(){
|
||||
// std::cout << "Hello World!";
|
||||
// return 0;
|
||||
//}
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
vector<string> msg {"Hello", "C++", "World", "from", "VS Code", "and the C++ extension!"};
|
||||
|
||||
for (const string& word : msg)
|
||||
{
|
||||
cout << word << " ";
|
||||
}
|
||||
cout << endl;
|
||||
}
|
||||
Reference in New Issue
Block a user