Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

C++ Tutorial

C++ Tutorial

C++ is a high-level language, designed and developed by Bjarne Stroustrup starting in 1979 at Bell Labs. C++ extends and refines C, making it an object-oriented programming language. C++ runs on many platforms, such as Windows, Mac OS, and various versions of UNIX.

This tutorial explains the C++ programming language in plain and easy-to-understand language.

Start learning C++ programming now!

C++ Online Tools

Who should read this tutorial?

This tutorial is specially designed for beginners to help them understand concepts ranging from basic to advanced related to the C++ programming language.

Knowledge you need before reading this tutorial:

Before you start practicing the various examples given in this tutorial, you should have a basic understanding of computer programs and programming languages.

Compile/Execute C++ Programs

Example

#include

<
iostream
using
namespace
std

;

int

main

(

)

{

cout

<<

"

Hello, world!

"

<<

endl

;

return

0

;

}

Run Example »

You can use "\n" instead of endl in the code above.

Example

#include

<
iostream
using
namespace
std

;

int

main

(

)

{

cout

<<

"

Hello, world!

"

<<

"

\

n

"

;

return

0

;

}