C++ is one of the most powerful programming languages as well as being one of the World’s most popular. Using a fast, efficient and reliable C++ IDE is very important for beginners and professionals since it helps C++ developers in remembering which language features exist, how to use them, and even detect errors when we get it wrong. Over the course of the next few weeks, we’re going to release a series of articles which will take you from your very first steps with C++, through the basics, to more advanced topics. We’ll be using RAD Studio and C++ Builder as our C++ IDE and you’re going to learn how to create C++ programs for all platforms including Windows desktop as well as mobile apps.
Table of Contents
Complete Guide To Programming Basics In C++
In general most program code is in the form of lines of text. That means you can read code in any editors i.e. with Notepad, Word, etc. on Windows. C and C++ Compilers, compiles (converts) these lines to machine code that directly runs in that operating system and links as a executable (*.exe) file. A Compiler (C or C++ Compiler, etc.) is a computer program that converts one programming language into executable machine code with a linker. Such code may not be as fast as assembler code, but the difference in speed is very small because both machine code and compiler-based code in text form are much more compatible with other CPU/GPUs and/or with other Operating Systems when you compile them on a machine. This is one reason why C++ is the fastest and most powerful programming language. Interpreted programming languages run inside executable applications like Java, Python or Visual Basic. This is why they are slower when executing operations, as they need to use compiled libraries for faster operations. Again, they mostly they use C/C++ compilers to build these libraries. Using an interpreted programming language is like being carried by a runner, while a compiled (non-interpreted) programming language is like running itself. This subtle difference turns into a huge gap when you run the same routine (i.e. for face recognition) millions of times a millisecond.
In this section, we list methods and features that shapes the structure of C++ Programming Language. It is very important for beginners to understand how code lines work in C++.
- Easily Learn Powerful C++ Programming Language Structure
- What is the std namespace in C++?
- What is The Difference Between #include And #include “…”?
- Learn About Constants And Literals In The C++ Programming Language
- Easily Learn About Using Input And Output In C++ Programming
- Quickly Learn About Data Types And Size Of Variables In The C++ Programming Language
- How To: Use Variables In C++ Programming
- Quickly Learn To Use Variables Between Units In C++ Builder
- Learn How To Use Comments In C++
- Learn How To Use Booleans In C++
- Learn How To Use Operators In C++
- This Is How To Use Bitwise Operators in C++ Software
- What Does & (the ampersand) Mean In A C++ App?
- Learn To Use For Loops In C++
- Learn to Use While and Do-While Loops in C++
- Learn To Use Break And Continue In Loops With C++
- Discover If Statements and Conditions in C++
- Discover Switch Statements in C++
- Learn To Define And Use Arrays In C++
- Discover Goto and Labels in C++
- Learn To Use Mathematical And Trigonometric Functions In C++
- Discover Function Overloading in C++
- Learn About Parameters Passed by Reference in Functions
- Learn to Use Constant References in C++ Functions
- Learn about Data Structures in C & C++
- This Is How To Use Exception Handling In C++ Software
- What Is The Purpose Of Local Variables In C++?
- What Is The Right Way To Use const_cast In C++?
- How To Use static_cast In C++ Software
- This Is How to Use dynamic_cast in C++
- What Is The Right Way To Use reinterpret_cast In C++?
- Learn To Use Windows DOS Commands In A C++ App
- What You Need To Learn About Using Bits In C++ Software
- This Is How To Use Bit Shifting In Your C++ App
Complete Guide To Programming Numbers In C++
The Fundamental Data Types are listed officially here.
long, together with their unsigned variants, are all considered integer data types. The following table shows the integer type specifiers, with synonyms listed on the same line. Here are the posts about how to use to some of Fundamental Integer Data Types.
How to manipulate and represent numbers in C++?
- Learn To Use The Multi-Talented Printf() Function In C++
- What Is The sscanf Function In C++ And How Can I Use It?
- How To Use fscanf In Your Own C++ Software
- How To Use The All-Powerful swscanf function In Your C++ App
- Learn To Display Numbers With Formatting In C++ Software
- Learn to Display Formatted Floating Numbers in C++ Builder
- What Is The –> Or ++> Decrement/Increment Operator In C++?
- How To Convert An Integer To A String In A C++ App
Complete Guide To Programming Strings In C++
std::pmr::basic_string) is a class template that stores and manipulates sequences of alpha numeric string objects (
w_char,…). For example,
std::wstring are the data types defined by the
std::basic_string<char>. In other words,
basic_string is used to define different data_types which means a
basic_string is not a string only, it is a namespace for a general string format. A basic string can be used to define
u32string data types. Let’s see how we can use them in different operations.
How to use the C++ string class?
- What You Need To Know About std::basic_string In Modern C++
- Learn to Use Strings in C++
- Learn to Use Strings (string) in C++ – All You Need To Know
- How To Use Methods To Copy One String to Another String
- How To Get A Substring Of A String In A C++ App
- How Do I Add Characters to Strings in C++ The Right Way?
- What You Need To Append One String To Another In A C++ App
- You Need To Know How To Correctly Remove Characters From C++ Strings
- How To Access Individual Character Elements Of A C++ String
- This Is How To Swap One String With Another In A C++ App
- This Is How To Print A Pointer String In A C++ App
- What Is The Modern Way To Read Formatted Strings In A C++ App?
- This Is How To Convert A String To A Char Array In C++ Software
- How To Convert A Float To A String In A C++ App
- How To Erase/Delete Part Of A String In C++ Software
- How To Use The find() String Method In A Modern C++ App
- How To Use The rfind() Search Method in C++ Software
- How To Use find_first_of() And find_last_of() In C++ Apps
- How To find_first_not_of() Or find_last_not_of() In C++ Apps
- What You Need To Know About Clear Methods In C++ Software
- How To Make A Comparison Between Strings In A C++ App
- This Is How String Capacity And Lengths Work In A C++ App
- How To Make A Comparison Between Strings In A C++ App
- How To Replace A String Into Another String In A C++ App
- How To Convert A String to a Wide String In A Modern C++ App
- Using Iterators of String in C++ Software
- How To Insert A String Into Another String In A C++ App
What is the wstring class in C++?
- Learn To Use Wide Strings (wstring) In C++
- How To Make Use Of Wide String Properties In C++ Software
- How To Replace A Wide String Into Another In A C++ App
- Convert A Char Array To A Wide String In Modern C++ Software
- How To Swap One Wide String With Another Wide String
- This Is How To Add Characters to Wide Strings in Modern C++
- The Right Way To Access Character Elements Of A Wide String
- This Is How To Get A Substring of a Wide String in C++
- Learn How To Use Wide String Clear Methods in C++
- The Modern Way To Read Formatted Wide Strings In A C++ App
- How To Use Wide String Iterators In Modern C++ Software
- What Is The Erase WString Method In A Modern C++ App
- This Is How To Join Two Wide Strings In Modern C++ Software
- 3 Ways To Remove Characters From WString In A Modern C++ App
- How To Copy A Wide String to Wide Char Array In A C++ App
- What Is The find() Wide String Method In A Modern C++ App?
- Inserting A String Into A Wide String In A Modern C++ App
- How To Use WString find_first_of() In A Modern C++ App
- How To Make find_first_not_of() String Searches In A C++ App
What is u16string in C++?
What is u32string in C++?
How to use UnicodeString in C++?
- Unicode Strings in C++ On Windows
- How To Operate On The Words In A String In C++
- Learn About Delimiters (Tokens) in Modern C++ On Windows
The complete guide to file operations in C++
C++ is a great programming language that can reach every part of your device or operating system. The ability to manipulate the file system of an operating system is very important and it will help you when coding to understand the file system features of the target Operating System and the corresponding features of C++.
In this section, you’ll learn how to use DOS commands to operate on files, as well as how to use system commands in C++ to list, copy, rename, delete, and move files and set file permissions using the C++ system commands.
How to work with files in C++?
- Quickly Learn To Search And Count Words From A Text File In Modern C++
- Tutorial: Learn To Sort A Text File On Windows With C++
- Handle Based File Operations In C++ Builder
- Windows File Operations in Modern C++
- This Is How To Use File Operations In C++
- How To Get A File Name Without Extension In C++ Software
- How To Get The Attributes Of A Given File For Windows App Development
- How To Check If A File Exists or Not on Windows
- How To Change A File Extension On Windows Using C+
- How to use SameFileName method on Windows
- How To Generate A Random File Name on Windows
- How To Delete A File On Windows In C++ Builder
- Everything You Need To Set File Attributes In Your Apps
- How To Read And Write Text Files In A Modern C++ App
- How To Use GetFileName On A Path String In A C++ App
- How To Use The ExtractFileName Method In Your C++ Software
- This Is How To Extract A File Extension in A Windows C++ App
- How To Get A File Extension From A Windows Path In A C++ App
How to manipulate file paths in C++?
- How To Understand File And Folder Paths In Programming
- Extract A File Path For C++ App Development On Windows
- How To Extract the Short Path Name From The File Path
- How To Extract A Relative Path From Path Strings on Windows
- How To Extract The File Directory Name From A File Path In C++
- How to Combine Two Path Strings in C++ Builder
- How To Get A Full Path From A String On Windows?
- This Is How To Change A File Path In A String On Windows
- How To Use GetTempPath Method In C++ Builder?
- How to Use GetHomePath Method in C++ Builder
- How To Check Characters of File Names and Paths on Windows
- How To Include Or Exclude Trailing Backslashes On Windows
- How To Include And Exclude Path Delimiters On Windows
- How To Get Windows Environment Variables In C++ Builder
How to create, check, delete and force directories in C++?
- Learn To Use Directory Operations In Your C++ App
- How To Check If a Directory Really Exists on Windows
- How To Use C++ To Get And Set Current Directory On Windows
- The Easy Way To Create A Windows Directory In C++
- How To Use ForceDirectories Method To Create Folders In C++
- How To Check If A Directory On Windows Is Empty In C++?
- How To Delete A Directory In C++ Builder On Windows
- How To Get A Directory Name From A Path String
How to work with Drives in C++?
- How to Get Disk Information in C++ on Windows?
- How To Extract The Drive Name From A Path In A C++ App
What is the complete guide to programming time and date in C++?
When we write programs, it’s very common to come across two important data structures, which are the Date and Time properties. The Date and Time property is obtained from a time module which is a physical device on the hardware you are using.
- How To Make A Millisecond Timer In C And C++
- Learn to Use Date and Its Properties in Your C++ App
- Learn To Use Time And Its Properties In Your C++ App
- This Is How To Use Time And Its Properties In C++ Software
- Everything You Need To Use Dates Properly In C++ Software
C++ Builder is the easiest and fastest C and C++ IDE for building simple or professional applications on the Windows, MacOS, iOS & Android operating systems. It is also easy for beginners to learn with its wide range of samples, tutorials, help files, and LSP support for code. RAD Studio’s C++ Builder version comes with the award-winning VCL framework for high-performance native Windows apps and the powerful FireMonkey (FMX) framework for cross-platform UIs.
You can download the free C++ Builder Community Edition here: https://www.embarcadero.com/products/cbuilder/starter.
Professional developers can use the Professional, Architect or Enterprise versions of C++ Builder. Please visit https://www.embarcadero.com/products/cbuilder.