Listed as Free on Udemy when checked on 6 November 2026. No coupon or subscription trial is required for the listed lessons. Enrollment needs a Udemy account; availability can change.
About this course
A small program can make a useful decision once it has a value to examine and a clear rule to apply. This free English course by Tan YingChien introduces that relationship through C++ variables, operators and conditional statements. Its compact format suits a learner who wants an initial view of how a program represents information and chooses what to do next.
The course contains nine videos across five sections, totaling fifty minutes and forty-nine seconds. The sequence moves from an introduction and Windows development setup to variables, input/output, strings, operators, if statements and switch. Seven quizzes and five downloadable resources are listed separately. The source level is Beginner, and the requirements do not assume previous programming experience.
| Official course | LEARN C++ BASICS |
|---|---|
| Created by | Tan YingChien |
| Platform | Udemy |
| Language | English |
| Level | Beginner |
| Listed duration | 50 minutes; 9 lectures across 5 sections |
| Completion terms | Not included with a new free enrollment |
What you’ll learn
Recognize basic C++ data types and connect a variable with the value it represents. Distinguish the editor from the compiler used to build a program. Follow examples of logical expressions, if-else branches and switch cases, then reason about how a different input changes the selected path.
Skills you’ll gain
- C++ setup concepts
- Variables and basic data types
- Console input and output basics
- Boolean expressions
- If-else branching
- Switch-case reasoning
Understand the tools before configuring them
The introduction places C++ in context, followed by a setup demonstration using Visual Studio Code, MinGW and Code Runner on Windows. These components have different roles. VS Code is the editor in which you write and organize source files; a C++ compiler translates the source into a program. Installing an editor or its language extension alone does not provide every tool needed to compile and debug C++.
The recording dates from August 2023. Use current official installation documentation when selecting a compiler and configuring its path, because package names, screens and extension behavior can change. Do not assume that a Run button proves the toolchain is configured correctly. A small Hello World program is a useful first check, with the compiler and execution steps understood separately. Current compatibility has to be checked on your own system.
Give a value a meaningful role
The variables lesson covers values represented by types such as int, double, char, bool and string, with output through cout. Choose a name that explains the role of the value: a temperature, a menu choice and a yes-or-no flag answer different questions even before the program uses them. Declaration, assignment and comparison are separate ideas; giving a variable a value is not the same operation as testing it against another value.
Alongside these demonstrations, the course includes dedicated input/output, strings and arithmetic lessons. Use this part of the sequence to connect a value entered by a user with the type your program expects and the result it displays. Text that looks like a number still needs appropriate handling before arithmetic. These short topics are a starting point for practice, rather than a complete treatment of input validation or every string operation.
Build a condition from smaller tests
The logical-operators lesson uses temperature conditions and a Boolean flag to illustrate combining tests. An AND expression requires both conditions to hold, while OR accepts at least one. NOT reverses a Boolean result. Before using a longer expression, evaluate its smaller parts for a specific example. Parentheses can make the intended grouping easier to read and reduce confusion between the rule you meant and the expression you wrote.
Boundary values are especially useful. If a rule describes an inclusive range, test both endpoints as well as values immediately outside it. If a second flag affects the outcome, try both flag values with the same number. This is an editorial practice approach rather than a supplied course assignment. The purpose is to develop a habit of explaining the decision, instead of relying on one successful input.
Choose between branches and cases
The if-statements lesson introduces comparisons, else and else-if through a simple age check. Focus on the order of the branches and the distinction between equality testing and assignment. An educational condition is a programming example; it does not by itself establish a real eligibility policy. Changing the order of overlapping conditions can change which branch runs.
The switch lesson considers discrete cases, including month values and letter grades. A C++ switch is useful for matching a suitable integral or enumeration value against constant cases; it is not a universal replacement for every compound if condition. Follow the control flow after a match. Without a break or another transfer of control, execution can continue into the next case. A default branch can give an explicit response to an unexpected choice.
Practice one decision carefully
For a short extension, write down three numbered menu choices and the response expected for each, plus a response for an unknown number. Predict the selected branch for several inputs before implementing it. This is a proposed exercise, not a provided or tested solution. Although one advertised learning outcome mentions functions, the visible nine-video curriculum does not establish a dedicated functions lesson. The course is a brief introduction, with further practice needed before larger programs, and no certificate or professional proficiency promised here.
Related courses for your next step
- Add a related skillBash Scripting
Focus: Script setup · Interpreter selection
Beginner
Compare course focus, level and study time
| Course | Level | Focus | Study time |
|---|---|---|---|
| This course — Free C++ Decisions Course: Understand Variables, Logic and Conditions | Beginner | C++ setup concepts · Variables and basic data types · Console input and output basics | 50 minutes (Udemy listing) |
| Free Bash Scripting Course: Write Your First Linux Script | Beginner | Script setup · Interpreter selection · Shell builtins | 44 minutes (Udemy listing) |
Frequently asked questions
Does the course require previous coding experience?
No. It is marked Beginner and introduces setup, variables, operators and conditions without a prior programming prerequisite.
Is VS Code itself a C++ compiler?
No. VS Code is an editor. A separate compiler and appropriate configuration are needed to build C++ programs.
How much material does the course contain?
The listing contains nine videos across five sections, with fifty minutes and forty-nine seconds of video. Seven quizzes and five resources are also advertised; no particular exercise or solution is promised here.
Questions & discussion
Share a useful question or correction. Comments appear after moderation. Please avoid personal or sensitive information.