I have an assignment where i am to read arguments from the user. A special format is to be applied though. For example : -d 3 -D 3 -c 5 -u raw -g thisFile Thisnumber Thisoutput
In the example I am only supposed to read the numbers or string after -d -D -c and so on. I am not too too sure how to go about this. I was thinking of declaring an array of chars then read them individually but the length of the input can vary. Any suggestions?