Input/Output Commands
disp |
Displays contents of an array or string. |
fscanf |
Read formatted data from a file. |
format |
Controls screen-display format. |
fprintf |
Performs formatted writes to screen or file. |
input |
Displays prompts and waits for input. |
; |
Suppresses screen printing. |
Format Codes for fprintf and
fscanf
%s |
Format as a string. |
%d |
Format as an integer. |
%f |
Format as a floating point value. |
%e |
Format as a floating point value in scientific notation. |
%g |
Format in the most compact form: %f or %e. |
\n |
Insert a new line in the output string. |
\t |
Insert a tab in the output string. |