BLOGGER TEMPLATES AND TWITTER BACKGROUNDS

Sunday, April 26, 2009

L.O.V.E.

Love is patient; love is kind;

love is not envious or boastful or arrogant or rude.

It does not insist on its own way; it is not irritable or resentful;

it does not rejoice in wrongdoing, but rejoices in the truth.

It bears all things, believes all things, hopes all things, endures all things.

Love never ends.

But as for prophecies, they will come to an end;

as for tongues, they will cease;

as for knowledge, it will come to an end...

And now faith, hope, and love abide, these three;

and the greatest of these is

love.

(NRSV, 1 Corinthians 13:4-8, 13)

-------------

i've found love. it's a wonderful feeling. but it's also there for me to lose. all or nothing...

somebody told me...

Friday, April 17, 2009

FE1008

if i don't get A for computing... i'm going to be damn upset with myself. i'm still waiting for my first A in ntu...

somebody told me...

Monday, April 13, 2009

22...

it's come and gone in a flash. i still remember going on the singapore flyer with wendy last year, having the whole cabin to ourselves, and the surprise t19 gave me . suddenly i'm having dinner at sofra. it's always fun to meet up with the class of course. never a quiet moment... unless we don't get what someone is talking about.

back to the books... can't believe it's exam week already.

somebody told me...

Wednesday, April 08, 2009

bloody crap

last night i wrote my longest program ever. today for my quiz, it was about the same length, but it had the most errors i'd ever seen in my life! like 20+ errors and 10 warnings? basket... so slowly sift through them one by one. in the end my program worked fine. BUT... i overlooked one small part of the question. stupid cock eyed shit.

somebody told me...

longest program i've ever written

#include
#include
#define arrsize 10

void input_integer(int arr[], int size);
void print_input(int arr[], int size);
void sort_integer(int arr[], int size);
void print_output(int arr[], int size);
int arr[arrsize], i, j;

int main(void)
{
input_integer(arr, arrsize);
print_input(arr, arrsize);
sort_integer(arr, arrsize);
print_output(arr, arrsize);
system("PAUSE");
return 0;
}

void input_integer(int arr[], int size)
{
printf("This INTEGER SORT program sorts any 10 integers inputted by user.\nPlease input 10 integers, e.g. 12 34 345... and so on\n\n", arrsize);
for (i=0; i scanf("%d", &arr[i]);
printf("\n\n");
}

void print_input(int arr[], int size)
{
printf("These are the integers: \n", arrsize);
for (i=0; i printf("Integer %d = %d\n", i+1, arr[i]);
printf("\n\n");
}

void sort_integer(int arr[], int size)
{
int temp, *ptri, *ptrj;
for (i=0; i { for (j=0; j {
if (arr[i] {
ptri = &arr[i];
ptrj = &arr[j];
temp = *ptri;
*ptri = *ptrj;
*ptrj = temp;
}
}
}
}

void print_output(int arr[], int size)
{
printf("These are the sorted integers (from smallest to largest):\n");
for (i=0; i printf("Integer %d = %d\n", i+1, arr[i]);
printf("\n\n");
}

-----------------------------------------

and the result is...




and that took me freaking 1.5 hours to do =(


somebody told me...

Tuesday, April 07, 2009

what's with all the rain?

i'm at home now. what a miracle hahaha well wendy rented a car today for her dad to drive around, so i'm home to practice computing for tomorrow's quiz. didn't want to bring my laptop into hall, because i know with it there with me, i'd do everything EXCEPT study.

with all the rain coming down on us recently, i'm finding it really hard to study. everytime it rains i just somehow drop my pen and find myself thinking about what else i could be doing out there. and after i think for a while, i'll soon be dozing off on my table, and probably (hopefully not) drooling on my painstakingly handwritten notes. really not much mood to study this sem. but i don't have a choice. with a gpa of 3.38... i'm knee deep in shit already as it is.

well 3 more years of exams during my birthday. i guess i don't feel so bad, since the "thrill" of birthdays for me has died off a while ago. whatever the case is... still not as bad as minghao and derek la. 2 exam papers on your birthday? nothing worse than that. ok la... i guess 3 papers on your birthday will be bad. but 3 papers on any given day is already hell-on-earth in itself.

onward to computing!!!

int main(void)
{
float gpa;
printf("Enter your current GPA => ");
scanf("%lf", &gpa);

if (gpa > 4.5)
printf("well done! you rock man! \n");

if (gpa > 4.0 && gpa < 4.5)
printf("not bad la... just work harder to pull it up to 2nd upper. \n");

if (gpa > 3.5 && gpa < 4.0)
printf("wah jialat. chiong all the way!!! \n");

if gpa > 3.0 && gpa < 3.5)
printf("i'll pray for you...");

return 0;
}

somebody told me...

Thursday, April 02, 2009

exams round 3

2 more weeks to exams. i hate this atmosphere. studying in uni for 4 years will potentially shorten my lifespan by 10 years. it's freaking not worth it. and i've only just begun. wtf

best of luck to all those with exams. many yong and my dear guo wenya, final exam le. hurry up do well and be done with it. mai tu liao! then see you in ntu soon many hahaha sim guys 1st exam... have fun travelling to expo hahaha

somebody told me...