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