Monday, 6 April 2009
What's Engineering? - Output
Made some modification, and it definitely works now.
I got the following as output:
Level of difficulty for Engineering course: 26
Total study time needed: 2610 hours.
How bout you?
Sunday, 5 April 2009
Saturday, 4 April 2009
Friday, 3 April 2009
What's Engineering?
#include 〈stdio.h〉
#include 〈stdlib.h〉
#define NORMAL 10
#define HARDER NORMAL*NORMAL
#define PASS 50
int study(int);
int main(){
int counter=0;
int time_to_study, result;
do{
time_to_study+=study(HARDER);
counter+=1;
result=(rand() % 50)+1;
}while(result!=PASS);
printf("Level of difficulty for Engineering course: %d\n", counter);
printf("Total study time needed: %d hours.\n", time_to_study);
return 0;
}
int study(int effort){
int i;
for(i=0;i〈effort;i++);
return i;
}
Thursday, 2 April 2009
Mou liu!
[Where do you guys live?]
[Block C]
[Oh, I am block C too.]
[Izzit? We are C1.]
[I am C2. -- Nolah, kidding.]
[....]
现在的讲师怎么了?
Wednesday, 1 April 2009
What these people say about their wives
When a man steals your wife, there is no better revenge than to let him keep her.
-David Bissonette
After marriage, husband and wife become two sides of a coin; they just can't face each other, but still they stay together.
-Sacha Guitry
By all means marry. If you get a good wife, you'll be happy. If you get a bad one, you'll become a philosopher.
-Socrates
The great question ... which I have not been able to answer ... is, 'What does a woman want?
-Dumas
I had some words with my wife, and she had some paragraphs with me.
-Sigmund Freud
There's a way of transferring funds that is even faster than electronic banking. It's called marriage.
-Sam Kinison
I've had bad luck with both my wives. The first one left me, and the second one didn't.
-James Holt McGavra
Two secrets to keep your marriage brimming
1. Whenever you're wrong, admit it,
2. Whenever you're right, shut up.
-Patrick Murra
The most effective way to remember your wife's birthday is to forget it once.
-Nash
My wife and I were happy for twenty years. Then we met.
-Henny Youngman
A good wife always forgives her husband when she's wrong.
-Rodney Dangerfield
A man inserted an 'ad' in the classifieds: 'Wife wanted'. Next day he received a hundred letters. They all said the same thing: 'You can have mine.'
-Anonymous
First Guy (proudly): 'My wife's an angel!'
Second Guy: 'You're lucky, mine's still alive.'
-Anonymous
You know what I did before I married? Anything I wanted to.
-Anonymous
Some people ask the secret of our long marriage. We take time to go to a restaurant two times a week. A little candlelight, dinner, soft music and dancing. She goes Tuesdays, I go Fridays.
-Anonymous
Woman inspires us to great things, and prevents us from achieving them.
-Anonymous
-David Bissonette
After marriage, husband and wife become two sides of a coin; they just can't face each other, but still they stay together.
-Sacha Guitry
By all means marry. If you get a good wife, you'll be happy. If you get a bad one, you'll become a philosopher.
-Socrates
The great question ... which I have not been able to answer ... is, 'What does a woman want?
-Dumas
I had some words with my wife, and she had some paragraphs with me.
-Sigmund Freud
There's a way of transferring funds that is even faster than electronic banking. It's called marriage.
-Sam Kinison
I've had bad luck with both my wives. The first one left me, and the second one didn't.
-James Holt McGavra
Two secrets to keep your marriage brimming
1. Whenever you're wrong, admit it,
2. Whenever you're right, shut up.
-Patrick Murra
The most effective way to remember your wife's birthday is to forget it once.
-Nash
My wife and I were happy for twenty years. Then we met.
-Henny Youngman
A good wife always forgives her husband when she's wrong.
-Rodney Dangerfield
A man inserted an 'ad' in the classifieds: 'Wife wanted'. Next day he received a hundred letters. They all said the same thing: 'You can have mine.'
-Anonymous
First Guy (proudly): 'My wife's an angel!'
Second Guy: 'You're lucky, mine's still alive.'
-Anonymous
You know what I did before I married? Anything I wanted to.
-Anonymous
Some people ask the secret of our long marriage. We take time to go to a restaurant two times a week. A little candlelight, dinner, soft music and dancing. She goes Tuesdays, I go Fridays.
-Anonymous
Woman inspires us to great things, and prevents us from achieving them.
-Anonymous
I don't know everyone of the above, and don't know whether it's true or not,
but hey, isn't it a good thing to have a laugh?
And, Anonymous is not a person, it is just, anonymous.
Source: The Internet
Subscribe to:
Posts (Atom)