<commit_before><map version="0.9.0">
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
<node CREATED="1430848502381" ID="ID_530863269" MODIFIED="1430848930553" TEXT="02 - Basic Statements">
<attribute NAME="author" VALUE="<NAME>"/>
<attribute NAME="subtitle" VALUE="CS1400 - Lecture 2"/>
<attribute NAME="date" VALUE=""/>
<node CREATED="1430848683014" ID="ID_1695438784" MODIFIED="1430848740686" POSITION="right" TEXT="Variables">
<node CREATED="1430849280389" ID="ID_1119244206" MODIFIED="1430849289618" TEXT="Variables">
<node CREATED="1430849042301" ID="ID_1126193772" MODIFIED="1430849051568" TEXT="What is a Variable?">
<node CREATED="1430849053341" ID="ID_1335809899" MODIFIED="1430849091585" TEXT="A variable is an object"/>
<node CREATED="1430849064493" ID="ID_33851039" MODIFIED="1430849070017" TEXT="The nouns of a computer program"/>
<node CREATED="1430849114285" ID="ID_1011345749" MODIFIED="1430849124626" TEXT="Names should be meaningful"/>
</node>
<node CREATED="1430952113619" ID="ID_1106602838" MODIFIED="1430952117083" TEXT="Constants">
<node CREATED="1430952117084" ID="ID_926300037" MODIFIED="1430952132857" TEXT="If the value of a variable should never change you can say so by calling the variable const"/>
</node>
</node>
<node CREATED="1430848842717" ID="ID_1042314761" MODIFIED="1430848850537" TEXT="Type">
<node CREATED="1430849296941" ID="ID_1046108708" MODIFIED="1430849300800" TEXT="What is Type?">
<node CREATED="1430849302645" ID="ID_190625801" MODIFIED="1430849353666" TEXT="An abstraction"/>
<node CREATED="1430849354133" ID="ID_1797274691" MODIFIED="1430849359946" TEXT="A classification of variables"/>
<node CREATED="1430849360245" ID="ID_190433964" MODIFIED="1430849366794" TEXT="All variables are of at least one type"/>
</node>
<node CREATED="1430848968557" ID="ID_1883719503" MODIFIED="1430848978970" TEXT="Built-in Types">
<node CREATED="1430849407429" ID="ID_1183787921" MODIFIED="1430849419902" TEXT="Integral Types">
<node CREATED="1430849419903" ID="ID_139288236" MODIFIED="1430849421706" TEXT="int"/>
<node CREATED="1430849422397" ID="ID_1761514118" MODIFIED="1430849424154" TEXT="short"/>
<node CREATED="1430849424501" ID="ID_1028421417" MODIFIED="1430849425578" TEXT="char"/>
<node CREATED="1430849425957" ID="ID_242313242" MODIFIED="1430849428682" TEXT="long"/>
<node CREATED="1430849428933" ID="ID_410541151" MODIFIED="1430849431722" TEXT=". . . others"/>
</node>
<node CREATED="1430849445239" ID="ID_864682886" MODIFIED="1430849462461" TEXT="Boolean">
<node CREATED="1430849475319" ID="ID_1370445460" MODIFIED="1430849476726" TEXT="bool"/>
</node>
<node CREATED="1430849463238" ID="ID_6319210" MODIFIED="1430849470306" TEXT="Floating Point Types">
<node CREATED="1430849470308" ID="ID_661038441" MODIFIED="1430849472852" TEXT="float"/>
<node CREATED="1430849473303" ID="ID_836796537" MODIFIED="1430849474349" TEXT="double"/>
</node>
</node>
<node CREATED="1430848979413" ID="ID_1442041922" MODIFIED="1430848983466" TEXT="User Defined Types">
<node CREATED="1430849487967" ID="ID_1433484516" MODIFIED="1430849491301" TEXT="Enumerations"/>
<node CREATED="1430849491535" ID="ID_1364852540" MODIFIED="1430849498133" TEXT="User Defined Classes"/>
<node CREATED="1430849498431" ID="ID_756618633" MODIFIED="1430849504582" TEXT="Standard Library Types"/>
</node>
<node CREATED="1430848983901" ID="ID_1068870467" MODIFIED="1430848989265" TEXT="include directive">
<node CREATED="1430849508463" ID="ID_230191244" MODIFIED="1430849526989" TEXT="A preprocessor directive to include a source file"/>
<node CREATED="1430849527380" ID="ID_1178858501" MODIFIED="1430849533261" TEXT="Used to access library types"/>
<node CREATED="1430849533607" ID="ID_1377522220" MODIFIED="1430849541598" TEXT="Used to organize code"/>
</node>
</node>
<node CREATED="1430848852085" ID="ID_1111859255" MODIFIED="1430952110306" TEXT="Literals">
<node CREATED="1430849558855" ID="ID_127573664" MODIFIED="1430849568630" TEXT="Temporary unnamed variables"/>
<node CREATED="1430849569046" ID="ID_1022425597" MODIFIED="1430849578506" TEXT="Just the value">
<node CREATED="1430849578507" ID="ID_1495978005" MODIFIED="1430849579798" TEXT="2"/>
<node CREATED="1430849580503" ID="ID_966206522" MODIFIED="1430849582603" TEXT="3.4"/>
<node CREATED="1430849582975" ID="ID_262979286" MODIFIED="1430849588806" TEXT="true"/>
<node CREATED="1430858777443" ID="ID_831938240" MODIFIED="1430858786219" TEXT="&quot;A string&quot;"/>
</node>
<node CREATED="1430849593303" ID="ID_1185304630" MODIFIED="1430849616514" TEXT="Use generally discouraged ">
<node CREATED="1430849616515" ID="ID_904769295" MODIFIED="1430849619790" TEXT="Magic Numbers"/>
<node CREATED="1430849621007" ID="ID_320906357" MODIFIED="1430849633131" TEXT="Use is expected in initialization"/>
</node>
<node CREATED="1430952169411" ID="ID_971016785" MODIFIED="1430952186019" TEXT="Consider a const variable instead of raw literal"/>
</node>
<node CREATED="1430848862149" ID="ID_33830707" MODIFIED="1430848865666" TEXT="AAA Style">
<node CREATED="1430849646951" ID="ID_1567410869" MODIFIED="1430849656062" TEXT="Every value has a type"/>
<node CREATED="1430849656263" ID="ID_709696092" MODIFIED="1430849663902" TEXT="The compiler knows what this type is"/>
<node CREATED="1430849664158" ID="ID_977347332" MODIFIED="1430849679870" TEXT="The auto keyword says to create a variable of the type used to initailize it"/>
<node CREATED="1430849680462" ID="ID_637387685" MODIFIED="1430849688614" TEXT="auto x = 3;"/>
</node>
</node>
<node CREATED="1430849138157" ID="ID_789065546" MODIFIED="1430849141063" POSITION="right" TEXT="Functions">
<node CREATED="1430849141064" ID="ID_1947210519" MODIFIED="1430849148102" TEXT="What is a Function?">
<node CREATED="1430849148103" ID="ID_24820554" MODIFIED="1430849153818" TEXT="The verbs of a computer program"/>
<node CREATED="1430849154453" ID="ID_1082030708" MODIFIED="1430849170122" TEXT="Names should be meaningful"/>
</node>
<node CREATED="1430849171189" ID="ID_1358137246" MODIFIED="1430849177662" TEXT="Operator Syntax">
<node CREATED="1430849177663" ID="ID_768246794" MODIFIED="1430849190290" TEXT="Some commonly used functions use a different syntax"/>
<node CREATED="1430849198069" ID="ID_178031576" MODIFIED="1430849201994" TEXT="add(a,b)"/>
<node CREATED="1430849202421" ID="ID_1942211277" MODIFIED="1430849204586" TEXT="a + b"/>
</node>
</node>
<node CREATED="1430858729323" ID="ID_1185885968" MODIFIED="1430858732554" POSITION="right" TEXT="Interaction">
<node CREATED="1430848741501" ID="ID_471454576" MODIFIED="1430848751010" TEXT="Output">
<node CREATED="1430858738322" ID="ID_40094046" MODIFIED="1430858745191" TEXT="Console Output">
<node CREATED="1430858746051" ID="ID_142037433" MODIFIED="1430858751938" TEXT="Include iostream"/>
<node CREATED="1430858752748" ID="ID_1701393806" MODIFIED="1430858771843" TEXT="cout &lt;&lt; &quot;Hello World&quot;;"/>
</node>
</node>
<node CREATED="1430848751429" ID="ID_1919443944" MODIFIED="1430848753154" TEXT="Input">
<node CREATED="1430858794188" ID="ID_246470551" MODIFIED="1430858798606" TEXT="Console Input">
<node CREATED="1430858798607" ID="ID_464644884" MODIFIED="1430858801769" TEXT="Include iostream"/>
<node CREATED="1430858802411" ID="ID_827488960" MODIFIED="1430858806570" TEXT="cin &gt;&gt; value;"/>
<node CREATED="1430858807035" ID="ID_1140188631" MODIFIED="1430858818386" TEXT="std::getline(cin,buffer);"/>
</node>
</node>
</node>
<node CREATED="1430848753701" ID="ID_1122016196" MODIFIED="1430848830185" POSITION="right" TEXT="Arithmetic">
<node CREATED="1430858833852" ID="ID_1168993721" MODIFIED="1430858845806" TEXT="Expressions">
<node CREATED="1430858845807" ID="ID_258988317" MODIFIED="1430858861047" TEXT="Math Operations">
<node CREATED="1430858861049" ID="ID_1441618913" MODIFIED="1430858864742" TEXT="Addition +"/>
<node CREATED="1430858864961" ID="ID_109058690" MODIFIED="1430858868194" TEXT="Subtraction -"/>
<node CREATED="1430858868458" ID="ID_295547503" MODIFIED="1430858873623" TEXT="Multiplication *"/>
<node CREATED="1430858873995" ID="ID_1158380866" MODIFIED="1430858877448" TEXT="Division /"/>
<node CREATED="1430858881196" ID="ID_747272364" MODIFIED="1430858886098" TEXT="Modulo %"/>
</node>
<node CREATED="1430858910570" ID="ID_1144995050" MODIFIED="1430858917086" TEXT="Logic Operations">
<node CREATED="1430858917086" ID="ID_465399437" MODIFIED="1430858919599" TEXT="And &amp;&amp;"/>
<node CREATED="1430858920171" ID="ID_296041465" MODIFIED="1430858922665" TEXT="Or ||"/>
<node CREATED="1430858923123" ID="ID_1769432380" MODIFIED="1430858926275" TEXT="Not !"/>
</node>
<node CREATED="1430859033306" ID="ID_1499489381" MODIFIED="1430859036485" TEXT="Comparisions">
<node CREATED="1430859036486" ID="ID_413853173" MODIFIED="1430859040169" TEXT="Equality =="/>
<node CREATED="1430859040651" ID="ID_195883101" MODIFIED="1430859045049" TEXT="Inequality !="/>
<node CREATED="1430859045451" ID="ID_1641555169" MODIFIED="1430859048251" TEXT="Less &lt;"/>
<node CREATED="1430859048931" ID="ID_464543861" MODIFIED="1430859050578" TEXT="Greater &gt;"/>
<node CREATED="1430859050883" ID="ID_372220058" MODIFIED="1430859056842" TEXT="Less or Equal &lt;="/>
<node CREATED="1430859057066" ID="ID_497540986" MODIFIED="1430859062338" TEXT="Greater or Equal &gt;="/>
</node>
</node>
<node CREATED="1430859004587" ID="ID_712113914" MODIFIED="1430859010111" TEXT="Integer Arithmetic">
<node CREATED="1430859010112" ID="ID_1187301461" MODIFIED="1430859028033" TEXT="Integer division may not be what you expect"/>
<node CREATED="1430859078371" ID="ID_343488694" MODIFIED="1430859086235" TEXT="3 / 2 == 1"/>
<node CREATED="1430859086923" ID="ID_1725722006" MODIFIED="1430859095051" TEXT="Fractional portions are rounded off"/>
</node>
<node CREATED="1430859105491" ID="ID_1987444730" MODIFIED="1430859115311" TEXT="Casting">
<node CREATED="1430859115312" ID="ID_778796160" MODIFIED="1430859124258" TEXT="use static_cast&lt;&gt; to change a type"/>
<node CREATED="1430859128987" ID="ID_839282385" MODIFIED="1430859136387" TEXT="Other casts exist"/>
<node CREATED="1430859160139" ID="ID_1166655735" MODIFIED="1430859167368" TEXT="In general casts are dangerous and to be avoided"/>
</node>
<node CREATED="1430859174523" ID="ID_1793559959" MODIFIED="1430859179727" TEXT="Assignment">
<node CREATED="1430859179729" ID="ID_1542797433" MODIFIED="1430859195875" TEXT="= assigns right hand side to left hand side"/>
<node CREATED="1430859198292" ID="ID_1838159551" MODIFIED="1430859215499" TEXT="L-Values and R-Values"/>
<node CREATED="1430859216028" ID="ID_45225605" MODIFIED="1430859221219" TEXT="Assignment is destructive"/>
<node CREATED="1430859221643" ID="ID_765492585" MODIFIED="1430859234443" TEXT="Don&apos;t confuse Assignemnt (=) with Equality (==)"/>
</node>
</node>
</node>
</map><commit_msg>Second lecture compiles and has more content<commit_after><map version="freeplane 1.2.0">
<!--To view this file, download free mind mapping software Freeplane from http://freeplane.sourceforge.net -->
<node TEXT="02 - Basic Statements" ID="ID_530863269" CREATED="1430848502381" MODIFIED="1430848930553">
<attribute NAME="author" VALUE="<NAME>"/>
<attribute NAME="subtitle" VALUE="CS1400 - Lecture 2"/>
<attribute NAME="date" VALUE=""/>
<hook NAME="MapStyle">
    <properties show_icon_for_attributes="true"/>

<map_styles>
<stylenode LOCALIZED_TEXT="styles.root_node">
<stylenode LOCALIZED_TEXT="styles.predefined" POSITION="right">
<stylenode LOCALIZED_TEXT="default" MAX_WIDTH="600" COLOR="#000000" STYLE="as_parent">
<font NAME="SansSerif" SIZE="10" BOLD="false" ITALIC="false"/>
</stylenode>
<stylenode LOCALIZED_TEXT="defaultstyle.details"/>
<stylenode LOCALIZED_TEXT="defaultstyle.note"/>
<stylenode LOCALIZED_TEXT="defaultstyle.floating">
<edge STYLE="hide_edge"/>
<cloud COLOR="#f0f0f0" SHAPE="ROUND_RECT"/>
</stylenode>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.user-defined" POSITION="right">
<stylenode LOCALIZED_TEXT="styles.topic" COLOR="#18898b" STYLE="fork">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.subtopic" COLOR="#cc3300" STYLE="fork">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.subsubtopic" COLOR="#669900">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.important">
<icon BUILTIN="yes"/>
</stylenode>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.AutomaticLayout" POSITION="right">
<stylenode LOCALIZED_TEXT="AutomaticLayout.level.root" COLOR="#000000">
<font SIZE="18"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,1" COLOR="#0033ff">
<font SIZE="16"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,2" COLOR="#00b439">
<font SIZE="14"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,3" COLOR="#990000">
<font SIZE="12"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,4" COLOR="#111111">
<font SIZE="10"/>
</stylenode>
</stylenode>
</stylenode>
</map_styles>
</hook>
<node TEXT="Variables" POSITION="right" ID="ID_1695438784" CREATED="1430848683014" MODIFIED="1430848740686">
<node TEXT="Variables" ID="ID_1119244206" CREATED="1430849280389" MODIFIED="1430849289618">
<node TEXT="What is a Variable?" ID="ID_1126193772" CREATED="1430849042301" MODIFIED="1430849051568">
<node TEXT="A variable is an object" ID="ID_1335809899" CREATED="1430849053341" MODIFIED="1430849091585"/>
<node TEXT="The nouns of a computer program" ID="ID_33851039" CREATED="1430849064493" MODIFIED="1430849070017"/>
<node TEXT="Names should be meaningful" ID="ID_1011345749" CREATED="1430849114285" MODIFIED="1430849124626"/>
</node>
<node TEXT="Constants" ID="ID_1106602838" CREATED="1430952113619" MODIFIED="1430952117083">
<node TEXT="If the value of a variable should never change you can say so by calling the variable const" ID="ID_926300037" CREATED="1430952117084" MODIFIED="1430952132857"/>
</node>
</node>
<node TEXT="Type" ID="ID_1042314761" CREATED="1430848842717" MODIFIED="1430848850537">
<node TEXT="What is Type?" ID="ID_1046108708" CREATED="1430849296941" MODIFIED="1430849300800">
<node TEXT="An abstraction" ID="ID_190625801" CREATED="1430849302645" MODIFIED="1430849353666"/>
<node TEXT="A classification of variables" ID="ID_1797274691" CREATED="1430849354133" MODIFIED="1430849359946"/>
<node TEXT="All variables are of at least one type" ID="ID_190433964" CREATED="1430849360245" MODIFIED="1430849366794"/>
</node>
<node TEXT="Built-in Types" ID="ID_1883719503" CREATED="1430848968557" MODIFIED="1430848978970">
<node TEXT="Integral Types" ID="ID_1183787921" CREATED="1430849407429" MODIFIED="1430849419902">
<node TEXT="int" ID="ID_139288236" CREATED="1430849419903" MODIFIED="1430849421706"/>
<node TEXT="short" ID="ID_1761514118" CREATED="1430849422397" MODIFIED="1430849424154"/>
<node TEXT="char" ID="ID_1028421417" CREATED="1430849424501" MODIFIED="1430849425578"/>
<node TEXT="long" ID="ID_242313242" CREATED="1430849425957" MODIFIED="1430849428682"/>
<node TEXT=". . . others" ID="ID_410541151" CREATED="1430849428933" MODIFIED="1430849431722"/>
</node>
<node TEXT="Boolean" ID="ID_864682886" CREATED="1430849445239" MODIFIED="1430849462461">
<node TEXT="bool" ID="ID_1370445460" CREATED="1430849475319" MODIFIED="1430849476726"/>
</node>
<node TEXT="Floating Point Types" ID="ID_6319210" CREATED="1430849463238" MODIFIED="1430849470306">
<node TEXT="float" ID="ID_661038441" CREATED="1430849470308" MODIFIED="1430849472852"/>
<node TEXT="double" ID="ID_836796537" CREATED="1430849473303" MODIFIED="1430849474349"/>
</node>
</node>
<node TEXT="User Defined Types" ID="ID_1442041922" CREATED="1430848979413" MODIFIED="1430848983466">
<node TEXT="Enumerations" ID="ID_1433484516" CREATED="1430849487967" MODIFIED="1430849491301"/>
<node TEXT="User Defined Classes" ID="ID_1364852540" CREATED="1430849491535" MODIFIED="1430849498133"/>
<node TEXT="Standard Library Types" ID="ID_756618633" CREATED="1430849498431" MODIFIED="1430849504582"/>
</node>
<node TEXT="include directive" ID="ID_1068870467" CREATED="1430848983901" MODIFIED="1430848989265">
<node TEXT="A preprocessor directive to include a source file" ID="ID_230191244" CREATED="1430849508463" MODIFIED="1430849526989"/>
<node TEXT="Used to access library types" ID="ID_1178858501" CREATED="1430849527380" MODIFIED="1430849533261"/>
<node TEXT="Used to organize code" ID="ID_1377522220" CREATED="1430849533607" MODIFIED="1430849541598"/>
</node>
</node>
<node TEXT="Uses" ID="ID_1213476708" CREATED="1433018264633" MODIFIED="1433018272044">
<node TEXT="Literals" ID="ID_1111859255" CREATED="1430848852085" MODIFIED="1430952110306">
<node TEXT="Temporary unnamed variables" ID="ID_127573664" CREATED="1430849558855" MODIFIED="1430849568630"/>
<node TEXT="Just the value" ID="ID_1022425597" CREATED="1430849569046" MODIFIED="1430849578506">
<node TEXT="2" ID="ID_1495978005" CREATED="1430849578507" MODIFIED="1430849579798"/>
<node TEXT="3.4" ID="ID_966206522" CREATED="1430849580503" MODIFIED="1430849582603"/>
<node TEXT="true" ID="ID_262979286" CREATED="1430849582975" MODIFIED="1430849588806"/>
<node TEXT="&quot;A string&quot;" ID="ID_831938240" CREATED="1430858777443" MODIFIED="1430858786219"/>
</node>
<node TEXT="Use generally discouraged " ID="ID_1185304630" CREATED="1430849593303" MODIFIED="1430849616514">
<node TEXT="Magic Numbers" ID="ID_904769295" CREATED="1430849616515" MODIFIED="1430849619790"/>
<node TEXT="Use is expected in initialization" ID="ID_320906357" CREATED="1430849621007" MODIFIED="1430849633131"/>
</node>
<node TEXT="Consider a const variable instead of raw literal" ID="ID_971016785" CREATED="1430952169411" MODIFIED="1430952186019"/>
</node>
<node TEXT="AAA Style" ID="ID_33830707" CREATED="1430848862149" MODIFIED="1430848865666">
<node TEXT="Every value has a type" ID="ID_1567410869" CREATED="1430849646951" MODIFIED="1430849656062"/>
<node TEXT="The compiler knows what this type is" ID="ID_709696092" CREATED="1430849656263" MODIFIED="1430849663902"/>
<node TEXT="The auto keyword says to create a variable of the type used to initailize it" ID="ID_977347332" CREATED="1430849664158" MODIFIED="1430849679870"/>
<node TEXT="auto x = 3;" ID="ID_637387685" CREATED="1430849680462" MODIFIED="1430849688614"/>
<node TEXT="This is the prefered syntax for creating a variable" ID="ID_1664208483" CREATED="1433018301032" MODIFIED="1433018315242"/>
</node>
</node>
</node>
<node TEXT="Functions" POSITION="right" ID="ID_875550593" CREATED="1433018403652" MODIFIED="1433018405575">
<node TEXT="Overview" ID="ID_789065546" CREATED="1430849138157" MODIFIED="1433018609296">
<node TEXT="What is a Function?" ID="ID_1947210519" CREATED="1430849141064" MODIFIED="1430849148102">
<node TEXT="The verbs of a computer program" ID="ID_24820554" CREATED="1430849148103" MODIFIED="1430849153818"/>
<node TEXT="Names should be meaningful" ID="ID_1082030708" CREATED="1430849154453" MODIFIED="1430849170122"/>
</node>
</node>
<node TEXT="Syntax" ID="ID_764326004" CREATED="1433018610245" MODIFIED="1433018612853">
<node TEXT="Parts of a Function" ID="ID_1838440050" CREATED="1433018621925" MODIFIED="1433018627638">
<node TEXT="Name" ID="ID_252711940" CREATED="1433018654268" MODIFIED="1433018659124"/>
<node TEXT="Return Type" ID="ID_832559556" CREATED="1433018659643" MODIFIED="1433018662787"/>
<node TEXT="Parameter List" ID="ID_1716484962" CREATED="1433018663267" MODIFIED="1433018671749"/>
<node TEXT="Body" ID="ID_1943091403" CREATED="1433018676883" MODIFIED="1433018678932"/>
</node>
<node TEXT="Function Signature" ID="ID_41001307" CREATED="1433018680666" MODIFIED="1433018683979">
<node TEXT="The name and parameter list (only the types and their order) are the \emph{signature}" ID="ID_1888667262" CREATED="1433018683987" MODIFIED="1433018719236"/>
<node TEXT="There can only be one function with a given signature (One Definition Rule)" LOCALIZED_STYLE_REF="styles.topic" ID="ID_600448261" CREATED="1433018719761" MODIFIED="1433018835681"/>
<node TEXT="You can use the same parameters with a different name" ID="ID_1467416026" CREATED="1433018770383" MODIFIED="1433018781396"/>
<node TEXT="You can use the same name with different parameters" ID="ID_1198392016" CREATED="1433018760176" MODIFIED="1433018770153"/>
<node TEXT="Using the same name is a form of \emph{polymorphisim}" ID="ID_942763530" CREATED="1433018786455" MODIFIED="1433018812480"/>
</node>
<node TEXT="Defining a function" ID="ID_255558717" CREATED="1433018630404" MODIFIED="1433018634799">
<node TEXT="Declaration: Promise that a function with a given signature will exist" ID="ID_1752392918" CREATED="1433018861204" MODIFIED="1433018878796"/>
<node TEXT="Definition: The implementation of a function" ID="ID_599985035" CREATED="1433018879115" MODIFIED="1433018892470"/>
</node>
<node TEXT="Using a function" ID="ID_1587715932" CREATED="1433018635187" MODIFIED="1433018641821"/>
<node TEXT="Operator Syntax" ID="ID_1358137246" CREATED="1430849171189" MODIFIED="1430849177662">
<node TEXT="Some commonly used functions use a different syntax" LOCALIZED_STYLE_REF="styles.topic" ID="ID_768246794" CREATED="1430849177663" MODIFIED="1433018458852"/>
<node TEXT="add(a,b)" ID="ID_178031576" CREATED="1430849198069" MODIFIED="1430849201994"/>
<node TEXT="a + b" ID="ID_1942211277" CREATED="1430849202421" MODIFIED="1430849204586"/>
<node TEXT="This is pure \emph{syntactic sugar}" ID="ID_1205705992" CREATED="1433018424388" MODIFIED="1433018441236"/>
</node>
</node>
<node TEXT="Style" ID="ID_419130231" CREATED="1433018613213" MODIFIED="1433018614984"/>
</node>
<node TEXT="Interaction" POSITION="right" ID="ID_1185885968" CREATED="1430858729323" MODIFIED="1430858732554">
<node TEXT="Output" ID="ID_471454576" CREATED="1430848741501" MODIFIED="1430848751010">
<node TEXT="Console Output" ID="ID_40094046" CREATED="1430858738322" MODIFIED="1430858745191">
<node TEXT="Include iostream" ID="ID_142037433" CREATED="1430858746051" MODIFIED="1430858751938"/>
<node TEXT="cout &lt;&lt; &quot;Hello World&quot;;" ID="ID_1701393806" CREATED="1430858752748" MODIFIED="1430858771843"/>
</node>
</node>
<node TEXT="Input" ID="ID_1919443944" CREATED="1430848751429" MODIFIED="1430848753154">
<node TEXT="Console Input" ID="ID_246470551" CREATED="1430858794188" MODIFIED="1430858798606">
<node TEXT="Include iostream" ID="ID_464644884" CREATED="1430858798607" MODIFIED="1430858801769"/>
<node TEXT="cin &gt;&gt; value;" ID="ID_827488960" CREATED="1430858802411" MODIFIED="1430858806570"/>
<node TEXT="std::getline(cin,buffer);" ID="ID_1140188631" CREATED="1430858807035" MODIFIED="1430858818386"/>
</node>
</node>
</node>
<node TEXT="Arithmetic" POSITION="right" ID="ID_1122016196" CREATED="1430848753701" MODIFIED="1430848830185">
<node TEXT="Expressions" ID="ID_1168993721" CREATED="1430858833852" MODIFIED="1430858845806">
<node TEXT="Math Operations" ID="ID_258988317" CREATED="1430858845807" MODIFIED="1430858861047">
<node TEXT="Addition" ID="ID_1441618913" CREATED="1430858861049" MODIFIED="1433017958941"/>
<node TEXT="Subtraction" ID="ID_109058690" CREATED="1430858864961" MODIFIED="1433017956077"/>
<node TEXT="Multiplication" ID="ID_295547503" CREATED="1430858868458" MODIFIED="1433017953119"/>
<node TEXT="Division" ID="ID_1158380866" CREATED="1430858873995" MODIFIED="1433017948839"/>
<node TEXT="Modulo" ID="ID_747272364" CREATED="1430858881196" MODIFIED="1433017940877"/>
</node>
<node TEXT="Logic Operations" ID="ID_1144995050" CREATED="1430858910570" MODIFIED="1430858917086">
<node TEXT="And" ID="ID_465399437" CREATED="1430858917086" MODIFIED="1433017969782"/>
<node TEXT="Or" ID="ID_296041465" CREATED="1430858920171" MODIFIED="1433017965589"/>
<node TEXT="Not" ID="ID_1769432380" CREATED="1430858923123" MODIFIED="1433017973604"/>
</node>
<node TEXT="Comparisions" ID="ID_1499489381" CREATED="1430859033306" MODIFIED="1430859036485">
<node TEXT="Equality" ID="ID_413853173" CREATED="1430859036486" MODIFIED="1433017981053"/>
<node TEXT="Inequality" ID="ID_195883101" CREATED="1430859040651" MODIFIED="1433017986367"/>
<node TEXT="Less" ID="ID_1641555169" CREATED="1430859045451" MODIFIED="1433017989587"/>
<node TEXT="Greater" ID="ID_464543861" CREATED="1430859048931" MODIFIED="1433017993125"/>
<node TEXT="Less or Equal" ID="ID_372220058" CREATED="1430859050883" MODIFIED="1433017998070"/>
<node TEXT="Greater or Equal" ID="ID_497540986" CREATED="1430859057066" MODIFIED="1433018002085"/>
</node>
</node>
<node TEXT="Integer Arithmetic" ID="ID_712113914" CREATED="1430859004587" MODIFIED="1430859010111">
<node TEXT="Integer division may not be what you expect" ID="ID_1187301461" CREATED="1430859010112" MODIFIED="1430859028033"/>
<node TEXT="3 / 2 == 1" ID="ID_343488694" CREATED="1430859078371" MODIFIED="1430859086235"/>
<node TEXT="Fractional portions are rounded off" ID="ID_1725722006" CREATED="1430859086923" MODIFIED="1430859095051"/>
</node>
<node TEXT="Casting" ID="ID_1987444730" CREATED="1430859105491" MODIFIED="1430859115311">
<node TEXT="use static\_cast to change a type" ID="ID_778796160" CREATED="1430859115312" MODIFIED="1433018124744"/>
<node TEXT="Other casts exist" ID="ID_839282385" CREATED="1430859128987" MODIFIED="1430859136387"/>
<node TEXT="In general casts are dangerous and to be avoided" ID="ID_1166655735" CREATED="1430859160139" MODIFIED="1430859167368"/>
</node>
<node TEXT="Assignment" ID="ID_1793559959" CREATED="1430859174523" MODIFIED="1430859179727">
<node TEXT="= assigns right hand side to left hand side" ID="ID_1542797433" CREATED="1430859179729" MODIFIED="1430859195875"/>
<node TEXT="L-Values and R-Values" ID="ID_1838159551" CREATED="1430859198292" MODIFIED="1430859215499"/>
<node TEXT="Assignment is destructive" ID="ID_45225605" CREATED="1430859216028" MODIFIED="1430859221219"/>
<node TEXT="Don&apos;t confuse Assignemnt (=) with Equality (==)" ID="ID_765492585" CREATED="1430859221643" MODIFIED="1430859234443"/>
</node>
</node>
</node>
</map>
{'fraction_non_alphanumeric': 0.15757435660348282, 'fraction_numerical': 0.30578671598089074, 'mean_word_length': 10.74524886877828, 'pattern_counts': {'":': 0, '<': 359, '<?xml version=': 0, '>': 359, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6515030', 'n_tokens_mistral': 14822, 'n_tokens_neox': 10059, 'n_words': 1844}