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