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
Introduction to C++
To pi c s
0 What is C+++
0 Setting up a development environment (e.g.,
using an IDE like Visual Studio or an online
compiler)
0 Writing your first "Hello, World!" program.
Resources
h\ [Link]
P\ [Link]
L\ [Link]
environment/
Questions
%* What is the difference between C
and C++
* Explain the compilation process in
C++*
* How do you execute a C++ program
and what happens behind the
scenes?
Day 2
Variables and Literals
Topics
5 Declaring and initialising variables$
5 Different data types (int, double, char, etc.)$
5 Constants and literals.
Resources
^S [Link]
variables-literalF
JS [Link]
examplesV
AS [Link]
Questions
& Declare an integer variable named
"age" and initialize it with your age&
& Create a constant called "PI" and set
its value to 3.14159&
& Calculate the area of a circle with a
radius of 5 units.
Day 3
Basic I/O
To pi c s
% Input using cin and output using cout
% Input and Output Formatting techniques
Resources
RD [Link]
8D [Link]
cpp_basic_input_output.htO
5D [Link]
Questions
!& Write a program that takes two
numbers as input and prints their
sum&
'& Format the output of a temperature
in Celsius and Fahrenheit side by
side&
& Write a program to take two floating
point numbers as input and perform
different arithmetic operations on
the$
& What are the different formatting
characters used in C++?
Day 4
Control Flow (if...else
and switch statement)
Topics
0 Conditional statements and boolean expressions%
0 Using if, else if, and else.
Resources
\R [Link]
GR [Link]
cpp_conditions_elseif.asp
Questions
,4 Write a program that checks if a
given number is positive, negative, or
zero4
4 Implement a program that
determines if a student's grade is "A,"
"B," "C," "D," or "F" based on their
score4
4 Create a program that determines
the day of the week based on the
user's input (1 for Monday, 2 for
Tuesday, etc.)4
4 Implement a simple calculator
program that supports addition,
subtraction, multiplication, and
division using a switch statement.
Day 5
Control Flow (for Loop, while
Loop and do…while Loop)
To pi c s
; Introduction to loops1
; Using for loops for iteration1
; Using while and do...while loops1
; Loop control statements (break and continue).
Resources
j] [Link]
T] [Link]
O] [Link]
programming/9781789801491/1/ch01lvl1sec06/control-
flow-statements
Questions
' Create a program that prints all even
numbers from 1 to 20'
' Calculate the sum of the first 100
natural numbers using a for loop'
' Write a program to find the factorial
of a number using a do...while loop.
Day 6
Functions
Topics
) Defining functions, parameters, and return types.
Resources
NB [Link]
8B [Link]
Questions
& Write a function that calculates the
square of a number and returns the
result&
& Create a program that uses a
function to check if a given year is a
leap year&
& Write a function that takes a number
and prints a multiplication table of
the number.
Day 7
Function Overloading
and Default Arguments
Topics
= Overloading functions with different parameters(
= Default argument values(
= Hands-on: Overload your max function to work
with three numbers and test it.
Resources
m^ [Link]
ca
R^ [Link]
M^ [Link]
`^ [Link]
default_arguments
Questions
" Overload a function to find the
maximum of three numbers"
(" Modify the max function to have
default arguments, allowing it to work
with two or three numbers"
" Explain the concepts of function
overloading and default arguments
with examples.
Day 8-9
Storage Classes and
Recursion
Topics
" Storage classes (auto, static, extern)$
" Introduction to recursion in C++
Resources
bR [Link]
with-examplesV
GR [Link]
DR [Link]
cpp_functions_recursion.as\
UR [Link]
Questions
& Write a recursive function to
calculate Fibonacci numbers
Declare a global variable and a static
variable inside a function. Compare
their lifetimes
Write a recursive function to
calculate the factorial of a number
Discuss the storage classes in C++
(auto, static, extern, etc.) and their
use cases.
Day 10
Arrays
Topics
Introduction to arrays
Array initialization and access.
Resources
M@ [Link]
6@ [Link]
1@ [Link]
Questions
&' Describe the concept of arrays in C+
+. How are they different from other
data structures
' Write a program to find the sum and
average of elements in an arra
' Discuss advantages and limitations
of using arrays'
' Create a program that finds the
largest and smallest elements in an
array and their positions.
Day 11
Multidimensional Arrays
To pi c s
# Creating and using multidimensional arrays.
Resources
QG [Link]
;G [Link]
multidimensional-arrays
Questions
+) Implement a program to perform
matrix multiplication)
) Write a program to perform matrix
subtraction and addition)
) Describe the use cases for
multidimensional arrays and compare
them to one-dimensional arrays)
) How is a multidimensional array
stored in memory in C++?
Day 12
Strings
To pi c s
% Introduction to C++ strings
% String manipulation functions.
Resources
QB [Link]
:B [Link]
cpp_strings.htN
5B [Link]
Questions
%+ Create a program to reverse a given
string+
,+ Discuss the dynamic nature of C++
strings and the benefits of using
them over fixed-size character
arrays+
+ Given a string and a substring write a
C++ program to find the location of
the substrin"
+ Develop a program that checks if a
given string is a palindrome.
Day 13
Structures and Enums
To pi c s
# Defining structures and enums in C++
Resources
UI [Link]
@I [Link]
enumeratio>
7I [Link]
LI [Link]
Questions
%* Design a structure for storing
information about books*
* What is the purpose of structures
and enumerations in C++
* Define a structure for storing
information about students and
create an array of student records*
* Define a structure representing a
point in 3D space and implement
functions to calculate distance and
midpoint between two points.
Day 14-15
Introduction to Classes
To pi c s
/ What is object oriented programming in C++-
/ Declaring and defining classes.
Resources
bV [Link]
LV [Link]
BV [Link]
YV [Link]
programming-in-cpp/
Questions
%, Create a simple class to represent a
car,
, Define a class in C++. What are its
components
, Create a class representing a
"Person" with attributes like name
and age, and instantiate objects of
this class,
, Describe the four pillars of object-
oriented programming (OOP) and
how C++ supports each of them.
Day 16
Constructors and
Destructors
Topics
' Constructors and destructors in classes
' Parameterized Constructors
Resources
RH [Link]
=H [Link]
constructoC
7H [Link]
constructors
Questions
!& Add constructors to your car class
and create car objects&
*& Explain the role of constructors and
destructors in classes. What are copy
constructors
& Create a class for a bank account
with attributes for balance and
account number, and implement
methods for deposit and withdrawal.
Add parameterized constructors and
a destructor to your bank account
class.
Day 17
Objects and Member
Functions
Topics
. Creating objects of a class#
. Accessing member functions and variables.
Resources
gX [Link]
cpp_class_member_functions.htL
QX [Link]
member-functionS
CX [Link]
functions
Questions
+' Implement methods in your car class
to set and display car details'
' Describe how objects interact with
member functions in C++ classes'
' Discuss the concept of encapsulation
in OOP and how it relates to class
objects and member functions'
' Create multiple bank account objects
and demonstrate encapsulation by
accessing and modifying their
attributes.
Day 18
Operator Overloading
Topics
- Overloading operators like +, -, *, etc in C++
Resources
ZG [Link]
cppJ
?G [Link]
operator-overloadinM
>G [Link]
cpp_overloading.htm
Questions
$- Create a class to represent complex
numbers. Overload the + operator in
your car class to add two complex
numbers-
- What is the significance of operator
overloading in C++? Provide
examples of commonly overloaded
operators-
- Overload the "+" operator to
concatenate two "Person" objects'
names.
Day 19-20
Pointers and Dynamic
Memory Allocation
Topics
2 Introduction to pointers)
2 Dynamic memory allocation with new and delete.
Resources
bW [Link]
memory-allocation-1emH
OW [Link]
operators-in-cpp-for-dynamic-memoryR
DW [Link]
Questions
*$ Explain the concept of pointers and
dynamic memory allocation in C++$
$ Create a dynamic array of "Person"
objects and manipulate them using
pointers$
$ Describe the advantages and
potential pitfalls of using pointers in
C++ for dynamic memory allocation.
Day 21
Pointers and Functions
Topics
# Passing pointers as function parameters.
Resources
QE [Link]
cppG
;E [Link]
functions-in-cppG
9E [Link]
cpp_passing_pointers_to_functions.htm
Questions
&+ Write a function to sort an array of
cars using pointers+
+ How can pointers be passed as
function parameters in C++
+ Write a function that takes a pointer
to an array and returns the sum of its
elements+
+ Explain the concept of passing
pointers as function parameters and
how it affects the original data.
Day 22
Inheritance
Topics
# Introduction to inheritance
# Base and derived classes.
Resources
OB [Link]
8B [Link]
3B [Link]
inheritance
Questions
*0 Create a base class "Vehicle" and a
derived class "Car.'
0 Create a base class "Shape" and
derived classes "Circle" and
"Rectangle.'
0 Describe the benefits and challenges
of inheritance in OOP, and how C++
addresses those challenges0
0 Explain the concept of inheritance
and its advantages in object-oriented
programming.
Day 23
Access Control in
Inheritance
Topics
1 Public, private, and protected access specifiers.
Resources
ZO [Link]
protected-private-inheritanc?
FO [Link]
and-access-specifiersR
<O [Link]
Questions
&! Discuss the access control modifiers
in C++ inheritance (public, private,
protected)!
! Modify your "Vehicle" hierarchy to
demonstrate the accessibility of base
class members in derived classes.
Day 24
Function Overriding
and Overloading
Topics
/ Overriding base class functions in derived classes*
/ Overloading of functions in C++
Resources
ZK [Link]
vs-function-overriding-in-cpp/>
AK [Link]
cppN
=K [Link]
function-overloading
Questions
,% Define function overriding and its
significance in polymorphism.
Provide examples%
% What is the difference between
function overloading and overriding
% Override a member function in your
"Circle" and "Rectangle" classes to
calculate area.
Day 25
Multiple Inheritance
and Virtual Functions
Topics
) Multiple and multilevel inheritance5
) Virtual functions and dynamic binding.
Resources
bQ [Link]
GQ [Link]
cW
FQ [Link]
cW
VQ [Link]
Questions
/( Explain multiple inheritance and
virtual functions in C++(
( Discuss multiple inheritance and the
"diamond problem." How does C++
handle this issue
( Implement multiple inheritance to
derive a 3 dimensional shape using
length, breadth and height(
( Create a class hierarchy involving
multiple inheritance and use virtual
functions to achieve dynamic
binding.
Day 26
Friend Functions and
Classes
Topics
& Understanding friend classe*
& Implementing Friend functions
Resources
ZL [Link]
cppO
BL [Link]
function-clas*
>L [Link]
Questions
#* What is a friend function, and how
does it access class members
* Implement a friend function to
calculate the average speed of a
vehicle based on distance and time*
* Define a friend function for your
"Shape" classes to display their
details.
Day 27
C++ Templates
Topics
% Introduction to class templates
% Introduction to function templates
Resources
QF [Link]
9F [Link]
template>
7F [Link]
cpp_templates.htm
Questions
%& Describe class templates in C++.
How do they enable generic
programming
& Create a template class for a generic
array and use it with different data
types&
& Explain how to make a function
template with an example.
Day 28-30
Final Review and
Practice
% Library Catalog
@ Build a library catalog system where you can add,
remove, and search for books)
@ Use classes and structures to represent books and
manage collections)
@ Employ arrays or linked lists for book storage.
\ Simple Game (e.g., Guess the Number)
@ Create an interactive game where the computer
generates a random number, and the player tries to
guess it)
@ Use loops (for or while), conditional statements, and
functions for game logic)
@ Keep track of the player's score.
Why
Bosscoder?
1000+ Alumni placed at Top
Product-based companies.
More than 136% hike for every
2 out of 3 working professional.
Average package of 24LPA.
Explore More