Please enable JavaScript.
Coggle requires JavaScript to display documents.
Streams, Control Flows, Operators - Coggle Diagram
Streams
include <iostream>
istream
cin
stream class for inputs
ostream
cout, cerr, clog
stream class for outputs
ios
i/o stream class
library that includes i/o stream classes
Control Flows
while
condition first, operations last
needs something inside the scope to stop the loop to not become infinite (runtime error)
do-while
operations first, condition last
needs something inside the scope to stop the loop to not become infinite (runtime error)
conditionals statements
if - else if - else
swicth-case
for
don't need a break
jumps
break, continue, goto
frequently used on loop statements
Operators
arithmetic
binary
unary
precedence in left updates the number before anything
relational
logical