Summer Training Report: Basic C++ Language
Summer Training Report: Basic C++ Language
On
Submitted by
Abhishek Dubey (18EEJCS002)
This is to certify that the work contained in this Report entitled “Basics Of
C++” is submitted by Mr.Abhishek Dubey (18EEJCS002) to the Depart-
ment of Computer Science and Engineering, Engineering College Jhalawar,
for the partial fulfillment of the requirements for the workshop in Computer
Science and Engineering.
iii
Contents
Acknowledgements iii
1 Introduction 3
1.1 About C++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Application Of C++ . . . . . . . . . . . . . . . . . . . . . . . 3
3 Flow Of Control 7
3.1 C++ Loop Types . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 C++ decision making statements . . . . . . . . . . . . . . . . 8
4 Functions 10
4.1 C++ Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 10
References 14
References 14
iv
List of Figures
1
List of Tables
2
Chapter 1
Introduction
3
Chapter 2
• Integer Type
• Floating type
2. Enumerated types
They are again arithmetic types and they are used to define variables that
can only assign certain discrete integer values throughout the program.
4. Derived Types
They include
• Pointer types
• Array types
• Structure types
• Union types
• Function types
4
2.2 Operators
1. Relational Operator
5
2. Arithmetic Operator
3. Logical Operator
6
Chapter 3
Flow Of Control
7
C++ programming language provides the following type of loops to han-
dle looping requirements.
8
C++ programming language provides following types of decision making
statements
9
Chapter 4
Functions
10
A C++ function definition consists of a function header and a function
body. Here are all the parts of a function
• Function Name : This is the actual name of the function. The function
name and the parameter list together constitute the function signature.
Example :
11
Chapter 5
12
For example, we defined the Box data type using the keyword class as
follows
Both of the objects Box1 and Box2 will have their own copy of data
members.
13
References
[1] https://www.tutorialspoint.com/cplusplus/index.htm
[2] www.w3schools.com
14