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:

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

    ReplyDelete
  2. 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");

    ReplyDelete
  3. define "guarantee"

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

    ReplyDelete
  4. 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");

    =="

    ReplyDelete