This is similar to my Char to hax/deci but u can do a string such as a word the value generated is same value as u would see in nitepr or ps2dis
Heres An Example of this app in actionCode:/* Name: Text Converter Author: SonniE Date: 02/06/08 04:30 Description: www.codinghs.com original program */ #include <iostream> #include <string> using namespace std; int main() { char text[16]; char ans, var; cout << "Welcome TO SonniE's Text To Hex! A WWW.codinghs.COM Original\n"; here: var = 0; cout << "Enter Your Text: "; std::cin>>text; std::cout << "Text: "<< text <<"\nHexadecimal Value: "; do{ cout<< hex << int(text[var]); var++; }while (text[var] != '\0'); cout<< "\n"; system("PAUSE"); cout << "Do You Want To Convert Another Character? (y/n)"; cin >> ans; if (ans == 'y' || ans == 'Y') { system("cls"); goto here; } else { system("pause"); } return 0; }
Code:Welcome TO SonniE's Text To Hex! A WWW.codinghs.COM Original Enter Your Text: SonniE Text: SonniE Hexadecimal Value: 536f6e6e6945