Classic Hello World in C++. Note the return 0; which is a legacy feature letting the program know the function has ended
// first C++ program - say hello to user
#include <iostream>
int main()
{
std::string name;
std::cout << "Enter your first name: ";
std::cin >> name;
std::cout << "\nHello, " << name << " - welcome to ECE 2036!\n\n";
return 0;
}Â
#