C++

Introduction

C++ Programming by Derek Banas

C++ is a general-purpose programming Language. It is object oriented, imperative language providing facilities for low-level memory manipulation.

Simple program

#include<iostream>
  using namespace std;
   int main()
      {       cout<<“Hello World”;
               return 0;
      }

Comments

comments are used to document your code, any text in C++, they explain your programs and improve program readability, they ignored by compiler, two types

Single-line comment such as // This is a text-printing program.
Multi-line comment Start with /*End with */

Getting Input from Keyboard

User input goes from keyboard to the input buffer where it is stored as characters

converts the data to the type that matches the variable

 int height;

 cout << “How tall is the room? “;

 cin >> height;

References:

Banas. D.(2014, November 14). C++ Programming [Video File]. Retrieved from. https://www.youtube.com/watch?v=Rub-JsjMhWY