T
tsunami
I have written a bitarray class which has a constructor taking bit
stream as a string parameter.but it gives me an error such that cannot
convert 'char*' to 'unsigned char*'.where I have declared bitarray as:
unsigned char *bitarray; and the constructor is:
BitArray::BitArray( const char* inputsize)
{
bitarray=new char[strlen(inputsize)+1];
strcpy(this->bitarray,inputsize);
this->length=strlen(inputsize);
return;
}
stream as a string parameter.but it gives me an error such that cannot
convert 'char*' to 'unsigned char*'.where I have declared bitarray as:
unsigned char *bitarray; and the constructor is:
BitArray::BitArray( const char* inputsize)
{
bitarray=new char[strlen(inputsize)+1];
strcpy(this->bitarray,inputsize);
this->length=strlen(inputsize);
return;
}