Im working on an exersise that requires the user enter a string(ID) and it must be of 4 chars long the first digit must be a char and the following 3 digits must be numeric. EG: w123
I know what I want to say but just cant get it into C.
if the user enters the string and its captured by the Var "ID"
I want to say something like:
I realise thats probably complete jibberish heehee but I am stuck.Code:if (ID(0)!== "a string" && ID(1)!== "a number" && ID(2)!== "a number" && ID(3)!== "a number" ) printf("The code you entered is in an incorrect format"); else Carry on............
Thanks again in advance for any assistance.
Regards as ever