I'm just trying to make this simple little thing that will decode ASCII into readable characters. The only problem is, the code I've got so far voids everything after a space. IE '39 20', meaning 20 would be completely ignored...
I've tried a lot of stuff, but I can't think of anything that makes it work.
Code:/* BUGS: Voids any ASCII after a space. */ #include <iostream> #include <conio.h> using namespace std; int main() { char str[1024]; int i; cout << "Enter some some ASCII:" << endl; cin.getline ( str, 1024 ); i = atoi(str); cout << char(i); getch(); return 0; }