Fundamentals
My HelloC++ program
#include <iostream> using namespace std; int helloCplusplus(){ char str[] = "Hello, C++!\n"; cout << str; return 0; }
- #include <iostream>
#include <string>- using namespace std;
- int helloCplusplus(){
std::string str = "Hello, C++!";std::cout << str << '\n';- char str[] = "Hello, C++!\n";
- cout << str;
- return 0;
- }