void codfile(int *a,int n,int codlength)
{
const int memory=n*codlength/8;
int finalCod [memory]={0};
int k=0,fptr=0,cptr=0;
for(int i=0;i
{
int temp=a[i];
while(cptr
{
if(fptr==8){ fptr=0;
k++;
}
finalCod [k]=finalCod[k] | temp/2;
finalCod[k]>>1;
temp/=2;
cptr++;
fptr++;
}
error in line 4: constant expression required
2006-07-04
16:21:48
·
6 answers
·
asked by
simona
1
in
Computers & Internet
➔ Programming & Design
I did what alakit013 had suggested it does't have any error but display 2597525452
I wanted to display cod 0 or 1 what is problem?
2006-07-04
19:21:06 ·
update #1