Search for notes by fellow students, in your own course and all over the country.
Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.
Title: C++ Complete Notes
Description: i apologize to those who were waiting for java course but the good news is i am apparently i 'm preparing java classes right after you know you will get familiar with c plus. After you have completed like basics of c plus plus then parallely we can start java classes. i 'll keep it as a beginner friendly course like if you do n't know anything abcd of coding then you can easily grab the concept.
Description: i apologize to those who were waiting for java course but the good news is i am apparently i 'm preparing java classes right after you know you will get familiar with c plus. After you have completed like basics of c plus plus then parallely we can start java classes. i 'll keep it as a beginner friendly course like if you do n't know anything abcd of coding then you can easily grab the concept.
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
Lec 1: How to Install and Set Visual Studio Code and MinGW
Compiler for C and C++ | C++ Tutorials
geeks4geeks has come up with a live course on full stack development designed by industry
export just to help you to learn how to develop an industry ready single page web applications
and apis using react and node
...
The course is best suited for students as well as working
professionals and you will also get a certificate
...
It will also
show you the error if you have missed a semicolon or a bracket
...
compiler as well and then we will set a path so the
...
mingw compiler right for c and c plus plus so both you can run c program and
...
Sourceforge
...
org website from there also you can also download like this is mingw32 base this and this gcc g
plus plus right this one click on right click on this mark for installation right
...
compiler so this package provides mingw implementation of gnu
objective c language
...
If you wish to compile programs written in foreign language you
can click it uh mark for installation you can install it this is also an optional component
...
3
...
This thing
is very important right now
...
If you write something like hash include iostream right like this it is not showing us like after i
have to write down the complete thing by yourself but if you install the extension the c and c
plus plus extension then what is the difference let me just show you see you see now from you
can also so the you know see the recommendation from here
...
How to resolve this error you just have to write std and the scope
resolution operator right now it will not give any error right now just ctrl s save it
...
Go to the bottom and just check this box for runner run in terminal in integrated terminal it will
run now now if again i 'll run this see it is now running in the terminal it is showing without
putting terminal not on the output screen right and some other settings are also there one by
one will when whenever we move proceed in the sports according to our requirement
...
Lec 2: What is Object Oriented Programming (OOP) | POP vs
OOP | C++ Tutorials for Beginners
In the series of learning object-oriented programming in c plus in the previous video we have
installed our vs code an id visual studio code the compiler the compiler and the compiler
...
Program is divided
into parts that are known as procedure or function so the program is divided
...
Data movement is more so
data is less secure in this case this function can update this data so data would be less secure
...
Large and complex scalable applications, the applications which require actively updating and
maintenance, this approach is not suitable for those things because there is interdependency
among these functions
...
processor oriented programming is not suitable for complex and large scale applications
because the main reason is data security, so that 's why we move to object oriented
programming
...
The four pillars of
object-oriented programming are abstraction encapsulation inheritance polymorphism and the
main concept is classes and objects
...
2: What is Object Oriented Programming (OOP) | POP vs OOP | C++ Tutorials for Beginners
Jenny's Lectures CS IT
In the series of learning object-oriented programming in c plus in the previous video we have
installed our vs code an id visual studio code the compiler the compiler and the compiler
...
Program is divided
into parts that are known as procedure or function so the program is divided
...
Data movement is more so
data is less secure in this case this function can update this data so data would be less secure
...
Large and complex scalable applications, the applications which require actively updating and
maintenance, this approach is not suitable for those things because there is interdependency
among these functions
...
processor oriented programming is not suitable for complex and large scale applications
because the main reason is data security, so that 's why we move to object oriented
programming
...
The four pillars of
object-oriented programming are abstraction encapsulation inheritance polymorphism and the
main concept is classes and objects
...
Lec 3: What is Object Oriented Programming (OOP) | POP vs
OOP | C++ Tutorials for Beginners
I am going to talk about these concepts briefly
...
The key to success in any interview specifically in programming interview
coding interview is practice practice practice as much as possible
...
These four are known as the
pillars of object oriented programming but we will discuss these six things and all these six
concepts
...
Class is just a blueprint or a prototype through which we can create objects
...
The code and functions of each object can interact with each other
with the help of message passing and for interacting they do n't need to have the internal
knowledge of their data and code
...
In large scale application there is a large code base if
you go in the detail of each and every function then it would take you months to read out all the
functions and you would never code right so rather than going into the detail just showcase the
relevant details only showcase those details hiding the implementation detail that is just
abstraction like when you switch on your fan you do n't know what is happening behind there
...
Can uh you know eat
can do these kinds of things but they do n't know the implementation details so that is simply
obstruction in programming also we can achieve obstruction but how we will discuss later
...
The data is
private to the mechanical department only the faculties or employees of that department can
access that data so this will increase the privacy and the security of the data
...
Overloading allows a child class to
override a function which is already defined in its parent class, like let us take that example in
real life
...
If you have any doubt you can tell me in the comment box
...
The next video will see an introduction to c plus plus
...
the language of computer is binary language only zeros and ones, so
we have to say that thing in binary language that computer can understand, but we don't know
how to say it in zero and one right, but yeah If there is someone between us and like our laptop
who can convert we are saying add two numbers the numbers are five and four and that that
thing or that person the intermediate can convert that thing into machine code
...
it contains all the features of C as well as some
additional features like Oops concept
...
It
supports multiple paradigms, processor oriented programming also and object oriented
programming
...
It supports multiple
paradigms as well as it is a middle level language or intermediate language
...
It follows the
Oops concept and what are Oops concepts we have discussed in a previous video
...
plus 17 and C plus plus 20 in 2011, 2014, 2017 and 2020
...
plus 23 in 20 23
...
The next video will
be C
...
plus plus as well as we 'll see some
features of the C language
...
the sixth class object abstraction
encapsulation, encapsulation polymorphism inheritance
...
, but it is not compulsory to use the
classes
...
using these concepts we can write down a program
...
We have just changed a few things like the for output There we use printf
...
is no garbage collection
...
Why can we not discuss all the factors? I told you
one or two factors why it's faster
...
It is a very powerful language
...
We can directly call these functions
...
it supports dynamic memory allocation dynamically at
runtime
...
You can free
the memory right so memory management is in your hand
...
The Cyborg Button gives the C plus programmer more
options right but in Html and in I think SqL also those are not case sensitive
...
Any variable you have to declare first
...
Then you can use that thing right that is
why it is known as a strongly typed programming language
...
Lec 6: Basic Structure of a C++ Program | C++ Tutorials for
Beginners
In this video, we 'll talk about the basic structure of a C plus plus program
...
I 'll show you the program on my laptop, which
will include all these sections
...
the last of this line
...
This is a multiple line command
...
the concept of name spaces comes and
everything they group into namespaces
...
name conflicts Now what does this name conflict see so I
guess this is clear why we include these header right generally in
...
These are defined in library
files
...
So if you want to use input output related things, the objects or
functions you use which header io string right
...
the same
name of any function object or classes can be used right so if the name is the same, then there
would be no conflict like this if I have and you can create your own namespace
...
name space is just to provide scope
...
scope resolution is why it is known as scope resolution
...
operator operator seen so if namespace is
...
How to write your class name
...
The main function is compulsory
...
You can declare those
things and the statements are executable statements
...
If there are any other user defined functions you have taken
...
The
Io stream rotates here
...
line comment and these two lines
are within multiple line commands
...
section
...
macro definition Pi 3
...
This global
declaration in our variable R is equal to 2 and void area A function area
...
you have to tell that the file is iostream the header and the name is c
out scene
...
This is the program which has all the sections, but
all these sections are not compulsory
...
If
you do n't want to use all the things, whatever is there in StD
...
I
want to
...
StD
...
StD scope resolution E and DN
using StD scope resolution C in that's it right so I will see you in the next video till then bye Bye
take care
...
You will write it starting at two numbers and these
kinds of things
...
You can say right and
what software generally does manage the information
...
in a single quote
...
This is also character constant
...
If
I write 3, it is different from this 3
...
So the character constant we store is
generally stored in the computer memory
...
value 10 is the correct definition
...
How you can write a
constant or you can define a constant right
...
This would be valid
...
variable is just a named memory location of the name of the memory location where we store
the data
...
Any data can be
there
...
No special characters are allowed
...
it 's not compulsory that you have to define what you know after the
header file
...
14 that 's it
or hash defines any name of
...
hash define max 100 right so this pi like why
we define constant see constant
...
The difference between constant
and variable is clear to you
...
I hope the working of the preprocesses is clear
...
constant
and
...
is not a good practice to write this thing because in
...
In a header known as string, string is defined as a class and in that header
...
to use this string you have to
include str-ing string this header right and this still this string is undefined because
...
you can try out the
different methods of defining a constant like hash
...
That is for your assignment right you have to try out this thing at your home
...
These two are very important parts of a program
...
Keywords and identifiers
...
some rules are there to form
user defined names
...
the name of this class and name of the
object is what name of object
...
no special
characters are allowed while forming the name of an identifier
...
They think that main is a keyword
...
They are having reserved words right so see now let 's see
...
rather than those operators
...
We can also write so these also come in keywords
...
These are not keywords so you can use it
...
I 'm showing you so anything you can take
...
These are some predefined identifiers
...
This can give you a conflict in
your program as I have shown you here
...
You should take an identifier, but else is a keyword
...
Lec 9: DataTypes with Type Modifiers in C++ - part 1| int Data
Type | C++ Tutorials for Beginners
In this video, We 'll talk about why we need a data type and what are the different data types in
the C plus programming language
...
I'll
show you practical things like how to use data types and how to calculate size of data types
...
in your
almera
...
There we put our clothes a
small one maybe you can put your shoes or anything else right so according to a requirement,
we reserve the space same you can take example in your kitchen different different containers
are there everything like for masala small containers for you know putting you can say the atta a
big one for putting some
...
data types will tell two things first of all which
type of data you want to store in the memory
...
Obviously we will store Uh you can say the information the data
...
We are
declaring some variables of different data types
...
Like this and the range
is 6-5, 5, 5, 3 5
...
This is for signed short means 0-1 2, 2 3
...
negative side
...
I
'll write down a program
...
The range is minus three to seven
six eight, but I am printing nine so what it should print
...
Overflow overflow thing type of thing and for signed short
...
If you are not
getting something the output, why you are getting that output you can ask me in comment box
or maybe you can just take the screenshot and you can send me on my instagram account right
I hope now this range and everything is clear to you guys and the data types the data modifiers,
how can you use with int
...
They are
hosting a data structure and algorithm contest for the DsA contest for a few weeks
...
and algorithm
...
I 'll show you how you can use this in your program
...
Floating
point numbers like 3
...
We have a float Ah
...
If you write this thing, how we
will write this data type float then variable name suppose i am taking f or not f
...
double
...
Precision digits are up
to fifteen digits
...
after that three three digits
would be any garbage value after that it may print some garbage value right
...
numbers these you know data types are used to store decimal numbers and exponential
numbers also in e form
...
These floating numbers are stored in the system completely
different from the int number and how numbers are stored
...
They represent this
number in binary form and the scaling factor would be in binary number
...
floating point numbers are to be stored internally right but for the data types
...
for float it is minus 3
...
7 E plus 308 plus 308 for
double
...
7 plus 308
...
long double a triple nine point one two three four six
...
we have this function set precision right now it will not give any error right so and see
one more thing
...
if you want to set the precise value like set precision 10, but see it is saying set
reason is undefined because this is not in this header files
...
This is how you can right now
...
you have to set the precision
digits for float numbers float double long, double and float double different for each not the
same here I am setting the same for each data type
...
We have this line C out
and return 0 means successfully we have exit did from this program right so it is not taking this
line into consideration
...
If you find any problems, then you can ask me in the comment box
...
Lec 11: Data Types in C++ - part 3 | char Data Type | C++
Tutorials for Beginners
In this video, we'll talk about character data types in C++ programming language
...
You have to know how to prepare a complete roadmap to prepare for DSA
...
Is signed and unsigned, no short and long you can use
with cap right so the short end was having size two bytes and Cad is taking one byte of memory
so this is you can say the smallest one eight bits right so you can uh the maximum number and
minimum number you can store in this is what there are eight bits in every bit
...
Remaining seven bits are used to store the
number
...
We have only
eight bits so maximum we can represent up to 255 characters
...
If you have any doubt
you can ask me in the comment section now
...
If you have any doubt, you can ask me in the comment section
...
This is almost the same as the ah cad type, which is used to store those
alphabet digits (you can say the letters or special symbols, punctuation marks, and these
things), but there are a few differences
...
For storing those things, we can't use this card type because it only allows for 256 values
...
Unicode's latest version (version 14
...
0 are coming in September
...
We use caret data when dealing with international languages
...
When printing this out, you see what character output is possible,
but we use wc to output wide characters
...
The decimal is 65
...
In the next video, we'll see the remaining builtin data types in c plus
...
Students should start acquiring these skills at an early stage of their academic journey
...
are
offered with Sunstone Edge through their 35 campuses in 30 cities
...
The link I'll
put in this button can check out that video right
...
Data type data type
...
Some
...
machine it is taking one byte only so generally we say that that you know that that
...
That's it it will
give you the byte number byte one byte fine so this is all about
...
3
...
We can
use the void data type like an integer type, by writing down its address in parentheses
...
In expressions, we can write down
these things like "suppose I am right" or "I am not taking this whole data type" and then
list the variables and their values
...
In this video, we will learn about the void and wool data types
...
4
...
For input, we take the output
we generate and everything would be considered as a sequence of bytes or you can see
a sequence of characters or bytes
...
The flow of data would be from main memory to output screen to any
output device for example
...
CNC out is linked to
standard input and CNC out, CNC n and C out are objects that are already defined in
which header in this library
...
hash include means preprocessor directive it will
show it will direct to that you have to include the content of this file into this program so
only we can use whatever the content
...
In this stream, std is used to resolve name conflicts
...
In this file, we're using the namespace std as our name
namespace
...
If you do this kind of switching in output, you first have to put the insertion
operator back in
...
Now let
me show you this thing on my laptop
...
Then, let me just show you these objects
...
These four are for white characters
because here also we have support for white characters
...
For those we use wc in wc and w c low
...
out is linked
to standard output
...
6
...
Till then, bye bye
...
I'll try to answer
them right now
...
We 'll see all the types of operators in the programming
language with the help of a proper program for each operator plus operator precedence operator
associativity
...
I guess no need to tell you the meaning of plus minus into divide and all
may be modulo in modular
...
post increment of decrement
operators works how it will take this object like a 10 create a copy of this object right in that also
we have 10
...
after that the value would be
decremented, so the 10 would be assigned to this b
...
we will see complex examples also in the same expression like we are using more increment
operator more decrement operator more in same expression only right, then what value would
be printed
...
This will also give error or error or
let me just tell me in the common comment section
...
Just simple code is
there so first we 'll discuss arithmetic operators
...
See I hope you can see this just we are the head of header iostream then
using namespaces the main function and here we
...
First is
plus plus plus x that is pre-increment, so value would be incremented first and the modified
value would then be stored in y
...
These operators are relational operators, so these are now relational operators right so see you
have to put this x less than y into these brackets otherwise it will give error right these operators
...
in the next video
...
Lec 14: Operators in C++ Programming - part2| Logical and
Bitwise |C++ Tutorials for Beginners
The next two types of operators will discuss in this video is logical operator and bitwise operator
with the help of program i'll show you right practical also we'll see so firstly you will see just
logical operators
...
Operand operators work basically
they uh work you know on the method of short circuiting i hope you know what is short circuit or
let me just discuss this thing also so these both the operators you can say they perform short
circuit evaluation
...
In some situation maybe you want to check two three four conditions and
we want all the conditions must be true then only we can do something then you will perform
logical and operator right suppose if i say if camera is there and board is there whiteboard and
marker is there then only i'll shoot the video means all the three conditions should be true
...
If I separate 1, 2, 4, 8, 16, 32, 64 like this, 128 would be the result
...
Plus 8 would also be the result of adding 1 to 128
...
32 would be the result of adding 32 to 128
...
Under these places we have 1 and 1 plus 8, 8 plus 1 that is 9
...
I hope
you now know how to convert decibel into binary and bits by bit super form operation
...
It will give two's complement fine (now
left shift and right shift c on x)
...
If I say x right shift 1 means right shift that is the right
side, this is the left side so the right side 1 bit from the right side would be discarded
...
So 8 plus 4 plus 1 plus 1 that is 13
...
I hope you would right now let me show you practical
...
The more you explore the C++ programming language, the more you will learn about the
operators available to you
...
Until then, goodbye!
Lec 15: Operators in C++ - Part3 | Assignment and
Miscellaneous operators
In geek four weeks has come up with a fun filled event for you guys called geek olympics which
is 24 hour doubt support marathon
...
There is something new
and something different every day in July from 1st to 31st of July
...
This means that participants can join in and
provide support for each other in any way they want
...
This operator can be
combined with something like this plus equal equal to so it means nothing but if you write a plus
equal to 1 it means a is equal to a plus 1
...
The
first operand is condition, and the second and third operands are expression and expression
respectively
...
The cast operator is used to convert one data type to another so what you need to do is simply
write down the type you want to convert in and a because this variable i want to convert from
floor to end so just simply put in here in braces brackets and a now it will print only six now a
would be converted into int that is only 6 value would be printed so if you want to forcefully
convert a data type into another cast operator would be used it is unary operator
...
We will also discuss
operator precedence, associativity and operator precedence
...
See you can try out these operators and try out some complex
examples too
...
Lec 16: Operators Precedence and Associativity in C++
Geeks for geeks has come up with an event for you guys called geek olympics
...
Bodmas rule means the order in which operators are to
be executed, and like you have heard bodmas rule, you must have heard it I guess
...
So first now
you will solve this thing so 3 plus 2 is 5, then 5 into 5 25
...
See, in both the cases you are getting different results just by changing a
little bit
...
This is a little bit complex in this expression, we have many operators
...
After
that, this mode six mode seven mode will give the remainder
...
Other than 0 is true
right now
...
We have four
variables abcd the values are something like this: and in y this is the expression a divided by b
this is bitwise xor c into a mode in bracket we have c
...
When you move left to right this would be discarded and finally whatever the
value at the right hand side at last it that value would be returned
...
Plus (+) and minus (-) work as you would expect, but the more interesting expressions are those
with plus d c plus d and left shift (LSH) d and minus 2 (MIN)
...
First, the plus d c plus d expression works as you would expect
...
This
expression can be evaluated using precedence and associativity (see below)
...
The LSH d expression shifts the
first operand one position to the right, while the minus 2 (MIN) expression flips the sign of the
second operand
...
This expression
can also be evaluated using precedence and associativity (see below)
...
I'll tell you some important points about operator precedence, and how actually if you have an
expression then how actually that expression would be evaluated behind the scene process
...
m
...
There is a five percent penalty for each wrong submission so better to go
through that compile and test against their sample test cases before submission
...
Precedence and
associativity is completely a compile time concept, independent of that order of evaluation right
in which order the expression, subexpression or the arguments of a function is to be executed
...
First, you'll need to type out
"x" and "y", which will give you the coordinates of where your text will be printed
...
Finally, you'll need to use the "prefix" operator to tell the
compiler that this expression will have a left-to-right associative order
...
We have some sequencing rules so you can visit this website, which is one of the best websites
to refer for C++ reference
...
Lec 17: C++ Control Structures - part 1 | if statement | C++
Tutorials for Beginners
In this video, I 'm going to start control structures in C plus programming language
...
We have also shown
you how to apply precedence and responsibility and when to use these things we have shown
you everything about residence and associative
...
Now we can do some tricky things with this if statement so we'll be discussing some
tricky questions with help of this statement that generally they ask in competitive exams or
interviews
...
Three or four examples right now
...
This is just a flowchart of general working of
...
The flowchart is the entry main then me money that money variable would be located located
some space in the memory
...
After that you can say exit so in this case let 's see this
is the flow then after law now the output would be Kofi in Starbucks "Let's go home" if I write 5
1500 rupees
...
if money is equal to 1000 rupees,
then only we will have coffee in starbucks
...
if block statement would be executed then after it if I enter money 0 now 0
...
block it will simply print let 's go home
...
If I write any constant value like 100, it will always
be true
...
If log means there is no use of checking the condition here right so this is the thing now if I write
like equal to thousand equality check condition equal to equal to
...
If I run this
and we have only 400 rupees then let 's go home no coffee in starbucks This time right if now
see let me just terminate this line with a semicolon
...
You can write down so you can try out these
combinations also right
...
You can ask me in the comment section or if you try out different different things with this blog
...
In the previous video, we have discussed the if statement
...
We will discuss what tricky type of questions an interviewer can ask from you or
whatever kind of questions you will get in those competitive types of exams
...
The working of this is what if this condition is true,
then control will enter into this if block and whatever condition you will write within this if block
will be executed right
...
Control will go to the else block and this would be executed
...
Let's just run this program first okay so we have this program header file using namespace
studio then main function i 'm declaring a variable into money
...
We
are taking the input using seen now checking the condition if money greater than equal to equal
to thousand then whatever it will print the money you have and then let 's have coffee in
starbucks else
...
What tricky things you can do with this, like if I put a semicolon here, what would be the
output? if condition is true it should execute only the if statement and after that after refill after
effects block else statement else block statement would be skipped
...
if you terminate
this else also then also it will give error right although obviously you're using the cells you are
terminating but you are using this else right
...
I'll explain this with the help of a real life example like the scenario
...
Then, practically, with the help of a program, I'll show you how to use LCL flatter
in your program
...
List of questions you will
get branch wise according to stream and after that the list of questions
...
You will also get two
sample papers
...
Flowchart of else if ladder is something you can say like flowchart of ladder
...
If you have multiple choice questions, you can implement that thing with LCTrader or a
switch statement
...
If money is
greater than equal to thousand then it will print simply money "I have
...
The remaining statement would be skipped directly whatever you have written out of
this elif letter
...
If I put a semicolon in after this it
will give an error in the cells
...
Lec 20: C++ Control Structures - part4 | Nested if and Nested
if else | C++ Tutorials for Beginners
In this video, we are discussing control structures in C++ programming language
...
Now the next is nested if and nested if
else so we can do nesting of if as well as nesting of effects
...
This test is a miniature version of a real gate exam simulation
...
When we
have multiple conditions and more than one condition to check and these conditions are
dependent on each other, then we use these kinds of scenario nested ifs
...
See this is suppose we are executing the program the entry then we got
condition one this one two cases can be there right if this is true if this condition is true then
only we will enter here then condition 3 and up to condition n
...
Otherwise, you can have
coffee at CC'd (a normal coffee shop), or coffee and then let go home
...
If you know how
to do this, it's your assignment!
Lec 21: Switch Case statement in C++ Programming| C++
Tutorials for Beginners
Switch case statement is a substitute for that long if else statement else if letter lc plc fails
offensive so you can substitute that thing with the help of switch case statements
...
It is a three day sale during these days,
and you will get a flat 15 percent sitewide discount on the entire website of these services
...
Once the main
reason is clear, the expression should be evaluated in a constant value integral value
...
What this also will see first
of all, is that let me just try it
...
You can write a plus b,
but you have to declare b also, b is equal to 4
...
Like less than two, not allowed
...
The program is simple, working off a switch case statement
...
If the number of case statements is
checked, the program proceeds to the default statement
...
If the two
values are not matched, the program proceeds to the next default statement
...
If there
is no match, the program will output "out"
...
The characters "char" can also be represented with a sky code
...
Float values are not allowed at this time
...
default is at the first at the beginning and after that there is no break so it will continue the
execution of the character
...
Now, it will
break out of the switch case
...
To devise a
calculator right, if I press plus it will ask you from the user like first of all enter two numbers, a or
b
...
If I enter the plus plus
operator, it will add these two numbers
...
If you enter modulo it will give you a reminder or the modulo operation would be
formed so this is for your assignment
...
In later videos one by one we 'll be discussing types of loops in C plus
programming language
...
There is an event
going on called the interview series
...
They conduct a contest every Sunday at
seven pm
...
Now I would say I want to print
Hello world twice
...
This line in your program is a good idea
...
three basic things in a loop
...
Three basic basic things are there, one is initialization
...
The third thing is an update like increment or
decrement
...
Three
...
This kind of thing
...
We use loops when you want to execute a statement or group of statements multiple times
...
entry control means the
first condition would be checked in a program like
...
If the condition is true,
then only you can enter into the body of the loop
...
If
conditions are not matching it's okay and if both are matching
...
Condition is being checked
...
Now I 'll see you in the next video
...
beating one video will be discussed in future videos
...
began discussing one video by one
video in a later video
...
Lec 23: Loops in C++ | for loop in detail | C++ Tutorials for
Beginners
In the series of learning C plus plus programming language, we are discussing loops in C
...
What is the general syntax of this loop? Basically it is
very important to understand the working of the loops working off loops each loop four
...
Using a loop is better than using loops to reduce the number of lines of code
...
Using loops is a way of reducing the number of times
...
Before using a variable we have to declare this variable
...
The first is
initialization so in the memory we have variable I and the value variable is one okay first step is
this one second step is what this now
...
If the
condition is true control will enter into the loop body and print one of the numbers printed on
screen
...
I know if you are a beginner
...
It happens with everyone
...
the second assignment for you is
you have to tell what would be the output of this thing
...
If you have got the idea right
...
Those headers will then include the namespace StD
...
It is just assigning these 10 values to my assignment means this 10 is always
...
In the next video, we 'll see some more properties of four
loopholes, some more tricky things
...
In the previous video, we
talked about the for loop in C and its basics
...
The top educator will be copying all the subjects of CS and ID in this batch and some
special classes will also be conducted
...
Only two semicolons are allowed in this for loop, and only a comma can be put; if you put a
comma you will get an error syntax error
...
Lec 25: Coding Exercise with Solution for beginners in C++ |
Exercise #1
In this video, I'll explain the solution step by step but first you try out pausing the video and trying
this out
...
In the for loop, we have to do two things:
find out or to calculate the sum of four integers from 1 to 15 and 1 and 15 both are included,
which uses a for loop
...
I'll explain this program step by step
...
Putting these curly braces if you
want to put them can put curly braces here and here
...
Sum plus
i would be initial that would be assigned to the sum: now sum is 0
...
Now I plus plus plus: now I become 2
...
Condition is true
...
The next video will show the range-based for loop, or better, why loop:
because for range-based for loop you need to have some understanding of arrays and vectors
...
Lec 26: While Loop in C++ | C++ Tutorials for Beginners
In this video we will be discussing what is while loop syntax or while loop flow chart
...
While loop is what you can write it executes a block of statements as long as the
given condition is true now what is syntax of while loop see you simply write y keyword here you
will put some condition termination condition
...
Exit control means while exiting the loop we will check the
condition while exiting will not check any condition right like when you go in metro then while
you enter while you will enter into the metro before entering they will check you if you have any
suspicious item or not
...
We can use a while loop to help users with the help of a program
...
First, we will write like for user validation
...
Using the swine loop, we can put the condition in the while loop while we have to put a
semicolon here while this is greater than 0
...
After
that, in c out we can do something like this
...
What tricky things you can do with a while loop is up to you!
Some coding exercises we'll be discussing in the next video with the help of programs also so
now it's in the next video till then bye bye take care
...
We will talk about
why loops are used, and what kinds of tricky things you can do with them
...
You can enroll for this test free using my code, or pay
for the paid subsection using code
...
What output you will get now is different depending on whether it is 2 or not
...
" printed then minus this
should be printed then "like this" then minus 3 plus 1
...
" and then type in "i" it will equal 1
...
" and then type in "we are just printing i" it will print "i plus plus"
and then out of flow right now, let me just run this
...
" and then type in "i" it will equal 1
...
" and then type in "we are just printing i" it will print "i plus plus"
and then out of loop because this time condition is true so it will enter into this while loop
...
" it will print out of loop
because the condition is not met, which is 1 - 2 = 0
...
An academy is starting UDAN batch for
Gate 2024 aspirants and BUNYAD bash for Gate 2025 aspirants
...
The condition is true or false doesn't
matter
...
Sometimes we need
two programs to execute the statements which are written in the loop of the body without
checking the condition
...
While loop is a different concept, I'm just
taking one variable i am initializing it with the zero now in while loop, I am writing C out, Hi Jenny
and the condition is while i greater than zero
...
After that, out of loop
...
The next line prints "that's it right with the
ndl"
...
I'm
taking one variable, i, and assigning it the value of 0
...
I'm adding 1 to
i, and printing "i plus plus means i becomes 1"
...
Anything printed will just be "high journey", and the program will exit the while loop
...
I guess what I'm trying to say is that this is a very simple
formula: ln(b) = area
...
Can an area be a
variable, and what is that variable area? After that, it will ask c out one to calculate another or
maybe you can write down if you want to continue so here you can either enter like yes or no
...
You can enter anything as your choice for what to do in this text-based game, and it will exit
okay, but you also put this condition: if you enter n only n for exit or you can say q for quit or q
for quitting
...
You will exit other
than that, you can enter anything
...
This kind of
thing
...
In this video we will discuss some
practice problems on the while loop
...
We will
write two programs using do while loops
...
As soon as you enter a negative number Loop will terminate and it will just do some of
these positive numbers only not this negative number only sum of positive numbers
...
As soon as the
number is negative, stop so in the while loop we put the condition on the number
...
minus 5
...
Next exercise is let me just show you what type of output I want so see this is the code that I
have discussed some positive numbers only right now
...
so it will print you chose
to subtraction right
...
In
simple C you can write down the map that outputs with your program
...
Just see
the output here
...
The Slime is just for decoration purposes
...
If choice is
one these statements would be executed right if choice is 2 then 3 then 4 then 4 same thing
right Im just copying and pasting this thing now
...
The next video we 'll see range based for Loops and range based Loops in the next video
...
Title: C++ Complete Notes
Description: i apologize to those who were waiting for java course but the good news is i am apparently i 'm preparing java classes right after you know you will get familiar with c plus. After you have completed like basics of c plus plus then parallely we can start java classes. i 'll keep it as a beginner friendly course like if you do n't know anything abcd of coding then you can easily grab the concept.
Description: i apologize to those who were waiting for java course but the good news is i am apparently i 'm preparing java classes right after you know you will get familiar with c plus. After you have completed like basics of c plus plus then parallely we can start java classes. i 'll keep it as a beginner friendly course like if you do n't know anything abcd of coding then you can easily grab the concept.