Formatted IO Quick Guide
Type | Application | Example | Notes |
---|---|---|---|
stdio library |
library needed to interact with the user through the terminal window and keyboard |
|
This is a preprocessor directive which goes above the main (and under the header comments). |
printf |
output text to the screen | code in your program file: |
REMINDER! You can use things like field width and precision to format how your output looks when displayed to the screen! |
scanf |
get input from the keyboard | code in your program file: FIRST the prompt displays and the program does nothing until the user has entered the right information |
|