Professional Documents
Culture Documents
Board Infinity
A training report
Bachelor of Technology
Submitted to
PHAGWARA, PUNJAB
I, Anuj Kumar, 12020641, hereby declare that the work done by me on “C&C++
Programming” from June 2022 to July 2022, is a record of original work for the partial
fulfillment of the requirements for the award of the degree, Bachelor of Technology.
2
ACKNOWLEDGEMENT
Primarily I would like to thank God for being able to learn a new technology. Then I would
like to express my special thanks of gratitude to the teacher and instructor of the course
C&C++ programming from Board infinity who provide me the golden opportunity to learn
a new technology from home.
I would like to also thank my own college Lovely Professional University for offering such
a course which not only improve my programming skill but also taught me other new
technology.
Then I would like to thank my parents and friends who have helped me with their valuable
suggestions and guidance for choosing this course.
Last but not least I would like to thank my all classmates who have helped me a lot.
3
Summer Training Certificate
4
lOMoARcPSD|167 258 01
Contents
Acknowledgements iii
1 Introduction 8
1.1 About C++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2 Application Of C++ . . . . . . . . . . . . . . . . . . . . . . . 8
3 Flow Of Control 12
3.1 C++ Loop Types . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2 C++ decision making statements . . . . . . . . . . . . . . . . 13
4 Functions 15
4.1 C++ Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 15
References 19
References 19
iv
5
lOMoARcPSD|167 258 01
List of Figures
6
Downloaded by Magneto?V?X (maggislove18@gmail.com)
lOMoARcPSD|167 258 01
List of Tables
7
lOMoARcPSD|167 258 01
Chapter 1
Introduction
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
2.2 Operators
1. Relational Operator
10
2. Arithmetic Operator
3. Logical Operator
11
Chapter 3
Flow Of Control
12
13
14
Chapter 4
Functions
10
15
• Return Type : A function may return a value. The returnType is the data
type of the value the function returns. Some functions perform the
desired operations without returning a value. In this case, the
returnType is the keyword void.
• Function Name : This is the actual name of the function. The function
name and the parameter list together constitute the function signature.
Example :
11
16
Chapter 5
12
17
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
18
References
[1] https://www.tutorialspoint.com/cplusplus/index.htm
[2] www.w3schools.com
14
19