Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: converting char to unsigned int Pin
Wim Engberts6-Apr-06 1:51
Wim Engberts6-Apr-06 1:51 
GeneralRe: converting char to unsigned int Pin
Cedric Moonen6-Apr-06 2:00
Cedric Moonen6-Apr-06 2:00 
GeneralRe: converting char to unsigned int Pin
Aqueel6-Apr-06 2:05
Aqueel6-Apr-06 2:05 
GeneralRe: converting char to unsigned int Pin
thatsme_cool6-Apr-06 2:41
thatsme_cool6-Apr-06 2:41 
GeneralRe: converting char to unsigned int Pin
Aqueel6-Apr-06 2:51
Aqueel6-Apr-06 2:51 
GeneralRe: converting char to unsigned int Pin
toxcct6-Apr-06 2:55
toxcct6-Apr-06 2:55 
GeneralRe: converting char to unsigned int Pin
Aqueel6-Apr-06 2:58
Aqueel6-Apr-06 2:58 
AnswerRe: converting char to unsigned int Pin
David Crow6-Apr-06 3:01
David Crow6-Apr-06 3:01 
thepersonof wrote:
int a = int(c)


A cast is actually not necessary. You could accomplish the same with:

int a = c;
because a char gets internally promoted to an int during such operations.

A char can hold values in the range -128 to 127, whereas an unsigned char can hold values in the range 0 to 255.


"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


AnswerRe: converting char to unsigned int Pin
abbiyr6-Apr-06 4:23
abbiyr6-Apr-06 4:23 
GeneralRe: converting char to unsigned int Pin
David Crow6-Apr-06 4:46
David Crow6-Apr-06 4:46 
GeneralRe: converting char to unsigned int Pin
abbiyr6-Apr-06 5:12
abbiyr6-Apr-06 5:12 
QuestionPlease help: Can't install VC6++ Pin
P.Pronk6-Apr-06 0:54
P.Pronk6-Apr-06 0:54 
AnswerRe: Please help: Can't install VC6++ Pin
YaronNir6-Apr-06 1:38
YaronNir6-Apr-06 1:38 
GeneralRe: Please help: Can't install VC6++ Pin
P.Pronk6-Apr-06 3:45
P.Pronk6-Apr-06 3:45 
GeneralRe: Please help: Can't install VC6++ Pin
YaronNir6-Apr-06 3:50
YaronNir6-Apr-06 3:50 
GeneralRe: Please help: Can't install VC6++ Pin
P.Pronk6-Apr-06 4:15
P.Pronk6-Apr-06 4:15 
GeneralRe: Please help: Can't install VC6++ Pin
YaronNir6-Apr-06 4:19
YaronNir6-Apr-06 4:19 
AnswerRe: Please help: Can't install VC6++ Pin
David Crow6-Apr-06 4:14
David Crow6-Apr-06 4:14 
GeneralRe: Please help: Can't install VC6++ Pin
P.Pronk6-Apr-06 4:43
P.Pronk6-Apr-06 4:43 
QuestionRe: Please help: Can't install VC6++ Pin
David Crow6-Apr-06 4:55
David Crow6-Apr-06 4:55 
QuestionHow to set Icon? Pin
<color>Aljechin 6-Apr-06 0:36
<color>Aljechin 6-Apr-06 0:36 
AnswerRe: How to set Icon? Pin
Nibu babu thomas6-Apr-06 0:44
Nibu babu thomas6-Apr-06 0:44 
GeneralRe: How to set Icon? Pin
<color>Aljechin 6-Apr-06 1:41
<color>Aljechin 6-Apr-06 1:41 
GeneralRe: How to set Icon? Pin
Ștefan-Mihai MOGA6-Apr-06 1:50
professionalȘtefan-Mihai MOGA6-Apr-06 1:50 
GeneralRe: How to set Icon? Pin
<color>Aljechin 6-Apr-06 1:42
<color>Aljechin 6-Apr-06 1:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.