You are on page 1of 11

2.

Basics of C++
-RANJITH KUMAR

In this video

Structure of C++ source code

A simple calculator program

Data-types

Comments, Escape sequences and White spaces

Structure of C++ Program

Header files

There are lot of header files included in the C ++


compiler.

The complete list is provided in the link below

http://en.cppreference.com/w/cpp/header

Some of the necessary header files will be explained


in the context of each program and videos

A Simple Calculator Program

Demo

Data-types in C++

Built-in data types

Comments

Single line Comment : //

Multi line Comment : /* */

White Spaces and semi-colon

A line containing only whitespace, possibly with a


comment, is known as a blank line, and C++
compiler totally ignores it.

Every Statement is terminated by a semicolon. Else


would produce syntax error.

Escape Characters

Thank you

Please leave your suggestions and queries in the


comment below

Subscribe to my channel

Hit like if this video helped you

You might also like