hello
the input i need the program to interpret is:
D#W#L#I#
where D,W,L,I are actions and the "#" after is the amount
now i know that the best way is to use getchar()
and switch.
and my question is how can i tell the program to get the # as a whole and not as indvidual digits, because the number could be any number ranging from 1- 9999999
D,W,L,I can be in any order and variation meaning : W#D#I#I# or L#L#I#I#W#D#W#D etc...
so i can't just put scanf(%c%d%c%d%c%d%c%d).
thank you for your help!