آموزش گام به گام برنامه نویسی با سی پلاس پلاس (از مبتدی تا پیشرفته)
در این دوره با برنامه نویسی شی گرا با C++11/14، کلاس ها، آبجکت ها، وراثت، پلی مورفیسم زمان اجرا، مفاهیم برنامه نویسی مانند متغیرها، branching و looping، توابع، پارامترهای مرجع، آرایه ها، رشته ها و بردارها در سی پلاس پلاس، بررسی دقیق File I/O، بررسی STL و غیره آشنا می شوید.
- معرفی دوره
- استفاده از IDE مختلف برای نوشتن، کامپایل و اجرای برنامه های ++C
- دانلود و نصب
- نحوه استفاده از Xcode برای نوشتن برنامه های ++C تحت Mac
- متغیرها، انواع داده ها، اپراتورها
- متغیر مرجع
- lvalue، rvalue و اپراتور انتساب
- اپراتورهای ارتباطی
- اپراتورهای منطقی
- اپراتورهای ریاضی
- متغیر شخصیتی
- If-else statement
- While loop
- For loop
- و غیره
Start with C++ basics then master on File I/O, Object Oriented Programming OOP, STL, Functors, Lambda with C++ 11/14
This course will teach you C++ from scratch upto advance level step-by-step with Object oriented programming (OOP ) using C++11/14. The object oriented programming concepts are clearly explained, you will learn classes, objects, inheritance, runtime polymorphism, Operator overloading apart from basic programming concepts like variables, branching and looping, functions, reference parameters, arrays, string and vectors in C++.File I/O has been discussed in details and in the Mini project File I/O is used extensively. You will learn STL or standard template library in detail along with concept of functors and lambda.The approach is 100% practical, hands on experience of learning will help you to get more confidence with C++ programming. You can follow me along side doing the programs in C++ and that will be best way to do the course.
Who is the target audience?
This course is for absolute beginners in programming. No previous knowledge in programming required.
Beginner in programming and looking forward to start a career as a programmer, this course is for you. It is always recommended to start with C++ as it is a perfect blend of procedural and Object oriented programming.
If you have C++ in your school or college curriculum then this course will perfectly match your need. This course is designed according to the academic syllabus of the college curriculum.
You want to be a game programmer but you are kind of confused about the programming language to start with then start with C++ a natural choice for unreal engine.
How to use different IDE to write, compile and execute C++ programs.
If you are using Windows and want to know how to Download, install and use Code::Blocks IDE then please watch this lecture. Here apart from download and installation procedure, you will also learn how to create a C++ project within Code::Blocks and how to compile and execute C++ project under Code::Blocks.
Download, install and use Code::Blocks for your C++ program under Windows.
If you are using Windows and want to know how to Download, install and use Visual Studio IDE then please watch this lecture. Here apart from download and installation procedure, you will also learn how to create a C++ project within Visual Studio and how to compile and execute C++ project under Visual Studio.
Download, install and use Visual Studio under Windows.
Here you will see how you can download, install and use Xcode IDE for writing C++ programs under Mac OS.
How to use Xcode for writing C++ programs under Mac.
Learn how you can use a text editor like Sublime Text (or any other text editor you like) to write your C++ program and how to compile and execute from command shell (Terminal). You will get to know how to setup the 'Path' parameter for gcc compiler under Windows as well.
Using text editor and command shell for writing and executing C++ program.
Understand the first program, variables, data types, operators, taking input.
Let's start understanding the first program. This is the first part.
Understand the first program that prints "Hello World" - First Part.
Understanding the first program continues - this is second part.
Understand the first program that prints "Hello World" - Second Part
You need some more information on the first program that I missed.
Some more information on the first program.
Understand variables and data types. Learn how your program can keep data in the memory.
Understand variables - how to store data in memory.
Understand what is reference variable and how that can be declared. This is a special C++ way.
Here in this lecture you will learn all the available arithmetic operators in C++.
Arithmetic operations in C++ - learn how you can do arithmetic operations in C+
Learn how to take input from keyboard in a C++ program.
Take input from keyboard.
Check if you can perform very basic input output operations or not.
Taking input from console and printing back.
Understand what is Explicit casting and when you need it.
Some useful information about assignment operator. You will learn about lvalue and rvalue.
lvalue, rvalue and assignment operator.
These two Unary operators are extensively used in C++, you must have clear concept on how they are used.
Unary increment (++) and decrement (--) operator.
Learn all about the following relational operators: >, <, >=, <=, == and !=They are extensively used while comparing 2 values in C++.
Relational operators - helps to compare two values.
Introduction to logical operation. You will learn all about logical AND operation apart from general idea of logical operation in detail.
Logical operators - Logical AND operation.
Learn how logical OR works with example.
Logical OR operation.
Learn how logical NOT operation works with example.
Logical NOT operation.
All these shortcut assignment operators like +=, -= and so on are used extensively, learn about them in details with example.
Shortcut assignment operators.
This quiz contains questions to test your understanding for this section.
Section 3 Quiz
Learn how you can store a single character using char data type. You will also get idea about ASCII values.
Character type data - ASCII values.
Convert upper to lower case character
If else and switch statement - how to do branching.
Learn all about if-else statement with example.
When we have more than one condition to test and only one could be true then we use if-elseif ladder. Understand with example.
If-else if statement - when we need to test more conditions.
Write a C++ program using if else statement to check if a given year is leap year or not.
Write a program to check leap year.
This lecture will demonstrate how to write a C++ program using if-else-if statement to calculate income tax when the tax slabs are given.
Write a C++ program to calculate Income Tax.
Check the age
You will learn how you can use the conditional operator as an alternative to if-else statement. This is the only ternary operator available in C++.
Conditional operator - the only ternary operator in C++. Alternative to if-else
Learn how you can use conditional operator as alternative to if-else statement. This is the only operator available in C++ which is ternary in nature.
Conditional operator - only operator that is ternary in nature
Learn how you can use switch case statement as an alternative to if-else also you will understand when switch case will be good to use.
Test your understanding on if-else and switch case statements
Section 4 Quiz
Loop - iterate over a section of code.
Learn the syntax and working of while loop.
While Loop Test1
See how you can use while loop to find the factorial of an integer number. A good example to understand while loop.
While loop example - C++ program to find factorial of a number.
Here is another program that will help you to grasp the idea of looping more clearly. In this program we will use a while loop to add all the integer numbers given until user types in 0 to terminate.
Write another program using while loop - Find sum of numbers using while.
In this lecture I will show you how to find the sum of digits of an integer number using while loop.
While loop to find sum of digits of a number.
While Loop Test2
Learn what will happen if you terminate the while loop using a semicolon.
What will happen if you put semicolon at the end of while statement.
do while loop is another loop statement available in C++ that you can use while you need to execute the termination condition after iterating the loop body that is at the end of each iteration.
do while loop, first do then check.
Introduction to for loop, understand how for loop works and the syntax.
Understand how you can use the initialization section and modifier section to write more than one statements separated with comma operator. This will make your for loop more smart.
More information on for loop.
Here is a demonstration of simple program that uses for loop to print multiplication table.
Printing multiplication table using for loop.
See how can we use for loop to print Fibonacci series.
Fibonacci series using for loop.
Count of odd and even digits in a number.
Learn how the nested loop works.
Nested loops - one loop inside another.
Star Pattern #1
Star Pattern #2
Star Pattern #3
Learn how you can use a for loop to find the factors of a given number and how to check if the number is Prime or not.
Finding factors of a number and chech for Prime number.
Learn how the break works within a loop to take the control out of the loop immediately and how and when that can be used.
Use of break keyword within a loop.
This program will use break keyword within a loop to check if a number is prime number of not.
Example program that uses break
How to use 'continue' within a loop to skip the rest of the loop.
Learn how 'continue' works within loop.
This section quiz will test your understanding on loop statements. Please complete watching all the video lectures before you attempt this quiz.
How to generate random integers in C++ program.
Learn how you can generate random integer numbers in C++ program.
How we can generate random numbers in C++ programs and how to initialize seed.
Modularise your program using function.
You will get idea of how user defined function works and how the control moves to the function and returns back to caller.
Introduction to user defined function.
Understand how you can pass parameters to function.
Passing parameters to function.
Calling a function
Learn about function prototype or signature, why it is required and how to do this.
Function prototype declaration.
This lecture will teach you how to pass reference parameter to a function.
Passing Reference parameter to function.
This lecture will show you how the reference parameter becomes useful in some cases.
Example showing benefit of passing reference parameter.
Function writing example - here in this tutorial I will teach you how to write a function to check if a number is Armstrong Number
A function to check Armstrong Number
Here I will show you how you can write a function to check if a number is Prime number or not.
Write a function to check if a number is Prime number or not.
Series Sum #1
Series Sum #2
In C++ we can have default values for parameters in functions/ methods. Learn how to do that in this lecture.
Default parameter in methods.
This is a powerful feature that helps us to write different versions of the same name function. You must know this feature.
Function Overloading, compile time Polymorphism.
This quiz will test your understanding on the subject user defined function. Please watch entire section video tutorial and then attempt this quiz.
Quiz on user defined function
Basic understanding of pointer, memory address.
Understanding Pointer Basics - Part 1
Understanding Pointer Basics - Part 2
Understanding Pointer Basics - Part 3
Understanding Pointer Basics - Part 4
Understanding Pointer Basics - Part 5
Understanding Pointer Basics - Part 6
This quiz will check your understanding on Pointers, please complete this entire section before attempting this Quiz.
Array - basic datastructure
Introduction to Array, how array could be useful.
Introduction to Array
You will learn how to iterate through one dimensional array for input and output operations using simple for loop.
Input and output operations with 1 dimensional array.
Learn how you can initialize one dimensional array.
You must understand the relationship between the 1D array and pointers, in this lecture I will teach you in-depth about this. You will get to know how the subscription operator works to access an element for an array.
Relationship between 1D array and pointers.
Learn how you should pass an array to function in this lecture.
How to pass array to function.
Reverse an array: ArrayExercise 4
This lecture will teach you how to pass an array by reference to a function.
Passing array by reference to a function.
This new for looping style - range for is fantastic to traverse array.
Range for loop to traverse array.
Count above average numbers: Array Exercise 3
Count Values in range: ArrayExercise 4
Learn all you need to know about 2 dimensional array.
Two dimensional array.
String in C+
What is string and How we represent set of characters using string class in C++.
Introduction to String
Learn how can you initialize string object using different constructor of string type.
Different initialization options for string object.
StringTest1 : Declaration Initialization and some method
StringTest2:Accessing an element in a string
Learn how you can input string from keyboard using cin and getline
How to input string from keyboard using cin and getline
This lecture will teach you how to traverse through a string using simple for loop as well as range for loop.
String traversal using simple for loop and range for loop.
StringTest3: Printing each character of string separately
StringTest4: count number of vowels in string
You will get the concept of Iterator and how to use the iterator to traverse the string.
Credit Card number checking
Learn how to clear or erase a string or a portion of a string.
Erasing a portion of string.
StringTest5: practice erase method
Learn some more useful string methods.
Some useful string methods.
Learn how you can use the find operation to search within a string object/
Find operation in String - how to search a target in string object.
This string method is useful to find first occurrence of target pattern.
find_first_of operation - Another useful string search method.
This lecture will teach you how you can compare 2 strings lexicographically.
Comparing string with another string.
This method replaces a portion of string with another target string, when used with find operation it gives the best result. Learn how to use this method.
replace method of string - useful when you need to replace a portion of string.
StringTest: find and replace
Learn how you can extract a portion of string object using this useful method.
The substring method to extract a portion of string.
istringstream is considered as a super utility class in C++, if you need to parse/extract information from a string with different content then this class in the sstream header is a great tool. YOU MUST LEARN THIS.
istringstream - super utility.
Another great tool for C++ programmer to create string with different type of contents - YOU MUST LEARN THIS.
ostringstream - super utility
Test your skill on string of C+
Quiz on string
13 More Sections