C++ Tutorials
Page 1 of 1 • Share
- WebtechModerator
- Time Online : 4h 8m 25s
State : Ph
My Club :
Posts : 153 Posts Liked : 109
Awards :
C++ is a high level computer programming language.
C++ is used by hundreds of thousands of programmers in essentially every application domain.
It has the best integration with C language of all languages. Most browsers and operating systems are written fully or partly in c++ eg. Goolge Chrome, Mozilla, Opera etc
C++ is being highly used to write device drivers and other softwares that rely on direct manipulation of hardware under real-time constraints. C++ is widely used for teaching and research because it is clean enough for successful teaching of basic concepts.
Anyone who has used either an Apple Mac or a PC running Windows has indirectly used C++ because the primary user interfaces of these systems are written in C++.
List Of Popular Softwares Written In C++
List of popular softwares written in C++.C++ is one of the most widely used and effective programming languages. Many of the apps, games and browsers you use where all made in C++.
++ in programming languages mean to increment. C++ was a direct improvement of C programming language. So it has all the cool features of C language plus more.
Perhaps this will inspire you to learn C++
Here is your list:
List based on kind of software
Operating Systems
Most of the operating systems are written in C and C++ language. These include Windows 95, 98, 2000, XP, Vista, Windows 7, Windows 8, Apple Mac OS X, Symbian OS and Be-OS, Google Chrome OS, RIM BlackBerry OS 4.x, Apple iPhone iPod Touch and iPad OS etc.
Web Browsers
Microsoft Internet Explorer
Google Chrome (based on chromium web browser)
Mozilla Firefox
Safari
Netscape Navigator
Opera and Opera Mini
Office Products
Microsoft Office (Word, Excel, Access, PowerPoint, Outlook, FrontPage)
Apache OpenOffice
Corel Office/WordPerfect Office
E-Mail Clients
Microsoft Outlook
IBM Lotus Notes
Mozilla Thunderbird
Web Sites
Facebook - Several high-performance and high-reliability components are developed in C++.
YouTube
Amazon
Paypal
Multimedia Players
Winamp
Microsoft Windows Media Player
Apple iPod software
VLC media player
Database systems
All the major RDBMS are developed in c++.
Oracle database
MySQL
IBM DB2
Microsoft SQL Server
IBM Informix
SAP DB/MaxDB
MongoDB: An open-source database, widely used as the back end store for web applications, as well as in large enterprises like Viacom and Disney.
Graphical Layers
Graphical layers are nothing but the Graphical User Interface provided by various operating systems in order to make the human-computer interaction user friendly.
Microsoft Windows UI
Apple MacOS UI (Aqua)
KDE
Compilers and Virtual Machines for programming languages
It is amazing to notice that various compilers and run-time environments for other programming languages are written in C++. This means without C++, it would not be possible to execute .Net and Java applications.
Microsoft Visual C++ Compiler
Microsoft Visual Basic Compiler
Microsoft Visual C# Compiler
Microsoft .Net CLR
Java Virtual Machine (JVM)
And of course there are many games and game engines written in C++ - nearly all of them.
Games
It is difficult to provide list of all games here but some of them are Doom III engine, Counter Strike, Sierra On-line: Birthright, Hellfire, Football Pro, Bullrider I & II, Trophy Bear, Kings Quest, Antara, Hoyle Card games suite, SWAT, Blizzard: StarCraft, StarCraft: Brood War, Diablo I, Diablo II: Lord of Destruction, Warcraft III, World of Warcraft, Starfleet Command, Invictus, PBS's Heritage: Civilization and the Jews, Master of Orion III, CS-XII, MapleStory etc.
Electronic Art's video game engine is coded in c++.
All Microsoft's games are written in c++.
Advantages Of C++ Over Other Programming Languages
Advantages of C++ over other programming languages.
1. Java and C# borrowed their synthax directly from C++
2. C++ closest language to C and works best with it
3. Most of the major softwares you use today are written in C++
4. It has the largest community of developers, over 11 million active developers
5. C++ is relatively easy to code
6. C++ Compiles most ANSI C code directly and can call compiled C code
7. C++ has a very good support team
Other advantageous features of C++ are:
C++ is
Strongly typed
Avoids the ambiguities which are in C
OOP
Garbage Collection
Models real-world scenario better
RTTI
STL
Supports Modular Programming and Exception Handling
Installing And Setting Up An Ide For C++
IDE stands for integrated development environment. This is the software that you will be writing your c++ codes on. They usually come with inbuilt compilers so you can write and run your codes directly from the IDE. There are many of them available.
My personal favourite is Microsofts Visual C++.
To get that you just need to download Microsoft Visual Studio software. C++ is one of the languages it can handle it. It has so many rich features i like and the fact that i can switch from C++ to C# and VB.net all on the same IDE is amazing. There are other C++ IDEs with fantastic features like that too such as Eclipse and Codeblocks.
The videos and links below will help:
Each programmer has their favourite IDE
Hello World Example In C++ And Understanding C++ Code Structure
Hello world example in C++ and Understanding C++ Code Structure.C++ has a very simple syntax structure . If you have had a little experience at all with other programming languages you would appreciate the simplicity of C++.
C++ makes use
Methods/Functions
Semi Colon as delimiters
Classes
Objects and
Instance Variables
Just like many conventional programming languages.
Lets take a simple hello world example in c++
- Code:
#include <iostream> using namespace std; // main() is where program execution begins. This is the block of code that is run first int main() { cout << "Hello World"; // prints Hello World return 0; }
C++ Tutorials: Outputting Text Using Cin And Cout
C++ Tutorials: Outputting text using CIN and COUT.
In C++ the keyword COUT is used to out put text to the screen so the user can see it.
CIN is used to accept text from the user through keyboard.
We will see an example of it below:
I/O sources and sinks are called streams. 3 are defined in the header:-
cin The standard input, normally the keyboard.
cout The standard output, normally the screen.
cerr The error output, normally the screen.
This code will print out "hello word" using cout
- Code:
#include<iostream> using namespace std; int main() { cout << "Hello World!"; //print out "hello word" to screen return 0; }
Here is an example using CIN to accept input from who ever is using the app, then print it out using Cout
- Code:
#include<iostream> using namespace std; int main() { char MY_CHAR; cout << "Press a character and press return: "; cin >> MY_CHAR; cout << MY_CHAR; return 0; }
C++ Tutorials : Keywords And How To Use Themthey Are Reserved Words By C++, You Cant Declare A Variable With Any Of T
C++ Tutorials : Keywords and how to use them
They are reserved words by C++, you cant declare a variable with any of those names.
The following list shows the reserved words in C++. These reserved words may not be used as constant or variable or any other identifier names.
asm else new this
auto enum operator throw
bool explicit private true
break export protected try
case extern public typedef
catch false register typeid
char float reinterpret_cast typename
class for return union
const friend short unsigned
const_cast goto signed using
continue if sizeof virtual
default inline static void
delete int static_cast volatile
do long struct wchar_t
double mutable switch while
dynamic_cast namespace template
Here are videos:
C++ Tutorials: Variable Declaration And Data Types
C++ tutorials: Variable declaration and data types.Variables in C++ are easy to declare and use. A variable is a named storage that your program can manipulate.
Variables have specific datatypes, the datatypes determine the size and layout of the variable's memory. Understanding the concept of variables is core to understanding the whole idea of programming.
its quite simple. Instead of doing the usual mathematics
X = 17 x 42
i could choose to do
X = K x Y
whatever the user enters as the value of K will be multiplied by what they entered as the value of Y.
Here are the variable types available in C++ and how to find their sizes:
- Code:
#include <iostream> using namespace std; int main() { cout << "Size of char : " << sizeof(char) << endl; cout << "Size of int : " << sizeof(int) << endl; cout << "Size of short int : " << sizeof(short int) << endl; cout << "Size of long int : " << sizeof(long int) << endl; cout << "Size of float : " << sizeof(float) << endl; cout << "Size of double : " << sizeof(double) << endl; cout << "Size of wchar_t : " << sizeof(wchar_t) << endl; return 0; }
Available data types in C++
- Code:
Type Description bool Stores either value true or false. char Typically a single octet(one byte). This is an integer type. int The most natural size of integer for the machine. float A single-precision floating point value. double A double-precision floating point value. void Represents the absence of type. wchar_t A wide character type.
Here is how variables are declared and used in C++
Declaration follows this format:
- Code:
type variable_name = value;
Examples:
- Code:
extern int k = 3, l = 5; // declaration of k and l. int d = 3, g = 5; // definition and initializing d and g. byte z = 10; // definition and initializes z. char x = 'h'; // the variable x has the value 'h'.
C++ Free Tutorials: Receiving Keyboard Input From User
C++ Free Tutorials: Receiving Keyboard Input From User.CIN is used to receive inputs from user, in the example below Cout is used to print instruction to screen for user, then Cin is used to collect their input, Cout is used to print it out again
- Code:
#include <iostream> #include <string> // To use string using namespace std; int numberInput char charictorInput string stringInput int main() { cout << "Please enter a number: "; cin >> numberInput; cout << "Please enter a charictor: "; cin >> charictorInput cout << "Please enter a word: "; cin >> stringInput; cout << numberInput << charictorInput << stringInput; cin.get(); return EXIT_SUCCESS;}
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum