C++ Code To Find The Hex Value Of AllThe Charecters In A String ::

 C++ Code To Find The Hex Value Of AllThe Charecters In A String ::
=====================================================


#include <iostream>
#include <string>
using namespace std;
int main(){



string str;
cout<<"Enter a string of text: ";
getline(cin,str);

for(int i=0;i<str.length();i++){
cout<<int(str.at(i))<<endl;
}


}

No comments:

Post a Comment