Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2022-05-11 13:51:06
Size: 155
Comment:
Revision 5 as of 2023-04-03 13:17:30
Size: 496
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:

----



== Example ==

A hello world program will look like:

{{{
#include <iostream>

int main() {
    std::cout << "Hello World!\n";
    return 0;
}
}}}

To compile and run, try:

{{{
g++ -o hello hello.cpp
./hello
}}}

----



== Installation ==

See [[C#Installation|the instructions for installing C]].

C++


Example

A hello world program will look like:

#include <iostream>

int main() {
    std::cout << "Hello World!\n";
    return 0;
}

To compile and run, try:

g++ -o hello hello.cpp
./hello


Installation

See the instructions for installing C.


Data Types


CategoryRicottone

C++ (last edited 2023-04-05 17:52:58 by DominicRicottone)