0% found this document useful (0 votes)
36 views11 pages

2.basics of C++: - Ranjith Kumar

Structure of C++ source code A simple calculator program Data-types Comments, Escape sequences and White spaces

Uploaded by

Ranjith M Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views11 pages

2.basics of C++: - Ranjith Kumar

Structure of C++ source code A simple calculator program Data-types Comments, Escape sequences and White spaces

Uploaded by

Ranjith M Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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