This course is intended for those who are just starting to learn C++ programming. You will get acquainted with the basics of C++ syntax, learn to work with variables, data types, operators, loops and functions. The course program includes many practical assignments so that you can immediately apply what you’ve learned in real-world situations.
Course topics:
Introduction to C++
- Getting acquainted with C++ language: history, peculiarities and spheres of application.
- Installing and customizing a development environment (e.g. Visual Studio, Code::Blocks, or CLion).
- C++ program structure: how a basic program looks like and how to compile code.
Example code:
#include <iostream>
using namespace std;
int main() {
cout << “Hello, World!” << endl;
return 0;
}
Variables and data types
- Basic data types in C++: int, double, char, bool, string.
- Declaration and initialization of variables.
Example:
int age = 25; // Variable of integer type
double price = 19.99; // Floating-point variable
char grade = 'A'; // Character variable
bool is_student = true; // Boolean variable
string name = “John”; // String variable
Conditional operators and loops
- Using the if statement to make decisions.
- Switch operator for choosing between several options.
- For, while, do-while cycles for repeating actions.
- Example with if-else and for loop:
int number = 10;
if (number > 0) {
cout << “Positive number” << endl;
} else {
cout << “Negative number or zero” << endl;
}
for (int i = 1; i <= 5; ++i) {
cout << “Iteration ” << i << endl;
}
I/O Basics
- How to get data from the user using cin.
- How to display data on the screen using cout.
Example:
int number;
cout << “Enter a number: ”;
cin >> number;
cout << “You entered: ” << number << endl;
Simple C++ programs
- Writing small programs to consolidate theoretical knowledge.
Examples:
A program to calculate the sum of two numbers:
int num1, num2;
cout << “Enter first number: ”; cin >> num1;
cout << “Enter second number: ”; cin >> num2;
cout << “The sum is: ” << (num1 + num2) << endl;
Program to determine the parity of a number:
int number;
cout << “Enter a number: ”;
cin >> number;
if (number % 2 == 0) {
cout << “Even number” << endl;
} else {
cout << “Odd number” << endl;
}
What you will get after completing the course:
- An understanding of C++ program syntax and structure.
- Ability to write simple programs that solve basic problems.
- Experience in working with data input/output, conditional operators and loops.
- Fundamentals of development using C++ for subsequent more advanced courses.
Cost of the course: $100