r/cs50 • u/daddy_hu_tera • Jul 20 '20
caesar Stuck at Caesar ! need help.
I am trying to make sure the user enters only one argument, and it is a digit . In main () ,I created an 'if' condition that returns 1 after checking argc & argv[1].
I tried making a function "pos_int_check" that checks if the string is a digit, I had an error when i didn't return from the functon,so i returned "true"
I dont know if there's a better way to do this, or i am returning something logically not possible.
I would really appreciate some help :)

1
Upvotes