kway chap expansion + FAIL!
and sth off the street. some china restaurant. FAIL!
October 21, 2008
and sth off the street. some china restaurant. FAIL!
October 21, 2008
kt
October 18, 2008
mark you're gonna love this. and i don't just mean kt.
October 18, 2008
poddighe
too good. salutes.
October 15, 2008
too good. salutes.
October 15, 2008
More snapshots
bagel fight
strangled
October 12, 2008
bagel fight
strangled
October 12, 2008
cannibirdism.
it's a crow eat pigeon world.
October 11, 2008
it's a crow eat pigeon world.
October 11, 2008
Mary Cotes
October 10, 2008
October 10, 2008
nais weather
sun: bright like siao
sky: clear like siao
park
more park
just outside my school
view frm my lab.
October 5, 2008
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
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
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
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", ¤t->id,
current->model,¤t->make, current->color,
¤t->year, ¤t->price);
fscanf(fptr,"%d%d%s%s\n", &(current->tech1.cylinders), ¤t->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
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", ¤t->id,
current->model,¤t->make, current->color,
¤t->year, ¤t->price);
fscanf(fptr,"%d%d%s%s\n", &(current->tech1.cylinders), ¤t->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
- July 2007
- August 2007
- September 2007
- October 2007
- November 2007
- February 2008
- March 2008
- April 2008
- May 2008
- June 2008
- July 2008
- August 2008
- September 2008
- October 2008
- November 2008
- December 2008
- January 2009
- February 2009
- March 2009
- April 2009
- May 2009
- June 2009
- July 2009
- August 2009
- September 2009
- October 2009
- November 2009
- January 2010
- February 2010