IST 240 Study Guide - Gnu Readline, Increment And Decrement Operators, Switch Statement
Document Summary
Takes an argument which is the string you want to write out along with data that you want to put into that string. {} curly braces with an integer is a placeholder. /* uses to comment out until certain lines. If statement, if true, the code in the statement is executed: else case if it"s not true, but is optional, one equal sign does assignment, 2 equal signs tests for equality. If the if statement is only one line, you don"t have to use curly braces but its better so its more readable. || - or operator: && - means and, can chain using if, else if and else, switch statement, bunch of if else"s statements but different ways of writing it, switch ( value) { Case value 1: also can have a default case, every case must have a break command at the end, or ti will fail, expression a collection of operators and operands that produce a result.