There is such a code:
void Encode(char encode[]){ int ready; for(int i=0;i<strlen(encode);i++){ ready=(int)encode[i]; cout<<ready<<'#'; } We enter a string, the program translates each character into an int, and separates them with a '#'
- For example: enter abc
- We get: 97 # 98 # 99 #
Need to do the reverse function, tobish
- we enter: 97 # 98 # 99 #
- we get: abc