- #1
Hypercase
- 62
- 0
PHP:
mask = 0x80;
for(i = 0; i < 8; i++)
{
if((testvalue & mask)!= 0)
{
cout<<"1";
}
else
{
cout<<"0";
}
mask = mask >> 1;
}
Thanx.