C++, Getting ascii values of char arrays?
C++, Getting ascii values of char arrays?
I'm trying to write a program, for learning, where you type a string, then it has to convert the array into a array of int's, Its just that I don't know how to do it.
1: this should probably be in the programming section. i don't know if it was kept through the forum merger, but it would be where this goes
2: check sites like cprogramming.com. if i remember right, what you're doing is variable casting, although i'm not sure if you can cast a string intto an int. maybe use a 3rd and fourth variable to hold where the int value starts and ends in the RAM... or maybe pointers...
2: check sites like cprogramming.com. if i remember right, what you're doing is variable casting, although i'm not sure if you can cast a string intto an int. maybe use a 3rd and fourth variable to hold where the int value starts and ends in the RAM... or maybe pointers...