char* convert_2(int dec)
{
char* the_String = (char*) malloc(sizeof (int) * Bits_in_Byte + 1);//sizeof(int)=4,the_String=4*8+1=33
int i = 0;
int bitMask = 1;
int tempbitMask = 0;
for(i = sizeof (int) * Bits_in_Byte -1; i>= 0; i--) {//i=31
tempbitMask = bitMask<<i;_**//tempbitMask = bitMask*2^i**_
if(tempbitMask & dec)//这个循环没看懂
the_String[31-i] = '1';
else {
the_String[31-i] = '0';
}
}
the_String[32] = 0;
return the_String;
}