CIS 1500 Lecture Notes - Lecture 7: Boolean Data Type, C Data Types, Semicolon

59 views4 pages

Document Summary

If this happens while you"re testing your code, use ctrl + c (^c) to kill the process: note: in a terminal ctrl + c kills processes; this is called a control sequence. It will not copy text from the terminal. To copy text from a terminal window press ctrl + Dr. judi mccuiag: the loop body is always executed at least once, and is repeatedly executed as long as the expression is true do { Users will try their best to find a way to break your program with bad input :( Good idea: have a boolean variable set to true or false that flags if the input is good or bad; use a while loop with conditions to check the input, and set the boolean flag appropriately. Tell the user what they did wrong, if anything. Note: to use boolean variables, include stdbool: #include * first expression: i = 0; initialize counter.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents