A compilation of all the topics in the C++ Basics Section, along with a brief explanation on their contents.
Note: If you’re new to C++, first check out our Getting Started with C++ guide. We’ll walk you through the installation process and help you configure it in the best possible way.
C++ Syntax: Syntax is the set of rules that define how code is written. This article goes through some basic rules on how C++ code should be written.
C++ Operators: An Article on Arithmetic, Logical, Bit wise, Comparison and Assignments Operators in C++, complete with examples.
C++ Input: A guide on how to take user input, followed by an explanation on how to handle it effectively.
C++ Data Types: An Article that goes through the various data types in C++ with examples. Did you know about Mutable and Immutable Data types? If not, head over to the article.
C++ Strings: Strings, one of the most basic data types in a programming language. A complete guide on strings, using them, parsing them and combining them with several built in functions C++ has to offer.
C++ if else statement: An individual close up analysis on if…else statements, how to use them effectively and in various scenarios. Complete with several examples.
C++ Loops: An Overview on the various types of loops in C++, what sets them apart, and where to use which.
C++ While Loop: This loop repeats while the given condition is true. When the condition becomes false, the loops terminates and program control passes to the line immediately following the loop.
C++ For Loops: An individual close up analysis on For loops, how to use them effectively and in various scenarios. Complete with several examples.
C++ Functions: A function is a reusable block of code that runs only when called. Functions saves time, increase re-usability and makes your code simpler to read.
C++ Switch statement: Along with the if else statement, the switch case statement is a way of decision making in C++. It’s a more precise way of decision making than if statements which are better for covering a wide range of possibilities.
C++ Pointers: One of the most important aspects of C++ is Pointers, and the concept of memory management. Most languages hide this part from you, but C++ doesn’t. This makes things more complicated, but also gives you more control. Pointers simply store addresses to the memory location where certain data is saved.
C++ Vectors: People usually only know about the Array type, which is common is almost every language. There are several other types of containers such as Vector, which is often a much better choice than Arrays due to it’s dynamic re-sizing and flexibility.
C++ Auto Keyword: A handy feature which allows you to simply use
auto in the place of other datatypes when declaring variables. It “Automatically” detects the datatype being assigned to it, and then applies that type to the variable.
If you feel like our “C++ Basics” section is lacking something, feel free to tell us, or you can even contribute your own article. Any suggestions or contributions for CodersLegacy are more than welcome.