When you use char(130) you get the é. When you do int('é') you get -23... and with my program to get value it is -126...
How on earth can I get the 130 value when entering the é ?
Thanks for looking.
With this program I printed out the letter list with number:
#include <iostream>
using namespace std;
int main() {
for(int i=0; i<255;i++){
cout << char(i) << " " << i << '\n';
};
system("pause"); //not safe
return 0;
}
With this program I enter a letter and it gives me the value.
#include <iostream>
using namespace std;
int main() {
label:
char i;
cin >> i;
int temp;
temp = int(i);
cout << temp ;
cout << '\n';
goto label;
system("pause"); //not safe
return 0;
}