October 23, 2008
kway chap expansion + FAIL!



and sth off the street. some china restaurant. FAIL!

October 21, 2008
kt

mark you're gonna love this. and i don't just mean kt.


October 18, 2008
poddighe



too good. salutes.

October 15, 2008
More snapshots


bagel fight


strangled

October 12, 2008
cannibirdism.


it's a crow eat pigeon world.

October 11, 2008
Mary Cotes


October 10, 2008
nais weather

temperature: 24deg
sun: bright like siao
sky: clear like siao

park


more park


just outside my school


view frm my lab.

October 5, 2008
5 Liner

Singapore day was awesome. Got to see PCK Pte Ltd and Electrico upclose.

The food was free and good! Queues were the downside of the event.

Sam Evans gave a powerful msg of worshipping in Spirit and in Truth.

Russell Evans led free worship by playing awesome licks on the stat. (no singing, just keys and him playing)

My assignment's almost done, still need some help from my teacher tho.

October 3, 2008
4.30 am

woot! its 4.30am now , the birds are chirping away and i'm wrecking my brains to find out why i can't seem to crack this last part of my assignment.

here's a glimpse:
/******** #5 Sell and delete car from list ********/
void sell_car(){
CAR *current, *prev;
int found=0;
int key;
char filename[] = "car.txt";
printf("Enter car id to sell: \n");
scanf("%d", &key);
if((fptr = fopen(filename, "a"))==NULL){
printf("Cannot open file\n");
exit(1);
}
else{
if(current==NULL){
printf("List is empty\n");
}
else{
while(!feof(fptr)){
current = (CAR *)malloc(sizeof(CAR));
fscanf(fptr, "%d%s%s%s%d%f\n", &current->id,
current->model,&current->make, current->color,
&current->year, &current->price);

fscanf(fptr,"%d%d%s%s\n", &(current->tech1.cylinders), &current->tech1.tankCapacity,
current->tech1.transmission,current->tech1.driveType);
fscanf(fptr," %s\n", current->extras.extraDetails);

if(key == current->id){
found = 1;
//balance += current->price;

prev->next = current->next;
fprintf(fptr, "%d %s %s %s %d %f\n", current->id, current->model, current->make, current->color,
current->year, current->price);
fflush(stdin);
fprintf(fptr,"%d %d %s %s\n", current->tech1.cylinders, current->tech1.tankCapacity,
current->tech1.transmission,current->tech1.driveType);
fflush(stdin);
fprintf(fptr," %s\n", current->extras.extraDetails);
//printf("Sold. Balance: %.2f\n", balance);
break;
}

}//while
if(found ==0)
printf("No such Car ID\n");
}//else
}//else
}

any help would be greatly appreciated LOL!

Archives