I'm having some trouble with a program. I want the user to input a hex number as a char* pointer and then have that char* converted to a hex value.
Here is what I got so far
oh and thanks in advance for any and all help.Code:#include <iostream> using namespace std; int main() { char hex[256]; char *HexNum; cout<<"Enter the Hex number to Convert"; cin.getline (hex, 256,'\n'); HexNum = hex ; cout <<"the string is"<<hex<<endl; cout <<*HexNum<<endl; return 0; }