How can I let a scanf recognize some separators?
For example:
user input a stream via scanf:
The program should recognize "," and "/" as separators, and assign Giacomo to a char*, Marciani to another char*,male to another char*,27 to a int,06 to another int and 1990 to another int.
For example:
user input a stream via scanf:
Giacomo Marciani,male,2 7/06/1990
The program should recognize "," and "/" as separators, and assign Giacomo to a char*, Marciani to another char*,male to another char*,27 to a int,06 to another int and 1990 to another int.
Comment