S
Sumedha Swamy
Hi,
I would like to print the int value of Ü . The value is 220 (0xDC). Here is
a program that I worte.
But this prints the value 0. Where am I going wrong ?
#include <string>
#include <iostream>
using namespace std;
int main()
{
string a("\xDC");
cout << endl <<strtol(a.c_str(),NULL,10);
return 0;
}
Regards,
Sumedha
I would like to print the int value of Ü . The value is 220 (0xDC). Here is
a program that I worte.
But this prints the value 0. Where am I going wrong ?
#include <string>
#include <iostream>
using namespace std;
int main()
{
string a("\xDC");
cout << endl <<strtol(a.c_str(),NULL,10);
return 0;
}
Regards,
Sumedha