368d6fafea
Code backup
25 lines
405 B
C++
25 lines
405 B
C++
// 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;
|
|
} |