|
Size: 155
Comment:
|
Size: 401
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 9: | Line 9: |
| == 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 }}} ---- |
|
| Line 11: | Line 35: |
| + [[C++/PointersAndReferences|Pointers and References]] | * [[C++/PointersAndReferences|Pointers and References]] |
C++
Contents
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
