now let us say, given m , how can i retrieve x ? how can i do the opposite thing ?Code:int x = 129; char m = (char)x & 255; cout<<m<<endl;
i tried this way,...
....but its not working.can u suggest some way ?Code:int y; if(m>127) y = 256 + (int)m; else y = (int)m; cout<<y<<endl;




Reply With Quote