Control reading and process programming
Qinghua Chong Tian Ma Jingfa QQ: 283989349 E-mail: MJF150080@tom.com
When there is a problem, we can learn and discuss with qq by http://www.hustc.mpc.cn
First, the control structure
First understand the comparison operator:
== equal to> = greater than or equal to <= less than or equal to> greater than Understand the logical operator: && logical and || Logic OR! Logic Not Warning: The order is:! && || IF ... ELSE ... Structure: First way: if () {}; Second method: if () {} else {}; The third way: IF () {} else if () {} else if () {}; Fourth aspect: IF () {} else if () {} else {} else {}; Fifth aspect: IF () {IF () {};} else {if () {}; Conditions or triendal operators: Switch ... case ... Structure: Switch (Statement) { Case Option1: // DO STH. Break; Case Option2: // DO STH. Break; DEFAULT: // DO STH. Break; } Note: Both each case keyword must be constant. Exiting the Case and Default statements must be displayed. Jump statements include: return / continue / goto case