This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
programming:cpp [2021/06/09 00:55] nanodano |
programming:cpp [2021/06/09 00:55] (current) nanodano |
||
|---|---|---|---|
| Line 44: | Line 44: | ||
| ===== Code examples ===== | ===== Code examples ===== | ||
| - | ==== Hello world ==== | + | See https://github.com/ |
| - | + | ||
| - | <code cpp hello.cpp> | + | |
| - | #include < | + | |
| - | + | ||
| - | int main() { | + | |
| - | std::cout << " | + | |
| - | } | + | |
| - | </code> | + | |
| - | + | ||
| - | ==== Command-line arguments ==== | + | |
| - | + | ||
| - | ==== Environment variables ==== | + | |
| - | + | ||
| - | ==== User input ==== | + | |
| - | + | ||
| - | ==== Formatting output ==== | + | |
| - | + | ||
| - | Using tabs, using ASCII borders, formatting hex/binary/money/decimal points | + | |