C Plus Plus programming
4.2 (10 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
403 students enrolled
Wishlisted Wishlist

Please confirm that you want to add C Plus Plus programming to your Wishlist.

Add to Wishlist

C Plus Plus programming

A complete C++ programming course with Certification
4.2 (10 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
403 students enrolled
Published 8/2013
Price: $40
30-Day Money-Back Guarantee
  • 4.5 hours on-demand video
  • 1 Article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Master OOPS with C++
  • NO prior programming required
View Curriculum
  • Internet
  • Headphones

C++ is the most popular OOPS implementation and can utilized to create video games, small apps, desktop application and even system drivers too. Master the C++ programming language with this affordable course that is very interactive and is not like traditional long and boring lectures. Things are taught in short and simple way in this course.

Programming is fun and is very easy if you start to implement it with small example and this course is ideal for it, So Jump into the course and Learn with Mr Hitesh Choudhary

Who is the target audience?
  • Students
  • beginners of programming
  • programming/ developers
Students Who Viewed This Course Also Viewed
Curriculum For This Course
52 Lectures
Basics about C++ programming
11 Lectures 50:58

      • C++ is a middle-level programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.

Preview 04:40

A video directly from Bjarne.
(All the copyrights of this video belongs to the respective company, I am just sharing some words on behalf of Bjarne)

Why c++ was created :- by Bjarne Stroustrup

      • This is actual C++ compiler which will be used to compile your source code into final executable program.

Most C++ compilers don't care what extension you give your source code, but if you don't specify otherwise, many will use .cpp by default

Most frequently used and free available compiler is GNU C/C++ compiler, otherwise you can have compilers either from HP or Solaris if you have respective Operating Systems.

Preview 06:32

      • If you are using Linux or Unix then check whether GCC is installed on your system by entering the command shown in video.

Installation of c++ on Linux

      • The C++ language defines several headers, which contain information that is either necessary or useful to your program. For this program, the header is needed.

The line using namespace std; tells the compiler to use the std namespace. Namespaces are a relatively recent addition to C++.

The next line // main() is where program execution begins. is a single-line comment available in C++. Single-line comments begin with // and stop at the end of the line.

The line int main() is the main function where program execution begins.

The next line cout << "Hello World"; causes the message "This is my first C++ program" to be displayed on the screen.

The next line return 0; terminates main( )function and causes it to return the value 0 to the calling process.

Preview 06:34

Description to download codes

Downloadable code snippets

      • While doing programming in any programming language, you need to use various variables to store various information. Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.

Datatypes in C++ programming

      • A variable provides us with named storage that our programs can manipulate. Each variable in C++ has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable.

Variables in c++ programming

      • A scope is a region of the program and broadly speaking there are three places where variables can be declared:

  • Inside a function or a block which is called local variables,
  • In the definition of function parameters which is called formal parameters.
  • Outside of all functions which is called global variables.
Variables scope in C++ programming

      • Constants refer to fixed values that the program may not alter and they are called literals.

Constants can be of any of the basic data types and can be divided in Integer Numerals, Floating-Point Numerals, Characters, Strings and Boolean Values.

constants in c++ programming

      • C++ allows the char, int, and double data types to have modifiers preceding them. A modifier is used to alter the meaning of the base type so that it more precisely fits the needs of various situations.

The data type modifiers are listed here:





The modifiers signed, unsigned, long, and short can be applied to integer base types. In addition, signed and unsigned can be applied to char, and long can be applied to double.

The modifiers signed and unsigned can also be used as prefix to long or short modifiers. For example unsigned long int.

modifying the datatypes in c++ programming
Operations in C++ programming
5 Lectures 20:43

      • An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C++ is rich in built-in operators and provides following type of operators:

Arithmetic Operators

arithimatic operations in c++ programming

      • An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C++ is rich in built-in operators and provides following type of operators:

Relational Operators

Relational operators in C++ programming

      • An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C++ is rich in built-in operators and provides following type of operators:

Logical Operators

Logical operation in C++ programming

      • An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C++ is rich in built-in operators and provides following type of operators:

Bitwise Operators

Bitwise operation in C++ programming

      • An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C++ is rich in built-in operators and provides following type of operators:

Assignment Operators

Assignment operations on C++ programming
Conditionals in C++ programming
2 Lectures 14:22

      • Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false.

IF and IF ELSE in c++ programming

      • A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case.

Switch usage in c++ programming
Looping in c++
4 Lectures 20:53

      • There may be a situation when you need to execute a block of code several number of times. In general statements are executed sequentially: The first statement in a function is executed first, followed by the second, and so on.

Programming languages provide various control structures that allow for more complicated execution paths.

Preview 05:11

      • Unlike for and while loops, which test the loop condition at the top of the loop, the do...while loop checks its condition at the bottom of the loop.

A do...while loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time.

do while loop in c++ programming

      • A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times.

for loop in c++ programming

      • Loop control statements change execution from its normal sequence. When execution leaves a scope, all automatic objects that were created in that scope are destroyed.

loop control statement in c++ programming
Functions, Array and strings in C++ programming
6 Lectures 33:08

      • A function is a group of statements that together perform a task. Every C++ program has at least one function which is main(), and all the most trivial programs can define additional functions.

You can divide up your code into separate functions. How you divide up your code among different functions is up to you, but logically the division usually is so each function performs a specific task.

A function declaration tells the compiler about a function's name, return type, and parameters. A function definition provides the actual body of the function.

functions in c++ programming

      • C++ provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.

arrays in c++ programming

      • The simplest form of the multidimensional array is the two-dimensional array. A two-dimensional array is, in essence, a list of one-dimensional arrays.

2-d array in C++ programming

      • C++ does not allow to pass an entire array as an argument to a function. However, You can pass a pointer to an array by specifying the array's name without an index.

If you want to pass a single-dimension array as an argument in a function, you would have to declare function formal parameter in one of following three ways and all three declaration methods produce similar results because each tells the compiler that an integer pointer is going to be received.

Array and functions together in c++ programming

      • The C-style character string originated within the C language and continues to be supported within C++. This string is actually a one-dimensional array of characters which is terminated by a null character ''. Thus a null-terminated string contains the characters that comprise the string followed by a null.

strings and C style working on string in c++ programming

      • The C-style character string originated within the C language and continues to be supported within C++. This string is actually a one-dimensional array of characters which is terminated by a null character ''. Thus a null-terminated string contains the characters that comprise the string followed by a null.

c++ style of working with string
Pointers in C++ programming
3 Lectures 18:36

      • C++ pointers are easy and fun to learn. Some C++ tasks are performed more easily with pointers, and other C++ tasks, such as dynamic memory allocation, cannot be performed without them.

As you know every variable is a memory location and every memory location has its address defined which can be accessed using ampersand (&) operator which denotes an address in memory.

Pointers in c++ programming

      • It is always a good practice to assign the pointer NULL to a pointer variable in case you do not have exact address to be assigned. This is done at the time of variable declaration. A pointer that is assigned NULL is called a null pointer.

Null and arithmatic in pointers in c++ programming

      • A pointer to a pointer is a form of multiple indirection, or a chain of pointers. Normally, a pointer contains the address of a variable. When we define a pointer to a pointer, the first pointer contains the address of the second pointer, which points to the location that contains the actual value as shown below.

pointer to pointer in C++ programming
Object oriented approach (Theory)
7 Lectures 38:20

      • The most popular and used programming languages that were developed in the last 30 years are all Object-Oriented languages, but this wasn't always the way.

Most of programming job in early 80's was writing assembly language Cobol and Fortran on mainframes.

Now these were not object-oriented languages.

They were straight procedural languages where the program is written as a long procedure.

Now it might contain named functions and subroutines to make it more modular and

maintainable, but it's really a long piece of code, often with all the data, all

the variables defined in one place and all the logic in another.

But as programs got bigger and bigger, this proved to be difficult to

manage, difficult to plan.

Preview 04:32

      • Always remember that Object-Orientation and computing was intended to make

thinking about programming closer to thinking about the real world.

And that means if we ask what is an object in a computer program, we first ask

what is an object in the real world?

Well, we instinctively know what that means, but it's tough to describe without

saying something vague like an object is a thing.

So is this lapyo an object in real life? Sure. This mouse? Well, of course. This chair? Absolutely!

They are all objects, these are all things.

We understand that objects are separate from one another.

They have their own existence, their own identity that is independent of other objects

what is a object

      • Objects and classes go hand in hand.

We can't talk about one without talking about the other.

And the entire point of Object-Oriented Design is not about objects, it's about

classes, because we use classes to create objects.

So a class describes what an object will be, but it isn't the object itself.

A class is a blueprint, a detailed description, a definition.

The blueprint example is a good one.

If you want to build a house, you make a blueprint first.

It describes everything about how that house will be built, but it isn't the house.

You then use that blueprint to build the house.

what is a class

      • So, there are four fundamental ideas in Object-Oriented Programming, four things

to keep in mind when creating classes, and they have the wonderful terms Abstraction,

Polymorphism, Inheritance, and Encapsulation.

And one way to remember these is with the acronym APIE.

Now, these terms can sound intimidating, but you do most of them already in

daily thought and conversation even if you don't use these actual words.

Let me prove that with the first one, Abstraction.

If I say table, you know what I mean.

I didn't say if I was thinking of a wooden table or a glass-topped table, if it

had four legs or one central pillar, if it was large or if it was small.

You might have an image in mind, that's okay.

abstraction in c++

      • Next up is the idea of Encapsulation.

Think capsule like a space capsule or medication capsule or a food container.

This is the idea of surrounding something, not just to keep the contents

together, but also to protect those contents.

Now, in Object Orientation, this first refers to the idea of taking our

attributes and then taking our behaviors and bundling them together in the same

unit, the same class. But it's really more than that.

We also want to restrict access to the inner workings of that class or any

objects based on that class, and this is referred to as information hiding or data hiding.

The principle is that an object should not reveal anything about itself except

what is absolutely necessary for other parts of the application to work.

encapsulation in c++

      • This next idea of Inheritance is first a great form of code reuse.

We can create a new class, but instead of writing it from scratch, we can base

it on an existing class.

So let's say you start off by defining in your application a Person class with a

few attributes--name and address and phone number, and perhaps some simple

behavior in it--and then later on you figure out your application will need

another class, and this one called Customer.

But you realize as you are writing it that this new Customer class is

exactly the same as the Person class, and the only difference is it also has a customerNumber.

Now, you didn't want to add that customer number to your Person class, because

we're trying to use abstraction.

ineritance in c++

      • Finally, we have Polymorphism, which means many forms.

It's the most complex of the four terms, but very powerful.

It lets us automatically do the correct behavior even if what we're working with

could take one of many different forms. Well, that sounds a little vague.

So, here's an example of polymorphism that you've probably used without

even thinking about it: the Plus sign. Well, what does this do?

In a lot of languages, it depends.

If we're adding two variables together with the plus sign, if these variables

are integers, it will numerically add them.

But on the other hand, if the variables A and B are strings, what will happen is

that we'll concatenate them.

It will automatically do the correct behavior but a different behavior when what

we've given it could have one of many different forms.

Now, this example is built into a lot of languages, but we can use the same idea

with our own classes and our own objects.

polymorphism in c++ programming
Object Oriented approach with example codes
13 Lectures 01:01:03

      • The main purpose of C++ programming is to add object orientation to the C programming language and classes are the central feature of C++ that supports object-oriented programming and are often called user-defined types.

A class is used to specify the form of an object and it combines data representation and methods for manipulating that data into one neat package. The data and functions within a class are called members of the class.

class example for basic

      • A member function of a class is a function that has its definition or its prototype within the class definition like any other variable.

member function in classes of c++ programming

      • A class member can be defined as public, private or protected. By default members would be assumed as private.

Access specifiers in c++ programming

      • A class constructor is a special member function of a class that is executed whenever we create new objects of that class.

A constructor will have exact same name as the class and it does not have any return type at all, not even void. Constructors can be very useful for setting initial values for certain member variables.

constructor and destructor in c++

      • The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. The copy constructor is used to:

  • Initialize one object from another of the same type.
  • Copy an object to pass it as an argument to a function.
  • Copy an object to return it from a function.
copy constructor in c++ programming

      • A friend function of a class is defined outside that class's scope but it has the right to access all private and protected members of the class. Even though the prototypes for friend functions appear in the class definition, friends are not member functions.

A friend can be a function, function template, or member function, or a class or class template, in which case the entire class and all of its members are friends.

friend and inline function in c++ programming

      • Every object in C++ has access to its own address through an important pointer called this pointer. Thethis pointer is an implicit parameter to all member functions. Therefore, inside a member function, this may be used to refer to the invoking object.

Friend functions do not have a this pointer, because friends are not members of a class. Only member functions have a this pointer.

this pointer in c++ programming

      • One of the most important concepts in object-oriented programming is that of inheritance. Inheritance allows us to define a class in terms of another class, which makes it easier to create and maintain an application. This also provides an opportunity to reuse the code functionality and fast implementation time.

When creating a class, instead of writing completely new data members and member functions, the programmer can designate that the new class should inherit the members of an existing class. This existing class is called the base class, and the new class is referred to as the derived class.

Multiple inheritance in c++ programming

      • The word polymorphism means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.

C++ polymorphism means that a call to a member function will cause a different function to be executed depending on the type of object that invokes the function.

Polymorphism and linkage in c++ programming

      • Data abstraction refers to, providing only essential information to the outside word and hiding their background details ie. to represent the needed information in program without presenting the details.

Data abstraction is a programming (and design) technique that relies on the separation of interface and implementation.

Abstraction with example in c++ programming

      • Encapsulation is an Object Oriented Programming concept that binds together the data and functions that manipulate the data, and that keeps both safe from outside interference and misuse. Data encapsulation led to the important OOP concept of data hiding.

Encapsulation and overloading in c++ programming

      • A namespace is designed to overcome this difficulty and is used as an additional information to differentiate similar functions, classes, variables etc. with the same name available in different libraries. Using namespace, you can define the context in which names are defined. In essence, a namespace defines a scope.

namespace in c++ programming

Few tips from the Bjarne to c++ developers

Advice for C++ developers by Bjarne Stroustrup
1 Lecture 00:50

BBYe for now.....But be in touch

About the Instructor
Mr. Hitesh Choudhary
0.0 Average rating
0 Reviews
0 Students
0 Courses
Information Security Expert and Programmer

Trained as an Electronics Engineer and mastered as computer network and Information Security, Mr. Hitesh Choudhary is a renowned Author, video author, International speaker and security consultant. Also he is a got trained in wireless security from a prof. of MIT. He created various tools and attacks like wireless Eurynomus featured in pentest magazine and in Backtrack project. His webinar on wireless, Backtrack, and ethical hacking was attended by 2000+ professionals from Google India, HP, IBM, Accenture, TCS, Sapient Corp. , Symantec, EEL India Ltd., Capgemini, Micro Technology, CDAC, Kodak India Ltd., Wipro Infotech Ltd., ABB Ltd., Tech Mahindra Ltd., and many more. He is also an active consultant and speaker for police in India and Army Intelligence and his work was featured in 20+ air, print and live media.

If you want more than this brief info, join him at facebook or www.HiteshChoudhary.com