Ad
Code
Diff
  • #include "iostream"
    
    using namespace std;
    int main(){
      
      cout << "Hello C++" << endl;
      
    }
    • #include <iostream>
    • #include "iostream"
    • using namespace std;
    • int main(){
    • std::cout << "Hello C++" << endl;
    • cout << "Hello C++" << endl;
    • }

This is a simple example of a hello world in C++

#include <iostream>

int main(){
  
  std::cout << "Hello C++" << endl;
  
}