User Tools

Site Tools


cpp_ref

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cpp_ref [2018/08/08 20:52]
jguerin Started introduction.
— (current)
Line 1: Line 1:
-====== 2. C++ Language Reference ====== 
- 
-Programming languages are a tool. While many modern programming languages are designed to be general purpose, some programming languages may be better suited to solve certain problems than others. 
- 
-===== When 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://www.cplusplus.com/reference/|standard library]] of generics through templates, and many competitive programmers are versed in preprocessor macros that make C++ fell more like [[python3_ref|Python3]]. 
- 
-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!]]" in C++ takes can be accomplished in 107 keystrokes (not including editor commands) including the inclusion of ''iostream'', the use of ''namespace std'', typical whitespace/formatting, and C++ streams for output.)) This is due to both the terse syntax, and the lack of any required boilerplate in the most basic program. 
- 
-===== Input/Output ===== 
-  * [[cpp_basic_io|Basic IO]] operations 
-  * [[cpp_faster_io|Faster IO]] for competitive programming 
- 
-===== Data Structures ===== 
- 
-==== Sequential Structures ==== 
-  * [[cpp_vectors|Vectors]] 
-  * [[cpp_lists|(Linked) Lists]] 
-  * [[cpp_strings|Strings]] 
-  * [[cpp_tuples|Tuples]] 
-  * [[cpp_pair|Pairs]] 
-  * [[cpp_stacks|Stacks]] 
-  * [[cpp_queues|Queues]] 
-  * [[cpp_priority_queues|Priority Queues]] 
-  * [[cpp_bitsets|Bitsets]] 
- 
- 
-==== Non-Sequential Structures ==== 
-  * [[cpp_unordered_maps|Unordered Maps]] 
-  * [[cpp_maps|Maps]] 
-  * [[cpp_unordered_sets|Unordered Sets]] 
-  * [[cpp_sets|Sets]] 
- 
-===== Mathematical Types and Operations ===== 
-==== Numeric Types ==== 
-  * [[cpp_math|CMath]] 
- 
  
cpp_ref.1533779574.txt.gz ยท Last modified: 2018/08/08 20:52 by jguerin