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.

My Basket

You have nothing in your shopping cart yet.

Title: C++
Description: Discover the beauty of C++ programming language with our expertly crafted PDF guide. Whether you're a seasoned developer or just starting your coding journey, our resource is your key to mastering C++. Packed with clear explanations, practical examples, and valuable tips, this PDF is your passport to becoming a proficient C++ programmer. From the fundamentals to advanced techniques, embark on a journey that will transform your coding skills. Download now and embark on your C++ adventure today!"

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


C++ Programming Language
C++ is one of the most popular programming languages in the world
...
That's why it's used by large companies like Adobe, Google,
Microsoft, Netflix, and even government agencies like NASA
...
The average salary of a C++ programmer in the US is just over
$170,000 a year
...
You need to be able to learn from the C++ standard
library, but you also need to learn the language itself to master it
...
It has influenced many programming
languages like C#, Java, and so-called "types of JavaScript" like TypeScript,
Dart, and more
...

Many people find C++ a bit intimidating, but in reality, you don't need to
learn all of C++ to be able to write substantial programs
...
If you want to learn more, there are
books specifically written on this topic
...
We'll explore how you can write some really cool programs as
you're learning C++
...
Then you will see that C++
is not really that difficult
...
CLion is
cross-platform, so it runs on Windows, Mac, and Linux
...
If you don't want to pay for
a license, you can use the Community Edition, which is free
...


Creating Your First C++ Program
We're going to create our first C++ program together in the next lesson
...
For now, just select "Start Trial
...
It's
really simple and will only take a minute or two
...
We can start our trial now
...
" On the top, we can specify the location of this
project
...
I'm
going to delete all this code because it maintains a file that is the main file
of our program
...
cpp
...
cpp
...
With a little practice and patience, you can be on your
way to building amazing programs
...
Make sure to type the code exactly as shown to avoid
errors
...

• The first line of the program should start with #include followed by
the angle brackets and the name of one of the files in the standard









library
...
The
bottom of the library marks the end of our program
...
Each operating
system uses a different machine code, so we have to compile our
program for each OS we want it to run on
...
Afterwards, we
will look at some common expressions and errors that you may
encounter
...

To change the appearance of the C++ editor, we can install new
themes, such as the popular Dracula theme
...
Remember to pay close
attention to the code and compare it with your code if you
encounter any errors
...
Each
part is about three to four hours long so you can easily complete it in a
day or two
...

The second part explores intermediate-level concepts such as arrays,
pointers, strings, structures, enumerations, and streams
...
For
example, if you want to build games with Unreal Engine which is a popular
gaming engine, you just need to learn about Unreal Engine
...


Variables in C++
• We'll cover variables and to declare a variable in C++, first, we have
to specify the type of data we want to store
...
Then terminate
this statement with a semicolon
...
It's a good practice to follow
...
We'll immediately see this warning
...
This is garbage
...
If
we declare an integer, it automatically gets initialized to zero
...
We're going to talk
about different data types in the next part of this section
...
If we print "a",
we're going to see one on the terminal right now
...
By the way, we can also initialize multiple
variables on the same line so over here we can declare a second integer
let's call that counter so we add a comma and then declare counter, and
optionally we can initiate it to some value
...
We should declare a separate variable on
separate lines
...
We can call that temp
...
Let's verify this so, let's run our program
...
There are more exercises to help
you learn more!
Constants in C++
Next, we're going to talk about constants
...

Also, it's a good practice to use capital letters when you name a constant
variable
...
You can declare
a constant by adding "const" in front of the variable name
...
Popular conventions for naming variables and constants vary
depending on the team
...
The more consistent the code, the easier it is to read, understand,
and maintain
...
The increment operator
(++) can be used as a shorthand notation for adding 1 to a variable
...
Similarly, the decrement
operator (--) can be used to subtract 1 from a variable
...
If we apply the increment operator to x,
the result will be stored in x
...

Finally, a new operator is introduced to add a new number of variables
...
The more
consistent your code is, the easier it is to maintain
...


In math or any programming language, the multiplication and division
operators always have a higher priority than addition or subtraction
operators
...

Programming a stream represents a sequence of characters, and the
standard output is our console or terminal window
...

While we will talk about strings later in the course, in this lesson, I'm going
to show you a few more techniques for writing to the console or the
terminal window
...

Exercise:
Imagine you have made $95,000 in your store
...
State tax is 4%,
whereas county tax is 2%
...


//Solutiondouble sales = 95000
...
04 * sales;double county_tax = 0
...

The state tax is 0
...

County Tax Calculation
The county tax rate is 2%, so we calculate and print the county tax
accordingly
...

We use the const keyword for the tax rate to easily reference it in other
parts of the code
...


Standard Input/Output Strings
c out represents the standard output stream, while c in represents the
input stream
...


Proper naming conventions should be used for variables to increase clarity
and reduce ambiguity
...

The solution involves asking the user for a temperature in Fahrenheit,
converting it into Celsius, then printing it on the terminal
...


Simple Calculator
The code for a simple calculator program is shown
...


The Floor Function in C++
The floor function in C++ takes an input of type double and returns
another double
...
The code is written in the main function to use the floor
function
...
First, we will ask the user to enter the radius
of the circle
...

// Ask the user to enter the radius of the circlecout
<< "Enter radius: ";double radius;cin >> radius;//
Calculate the area of the circleconst double pi =

3
...
0);// Print
the area of the circlecout << "Area: " << area <<
endl;
As you can see, we've used the power function to get radius to the power
of two
...

Now, let's explore the fundamental data types in C++ in detail
...
We'll explore
various types for representing numbers and their differences
...
We will also learn how we use characters
and strings as well as arrays which we use for storing a list of values
...



Title: C++
Description: Discover the beauty of C++ programming language with our expertly crafted PDF guide. Whether you're a seasoned developer or just starting your coding journey, our resource is your key to mastering C++. Packed with clear explanations, practical examples, and valuable tips, this PDF is your passport to becoming a proficient C++ programmer. From the fundamentals to advanced techniques, embark on a journey that will transform your coding skills. Download now and embark on your C++ adventure today!"