Object-Oriented Programming in C++

Code display of PL1/simple_namespace.cpp

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