cpp-preview
cpp-preview
com/
1
https://www.guru99.com/
2
https://www.guru99.com/
Table Of Content
Chapter 1: C++ Programming: What is C++ |
Learn Basic Concepts of C++
1. What is C++?
2. Popular programming languages in use?
3. Is C++ best programming language?
4. Who uses C++?
5. Five Basic Concepts of C++
6. Use of C++ Programming Language
1. What is Dev-C++?
2. How to Download and Install Dev C++ on Windows
3. Features Of Dev-C++ IDE
1. Variables in C++
3
https://www.guru99.com/
1. What is an Array?
2. Why do we need arrays?
3. Declare an array in C++
4. Array Initialization
5. Types of Arrays
6. Accessing the values of an Array
7. Advantages of an Array in C++
8. Disadvantages of an Array in C++
4
https://www.guru99.com/
1. What is a switch?
2. When to use a switch?
3. The break Keyword
4. Syntax
5. Example 1
6. Example 2
5
https://www.guru99.com/
1. What is a String?
2. Declaring Strings
3. Accessing string Values
4. String Functions:
6
https://www.guru99.com/
2. Addresses in C++
3. Pointer Declaration Syntax
4. Reference operator (&) and Deference operator (*)
5. Pointers and Arrays
6. NULL Pointer
7. Pointers of Variables
8. Application of Pointers
9. Advantages of using Pointers
1. What is Char?
2. What is ASCII?
3. Char Declaration
4. Syntax:
5. Printing ASCII Value
6. Printing Char Value
7. Inputting Chars
8. Converting Character to String
7
https://www.guru99.com/
1. What is std::stack?
2. Stack Syntax
3. Member Types
4. Operations in Stack
5. Stack Implementation
6. push() and pop()
7. empty(), size(), top()
8. emplace() and swap()
8
https://www.guru99.com/
9. Stack in STL
1. What is std::map?
2. Why use std::map?
3. Syntax:
4. Member types:
9
https://www.guru99.com/
5. Built-in Functions
6. Iterating over Map Elements
7. Inserting data in std::map
8. Searching in a Map
9. Deleting Data from a Map
1. What is a Class?
2. Class Declaration
3. Private and Public Keywords
4. Object Definition
5. Accessing Data Members
6. Class Member Functions
7. Constructors and Destructors
1. What is an std::list?
2. Why use std::list?
10
https://www.guru99.com/
3. List Syntax
4. C++ List Functions
5. <list> Constructors
6. Container properties
7. Inserting into a List
8. Deleting from a List
1. What is Structure?
2. What is Class?
3. Syntax of Class in C++
4. Syntax of Structure in C++
5. Difference between Structure and Class
6. Which One Should You Choose?
11
https://www.guru99.com/
Chapter 1: C++
Programming: What is
C++ | Learn Basic
Concepts of C++
What is C++?
C++ is a general-purpose, object-oriented programming
language. It was created by Bjarne Stroustrup at Bell Labs
circa 1980. C++ is very similar to C (invented by Dennis
Ritchie in the early 1970S). C++ is so compatible with C that it
will probably compile over 99% of C programs without
changing a line of source code. Though C++ is a lot of well-
structured and safer language than C as it OOPs based.
Some computer languages are written for a specific purpose.
Like, Java was initially devised to control toasters and some
other electronics. C was developed for programming OS.
Pascal was conceptualized to teach proper programming
techniques. But C++ is a general-purpose language. It well
deserves the widely acknowledged nickname “Swiss Pocket
Knife of Languages.” In this introduction to C++ tutorial, you
will learn C++ basic concepts-
What is C++?
Popular programming languages in use?
Is C++ best programming language?
Who uses C++?
Five Basic Concepts of C++
Use of C++ Programming Language
12
https://www.guru99.com/
Popular programming
languages in use?
Popular languages that are mainly in use are Java, C++,
Python, and C. Lower level languages like
Assembly Language
C
C++
As you can see despite being old, C++ is relatively popular still
today which is a feat in and its own. The graph is from
stackoverflow.com
13
https://www.guru99.com/
14
https://www.guru99.com/
C++ Variables
15
https://www.guru99.com/
C++ Syntax
C++ Tools
16
https://www.guru99.com/
Operating Systems:
Games:
17
https://www.guru99.com/
Browsers:
The rendering engines of various web browsers are
programmed in C++ because of the speed it offers.
Libraries:
Graphics:
Banking Applications:
Cloud/Distributed Systems:
Embedded Systems:
18
https://www.guru99.com/
Compilers:
19
https://www.guru99.com/
Chapter 2: How to
Download and Install C++
IDE on Windows
What is Dev-C++?
Dev-C++, developed by Bloodshed Software, is a fully-featured
graphical IDE (Integrated Development Environment) for C
and C++ programming. It is distributed under the GNU
General Public License for programming in C and C++.
20
https://www.guru99.com/
21
https://www.guru99.com/
22
https://www.guru99.com/
23
https://www.guru99.com/
24
https://www.guru99.com/
25