Hi guys. I am writing a program for class and there is one thing I just can't figure out. I have to write a program that reads input until encountering #. Then it prints each character and the ASCII decimal code. The problem is that I can do the whole enter input until # is entered using getchar, but the how do I return each INDIVIDUAL character!??! Thanks!
I am using the following for user input:
while ((ch = getchar ()) != '#)
I am using the following for user input:
while ((ch = getchar ()) != '#)