This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
programming:cpp [2021/04/16 18:22] nanodano |
programming:cpp [2021/06/09 00:55] (current) nanodano |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== C++ Programming ====== | ====== C++ Programming ====== | ||
- | C++ is a language based on CIf you want C programming, | + | If you are looking for the C programming |
- | ===== Editors | + | ===== Blog posts ===== |
- | Technically you could write code in any text editor, but some are better than others. At minimum, you'll want to use an editor that supports syntax highlighting which will help you read the code and identify syntax errors easier. | + | See: https://www.devdungeon.com/ |
- | You might also want an editor that has a built-in debugger, terminal, and version control tools. When an editor starts to incorporate these kinds of features, it becomes an integrated development environment (IDE) rather than a simple text editor. | + | ===== Editors ===== |
* vim | * vim | ||
Line 28: | Line 28: | ||
* clang | * clang | ||
* TurboC++ (DOS) | * TurboC++ (DOS) | ||
- | |||
- | ===== Debugging ===== | ||
- | |||
- | ==== Methods of debugging ==== | ||
- | |||
- | * Rubber duck | ||
- | * Print statements | ||
- | * breakpoint debugging | ||
==== Debuggers ==== | ==== Debuggers ==== | ||
Line 52: | 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 | + | |