The _scanf_color_DefaultStr function accepts a variable number of
arguments, which it interprets as addresses of C variables, and reads
character strings, representing their values. It converts them to their
internal representations using formatting commands embedded in the
argument format, which must be present in a call to
_scanf_color_DefaultStr.
The interpretation of the variables depends on the forma. The formatting
command for each variable begins with a % sign and can contain other
characters as well. A whitespace character (a blank space, a tab, or a new
line) may cause _scanf_color_DefaultStr to ignore whitespace
characters from keyboard. Other nonwhitespace characters, excluding
the % sign, cause _scanf_color_DefaultStr to ignore each matching
character from the input. It begins to interpret the first nonmatching
character as the value of variable that is being read.
For each C variable whose address is included in the argument list to
_scanf_color_DefaultStr, there must be a format specification embedded
in the format. For the complete format specification accepted by the
_scanf_color_DefaultStr function, please refer to the scanf function in
Turbo C++.
If you want input a float value, the value type is “ double “, not “ float “.
The _scanf_color_DefaultStr function returns the number of input items
that were successfully read, converted, and saved in variables. A return
value equal to EOF means that an end-of-file was encountered during the
read operation.
Kommentare zu diesen Handbüchern