I have several issues regarding a certain program I made for VRC\LRC calculation and I was hoping one of you can help me. (I need the program to be in C so please no C++ functions)
1)I need to get a character from the keyboard and convert it to its binary via the ASCII chart, is there some function to auto covert it or do I have to do an if statement for every possible character? if I must do If statements then how do I add special characters (like " , ' etc.) in the if?
2)How do I make getchar recognize the space button as a char?
3)how do I make everything I inputed and all the output of the software be saved into a file? (just as if I were to run the software with the "program.exe>log.txt" in the CMD)
4)unrelated to the software, just wonder if someone happen to know a good source where to learn C-51 (for the 8051 Microprocessor) mainly where it differs from regular C
Before I used this simple program to find out the ASCII values for keys like space, esc, etc. You can use this to find the value for space then convert it to character.