This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cpp [2018/08/09 11:04] jguerin created |
cpp [2018/08/28 13:29] (current) jguerin Changed IO links to reflect the Python sections. |
||
---|---|---|---|
Line 4: | Line 4: | ||
===== When to use C++ ===== | ===== When to use C++ ===== | ||
+ | Whenever you have questions about time or memory limits, C++ is typically a safer path than [[python3|Python3]]. C++ contains most of the C library (when limits really put you in a pinch) and(at a higher level) boasts a well-established [[http:// | ||
===== When not to use C++ ===== | ===== When not to use C++ ===== | ||
- | Unlike [[python3_ref|Python3]], it is difficult to argue that C++ is ever a //poor// choice for a contest problem. Well-written C++ is difficult to beat in terms of runtime efficiency. C++ boasts a well-established [[http:// | + | Unlike [[python3|Python3]], it is difficult to argue that C++ is ever a //poor// choice for a contest problem. Well-written C++ is difficult to beat in terms of runtime efficiency. |
- | However, for all the benefits of C++, well written [[python3_ref|Python3]] can be generated in fewer keystrokes than is possible in C++ or Java.((The standard "[[cpp_hello_world|Hello World!]]" | + | However, for all the benefits of C++, well written [[python3|Python3]] can be generated in fewer keystrokes than is possible in C++ or Java.((The standard "[[files: |
===== Input/ | ===== Input/ | ||
- | * [[cpp_basic_io|Basic IO]] operations | + | * [[cpp:input|Input]] for Programming Contests |
- | * [[cpp_faster_io|Faster IO]] for competitive programming | + | * [[cpp:output|Output]] for Programming Contests |
===== Data Structures ===== | ===== Data Structures ===== | ||
==== Sequential Structures ==== | ==== Sequential Structures ==== | ||
- | * [[cpp_vectors|Vectors]] | + | * [[cpp:vector|Vectors]] |
- | * [[cpp_lists|(Linked) Lists]] | + | * [[cpp:list|(Linked) Lists]] |
- | * [[cpp_strings|Strings]] | + | * [[cpp:string|Strings]] |
- | * [[cpp_tuples|Tuples]] | + | * [[cpp:tuple|Tuples]] |
- | * [[cpp_pair|Pairs]] | + | * [[cpp:pair|Pairs]] |
- | * [[cpp_stacks|Stacks]] | + | * [[cpp:stack|Stacks]] |
- | * [[cpp_queues|Queues]] | + | * [[cpp:queue|Queues]] |
- | * [[cpp_priority_queues|Priority Queues]] | + | * [[cpp: |
- | * [[cpp_bitsets|Bitsets]] | + | * [[cpp:bitset|Bitsets]] |
==== Non-Sequential Structures ==== | ==== Non-Sequential Structures ==== | ||
- | * [[cpp_unordered_maps|Unordered Maps]] | + | * [[cpp: |
- | * [[cpp_maps|Maps]] | + | * [[cpp:map|Maps]] |
- | * [[cpp_unordered_sets|Unordered Sets]] | + | * [[cpp: |
- | * [[cpp_sets|Sets]] | + | * [[cpp:set|Sets]] |
===== Mathematical Types and Operations ===== | ===== Mathematical Types and Operations ===== | ||
==== Numeric Types ==== | ==== Numeric Types ==== | ||
- | * [[cpp_math|CMath]] | + | * [[cpp:math|CMath]] |