Object-Oriented Programming in C++

Code display of PL1/simple.cpp

// PL1/simple.cpp
// A particularly simple example of C++ in action!
// Niels Walet, last updated 04/12/2019
#include<iostream>
int main() 
{ 
  const int current_year{2022}; //Declare and initialise
  std::cout << "C++ is the best programming language in "<<current_year<<"!"<<std::endl; 
  return 0; 
} 
Download here; To copy and paste: double click inside code, then copy.