Skip to content

Instantly share code, notes, and snippets.

@ryancat
Created August 20, 2020 05:32
Show Gist options
  • Save ryancat/fa87e179798e0c79ff1daf07273e06fe to your computer and use it in GitHub Desktop.
Save ryancat/fa87e179798e0c79ff1daf07273e06fe to your computer and use it in GitHub Desktop.
Learning C++ note
<map version="1.0.1">
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
<node CREATED="1597595675123" ID="ID_1480064371" MODIFIED="1597597165767" TEXT="C++">
<node CREATED="1597595687402" ID="ID_4167567" MODIFIED="1597595718168" POSITION="right" TEXT="IDE">
<node CREATED="1597595718169" ID="ID_436473551" MODIFIED="1597595737554" TEXT="Mac: Xcode" />
<node CREATED="1597595723311" ID="ID_140828934" MODIFIED="1597595748163" TEXT="Windows: Visual Studio" />
</node>
<node CREATED="1597595857826" ID="ID_311037127" MODIFIED="1597595868137" POSITION="left" TEXT="Basic Syntax">
<node CREATED="1597595868139" ID="ID_1918807677" MODIFIED="1597595880384" TEXT="Variables" />
<node CREATED="1597595880967" ID="ID_1905319404" MODIFIED="1597595883049" TEXT="Pointers" />
<node CREATED="1597595883477" ID="ID_240959619" MODIFIED="1597595886312" TEXT="References" />
<node CREATED="1597595898148" ID="ID_1637190845" MODIFIED="1597595913328" TEXT="Loop">
<node CREATED="1597595913330" ID="ID_354972502" MODIFIED="1597595918647" TEXT="While and do" />
<node CREATED="1597595919151" ID="ID_1256305354" MODIFIED="1597595924031" TEXT="Iterator" />
<node CREATED="1597595924830" ID="ID_1654704560" MODIFIED="1597595934776" TEXT="Range-based" />
</node>
<node CREATED="1597595943598" ID="ID_352334936" MODIFIED="1597595959639" TEXT="Conditionals" />
</node>
<node CREATED="1597595962935" ID="ID_207559030" MODIFIED="1597595979019" POSITION="right" TEXT="Data Types">
<node CREATED="1597595967464" ID="ID_1154085045" MODIFIED="1597595974847" TEXT="Integer">
<node CREATED="1597595984082" ID="ID_563659399" MODIFIED="1597595989318" TEXT="char" />
<node CREATED="1597595991805" ID="ID_770304752" MODIFIED="1597595993663" TEXT="int" />
<node CREATED="1597595994127" ID="ID_625189015" MODIFIED="1597595996320" TEXT="short int" />
<node CREATED="1597595996809" ID="ID_400917703" MODIFIED="1597595998551" TEXT="long int" />
<node CREATED="1597595999007" ID="ID_791054257" MODIFIED="1597596001783" TEXT="long long int" />
</node>
<node CREATED="1597595976532" ID="ID_366121343" MODIFIED="1597596014671" TEXT="Floating point">
<node CREATED="1597596014672" ID="ID_612426799" MODIFIED="1597596018359" TEXT="float" />
<node CREATED="1597596020645" ID="ID_825802353" MODIFIED="1597596021862" TEXT="double" />
</node>
<node CREATED="1597596028360" ID="ID_1230669149" MODIFIED="1597596037894" TEXT="char and c string">
<node CREATED="1597596037895" ID="ID_1486140948" MODIFIED="1597596043358" TEXT="const char *" />
</node>
<node CREATED="1597596050052" ID="ID_987747448" MODIFIED="1597596091547" TEXT="Qualifiers">
<node CREATED="1597596091539" ID="ID_923312357" MODIFIED="1597596119135" TEXT="Constant and Volatile (CV) Qualifiers">
<node CREATED="1597596056264" ID="ID_1183502723" MODIFIED="1597596066581" TEXT="const" />
<node CREATED="1597596130774" ID="ID_1534100660" MODIFIED="1597596133685" TEXT="volatile" />
<node CREATED="1597596122286" ID="ID_1209129724" MODIFIED="1597596128653" TEXT="mutable" />
</node>
<node CREATED="1597596137549" ID="ID_1005247549" MODIFIED="1597596143681" TEXT="Storage Duration">
<node CREATED="1597596143682" ID="ID_1425315593" MODIFIED="1597596146325" TEXT="static" />
<node CREATED="1597596147173" ID="ID_643401115" MODIFIED="1597596148892" TEXT="register" />
<node CREATED="1597596149141" ID="ID_82531699" MODIFIED="1597596150853" TEXT="extern" />
</node>
</node>
<node CREATED="1597596186234" ID="ID_1307029764" MODIFIED="1597596192277" TEXT="Structured data">
<node CREATED="1597596192278" ID="ID_937588283" MODIFIED="1597596198331" TEXT="Default to public" />
<node CREATED="1597596201612" ID="ID_1513082410" MODIFIED="1597596207004" TEXT="No methods, only properties" />
</node>
<node CREATED="1597596213085" ID="ID_1146284722" MODIFIED="1597596217395" TEXT="Bit fields">
<node CREATED="1597596226932" ID="ID_281942467" MODIFIED="1597596234652" TEXT="bool isTrue : 1" />
</node>
<node CREATED="1597596244923" ID="ID_819382793" MODIFIED="1597596249419" TEXT="Enumerations" />
<node CREATED="1597596256305" ID="ID_143814685" MODIFIED="1597596259171" TEXT="Unions" />
<node CREATED="1597596262595" ID="ID_1452890031" MODIFIED="1597596278122" TEXT="typedef">
<node CREATED="1597596278123" ID="ID_1607532448" MODIFIED="1597596298570" TEXT="typedef unsigned char rank_t" />
</node>
<node CREATED="1597596319178" ID="ID_1203561727" MODIFIED="1597596325482" TEXT="auto" />
<node CREATED="1597596325978" ID="ID_101278714" MODIFIED="1597596328578" TEXT="nullptr" />
</node>
<node CREATED="1597596364218" ID="ID_1571233708" MODIFIED="1597596617778" POSITION="left" TEXT="Operators">
<node CREATED="1597596367139" ID="ID_291975125" MODIFIED="1597596388337" TEXT="++, --" />
<node CREATED="1597596431672" ID="ID_1226662915" MODIFIED="1597596440232" TEXT="bitwise operators">
<node CREATED="1597596440926" ID="ID_455843990" MODIFIED="1597596512729" TEXT="&amp;, |, ~, ^, &lt;&lt;, &gt;&gt;" />
</node>
<node CREATED="1597596518880" ID="ID_229183766" MODIFIED="1597596529217" TEXT="Dynamic memory operators">
<node CREATED="1597596529218" ID="ID_1643561441" MODIFIED="1597596545470" TEXT="new with try...catch" />
<node CREATED="1597596546127" ID="ID_1316858005" MODIFIED="1597596609710" TEXT="delete, delete []" />
</node>
<node CREATED="1597596623061" ID="ID_495659707" MODIFIED="1597596624565" TEXT="typecast" />
<node CREATED="1597596625382" ID="ID_1868151989" MODIFIED="1597596631180" TEXT="sizeof">
<node CREATED="1597596631181" ID="ID_424834081" MODIFIED="1597596659725" TEXT="size_t (in bytes)" />
</node>
<node CREATED="1597596666212" ID="ID_229805075" MODIFIED="1597596681740" TEXT="typeid" />
</node>
<node CREATED="1597596682932" ID="ID_1960526905" MODIFIED="1597596685229" POSITION="right" TEXT="Functions">
<node CREATED="1597596706083" ID="ID_1056789105" MODIFIED="1597596711489" TEXT="static and automatic storage" />
<node CREATED="1597596725149" ID="ID_1000620475" MODIFIED="1597596729148" TEXT="function pointer">
<node CREATED="1597596731460" ID="ID_1699897045" MODIFIED="1597596751564" TEXT="void (*pfunc)() = func" />
</node>
<node CREATED="1597596758325" ID="ID_557051383" MODIFIED="1597596771963" TEXT="function overloading" />
<node CREATED="1597596772764" ID="ID_989616720" MODIFIED="1597596782561" TEXT="variable number of arguments">
<node CREATED="1597596782561" ID="ID_1377501147" MODIFIED="1597596785131" TEXT="..." />
<node CREATED="1597596786534" ID="ID_108916532" MODIFIED="1597596811059" TEXT="#include &lt;cstdarg&gt;" />
<node CREATED="1597596812084" ID="ID_1210062150" MODIFIED="1597596841947" TEXT="va_list, va_start, va_end" />
</node>
</node>
<node CREATED="1597596849305" ID="ID_1847178947" MODIFIED="1597596853338" POSITION="left" TEXT="Classes and Objects">
<node CREATED="1597596864647" ID="ID_388946844" MODIFIED="1597596869508" TEXT="data and function members" />
<node CREATED="1597596870995" ID="ID_20530769" MODIFIED="1597596874081" TEXT="default to private" />
<node CREATED="1597596878283" ID="ID_436933885" MODIFIED="1597596890415" TEXT="constructor/destructor" />
<node CREATED="1597596891917" ID="ID_1002646823" MODIFIED="1597596900020" TEXT="overloading operators" />
</node>
<node CREATED="1597596908892" ID="ID_594036070" MODIFIED="1597596913491" POSITION="left" TEXT="Templates">
<node CREATED="1597596920713" ID="ID_260618598" MODIFIED="1597596935455" TEXT="Generic types" />
<node CREATED="1597596935918" ID="ID_23328736" MODIFIED="1597596944957" TEXT="template&lt;typename T&gt;" />
</node>
<node CREATED="1597597002416" ID="ID_1944354359" MODIFIED="1597597008738" POSITION="left" TEXT="Standard library">
<node CREATED="1597597024030" ID="ID_1497499849" MODIFIED="1597597060342" TEXT="using namespace std" />
<node CREATED="1597597061141" ID="ID_1772500116" MODIFIED="1597597119837" TEXT="File I/O, Binary files" />
<node CREATED="1597597120332" ID="ID_613668007" MODIFIED="1597597243022" TEXT="cstring functions" />
<node CREATED="1597597128537" ID="ID_1396101778" MODIFIED="1597597132748" TEXT="system errors" />
</node>
<node CREATED="1597597166817" ID="ID_1075461022" MODIFIED="1597597178834" POSITION="left" TEXT="Standard Template Library (STL)">
<node CREATED="1597597191210" ID="ID_529985567" MODIFIED="1597597197814" TEXT="vector">
<node CREATED="1597597330643" ID="ID_933499352" MODIFIED="1597597335634" TEXT="#include &lt;vector&gt;" />
<node CREATED="1597597197815" ID="ID_71300966" MODIFIED="1597597213503" TEXT="vector&lt;int&gt; vi = {1,2}" />
</node>
<node CREATED="1597597245359" ID="ID_764920481" MODIFIED="1597597247358" TEXT="string">
<node CREATED="1597597317919" ID="ID_1537423537" MODIFIED="1597597322875" TEXT="#include &lt;string&gt;" />
</node>
<node CREATED="1597597251908" ID="ID_1117931537" MODIFIED="1597597256214" TEXT="I/O stream">
<node CREATED="1597597311123" ID="ID_1419000935" MODIFIED="1597597316362" TEXT="#include &lt;iostream&gt;" />
</node>
<node CREATED="1597597256751" ID="ID_1201677768" MODIFIED="1597597274796" TEXT="Exceptions">
<node CREATED="1597597292117" ID="ID_1847349443" MODIFIED="1597597307396" TEXT="#include &lt;exception&gt;" />
</node>
</node>
</node>
</map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment