a simple cpp code code example
Example 1: c++ hello world
#include <iostream>
int main()
{
std::cout << "Hello, C++!" << std::endl;
return 0;
}
Example 2: basic cpp programs
// Your First C++ Program
#include <iostream>
int main() {
std::cout << "Hello World!";
return 0;
}
Example 3: hello world program in c++
#include <iostream>
int main() {
cout << "Hello World!";
return 0;
}