Wednesday 8 April 2009

SET

#define SETSIZE 8

void printSet(Set s){ 
 int j;
 printf("{ ");
 for (j=0; j〈SETSIZE; j++)
   if ((1〈〈j)&s)
    printf("%d ",j);
 printf("}\n");
}


//remember remember, define SETSIZE
//a mistake that nearly costs me losing full marks

5 comments:

Anonymous said...

if(study!=understand)printf("GG"); else if
(study>overload)printf("Ki siao");
else if
(study=understand)printf("PRO");
else
(no_study=understand)printf("GOD");

G said...

error

Anonymous said...

if(study!=understand)printf("GG"); else if
(study>overload)printf("Ki siao");
else if
(study=understand)printf("PRO");
else if
(no_study=understand)printf("GOD");
else
printf("guarantee no error");

G said...

define "guarantee"

do{
printf("gg");
}while(result!=correct);

Anonymous said...

if(study!=understand)
printf("GG");
else if(study>overload)
printf("Ki siao");
else if(study==understand)
printf("PRO");
else if(no_study==understand)
printf("GOD");
else
printf("dont dare to guarantee edi");

=="