Hi Mansour!

> I use Code warrior 5. In C, one can write:
>         char c;
>         int i;
> 
>         i = int (c);
> to get the integer value of the character c, unfortunately this is not
> acceptable by the Code Warrior compiler, so what is the way to get the
> integer value of an char ?
I think, this is not part of the c-declaration.
imho you can only use variable declarations in the beginning of a block
(after a "{").

Maybe it is allowed under c++

bexxx
-- 
"Donuts - is there anything they can't do?"
                                            Homer J. Simpson

Reply via email to