C++ Basics

A C++ program begins in main. Include iostream to write to standard output with cout. The line using namespace std; lets you write cout instead of std::cout.

C++
#include <iostream>
using namespace std;

int main() {
  cout << "Hello Programonic\n";
}
Read the full lesson