景顺's profile予人玫瑰,手留余香PhotosBlogListsMore ![]() | Help |
|
June 29 Insertion sort#include <stdio.h>
#include <stdlib.h> #define MAX 5 void show(int arr[], int len){
int i; for (i = 0 ; i < len ;i ++) printf ("%d = %d\n",i, arr[i]); } void insertion_sort(int arr[], int len){
int i,j,k,temp_i; int key; if (len == 0) return; for (i = 1 ; i < len; i ++) { key = arr[i]; for (j =i-1 ; j >=0; j--){ if (key < arr[j]){ arr[j+1] = arr[j]; arr[j] = key; }//end if else { break; } }// end for j }//end for i } int main(void){ int i ; int arr[MAX]; for (i = 0 ; i <MAX ;i ++) scanf("%d\n",arr + i); printf ("before sort\n"); show (arr,MAX); insertion_sort(arr,MAX); printf ("after sort\n"); show (arr,MAX); return 0; } June 28 examination questions of RO//convert a string to a number #include <stdio.h> sum = 0; if (val[i] == '.') { June 27 GraduationWe need to experience a lot of graduations in our lives.No matter feeling sad to separate with classmates and teachers, or wondering the new lieves we are going to face, graduations means a lot to to us. Today I attended my son's graduation ceremony from kindergarten.I had thought graduations did not make sense to children, and the ceremony was just a simple precess. It's really suprise me that the teachers really took serious of that ceremony. After the lecture from the host and the president , the children began to do some performance. Their teacher keep busy directing them to act well or seat quiet. As a powerpoint was showing on the screen, the host recall some scenes of the children's activity. Enventually, it's time to the children say goodbye to their teach. The teacher's tear burn out her eyes, and she said she always welcome her children come back to see her. All the parents were deeply affected by her love. June 26 my answer to the test//1 year ago, I had this test, then join current company. Now, I think I'v got some improvement , no recursion, manipulate a tree. #include <stdio.h> int seed; int radom() node * create_tree(int level) void tranvers_tree(node * root) 2 New ToolsMuch as we complain about Microsoft's products, we are no longer avoid using their product. Recently , I found 2 windows live writer and windows live mail are quite attractive. The following pictrue is taken from windows live writer, it looks quite windows vistal style. And it's functions are good too, such as inserting pictrue, inserting image,etc... The following pictrue is taken from windows live mail.By using it to edit email, you don't need to worry about session time out any more. And the speed of get emails through it is more faster than through internet. June 24 Motorola 7789Motorola 7789 is a mobile phone produced by Motorola Ltd. It's a device for calling and sending text message. It's composed of an antenna, a cover and a main body. It is made of plastic. The main body of it is a rectangular box, the box is about 1*3*9cm. The antenna of it is tubular, the diameter of the antenna is about 0.5 cm. The cover of it is rectangular board, the base of the cover is about 3*4. June 22 A man should fight for his ideas
Yesteday, I finished reading a book,'c++ Primer'. To improve my coding skill, I have paid much time to reading books ,such as c, c++, oracle, design patterner. I think now is the time I pratice something, so I want to join some open source projects. But it seems this kind of projects need learning some skills of build up the envirment. I dont's know whether I can consist on doing it, and I don't know whether I can still have enough time in next half year. Maybe that's why I'm ordinary, I don't have engouh confident. I will try, a man sould fight for his ideas. June 21 Europe cup 2008I like Netherlands very much, but I really worry about it, the defender seems not good enough. Tonight , Netherland vesues Russia, no one knows what will happen.
Actually, Europe cup 2008 remainds me a alot of histories.
The first time I know about football is world cup 1990 at Italy, German win the champion.Ruud Gullit impressed me by his special hair, at that time, I think it's very cool, he and F Frank Rijkard and Van Basten are called three musketeers. They really at their best time, but they lose to German. Will they regret all their life? At least, I remember their after 18 years.
When 1994 world cup coming, I'm prepare my university entrance examination, After my examination, the finals is between Brazil and Itali. Roberto Baggio is really a good football player, he saved Itali 2 times, and took the team to the finals, and even at the final, he created alot chances to his friends, but there is a stupid guy lost all of them.Baggio is not a lucky guy,at penalty kick, the ball flight up to the goal.
1998 is really bad time to me, I even had not watch world cup game. Saying good bye to college time, having a bad job, we drunk all day...
2002 and 2006 wrold cup, I had lost the passion about football. It seems strange, I was dream of watching world cup, but when I have time, I lost my interest. Some times I will have a look , but it seems all the stars are as good as 10 years ago.
Anyway, tonight, I will watch Netherland to recall my younger time.
June 20 I Wonder[ti:I Wonder]
[ar:Kanye West] [al:Graduation] Find your dreams come true
And I wonder if you know What it means, what it means And I wonder if you know What it means, what it means And I wonder if you know What it means to find your dreams I\'ve been waiting on this my whole life
These dreams be waking me up at night You say I think I\'m never wrong You know what, maybe you\'re right, aight And I wonder if you know
What it means, what it means And I wonder if you know What it means to find your dreams You say he get on your f**king nerves
You hope that he get what he deserves, word Do you even remember what the issue is You just trying to find where the tissue is You can still be who you wish you is It ain\'t happen yet And that\'s what the intuition is When you hop back in the car Drive back to the crib Run back to their arms The smokescreens The chokes and the screams You ever wonder what it all really mean And I wonder if you know
What it means, what it means And I wonder if you know What it means to find your dreams And I\'m back on my grind A psychic read my lifeline Told me in my lifetime My name would help light up the Chicago skyline And that\'s what I\'m Seven o\'clock, that\'s primetime Heaven\'ll watch, God calling from the hotlines Why he keep giving me hot lines I\'m a star, how could I not shine How many ladies in the house How many ladies in the house without a spouse Something in your blouse got me feeling so aroused What you about On that independent shit Trade it all for a husband and some kids You ever wonder what it all really mean You ever wonder if you\'ll find your dreams June 19 Lazy man is perfactIf a man changes his jobs frequently, for some bosses, this man is not a trustful man and can not be hired. But bosses can not put all the blame on employees. In fact, some employees are responsible and want to contibute to the company, but his boss just treat him as a tool, not a man having ideas. By disgarding his ideas, commanding him rudly, a boss can dispel a employee's passion easily. In the light of this statment, a lazy man is perfact to some bosses.
There are some tips for being a lazy man who can win the trust his boss.
+ foreigner are always boss, no matter he is a project manager , department manager, or senior engineer.
+ bosses are always right,say he is right if your boss disagree your opnions.
+ use 'thanks' all the time.
English teacherOur company offers us some English trainning on Monday and Thursday. One colleague recommand me the Monday techer, so I took Monday class serval times. I have something to do this Monday, so I attend the Thursday course.To my suprise, Thursday teacher is a young British Lady, and her perfact British accent is so attractive. it's wonderful, I hope I had taken her class before. June 17 (转)如此乱译美国《独立宣言》是为什么?<摘自互联网,并不代表本人观点,本人不为此承担任何政治责任>
如此乱译美国《独立宣言》是为什么?
这里要讨论的只有一件事,就是这样重要的一份历史文献(不是诗歌小说),里面这样简单并且十分重要的一句话(“that all men are created equal” ),到底是否应当按照它本来的并且十分明显的意思直接翻译出来。 June 16 New Concept EnglishIn current time, technology develops fast, special effects on film shock our eyes and ears, but films can never have the same power as literature. Industry makes thing huge, but these things are not as delicacy as tradition.
New Concept English is familiar too us as a meterial to leaning English. I disgard it because I find a lot of new things from internet, NCE seems a little behind the times. But, recently, I got some videos of NCE training, I found NCE is still the best course I have got.
One type of English course is called 'business English', there are some scenes such as meeting, shopping,greeting. In my opinion, the purpose of this type of training is just making People lazy and silly. Without the culture, any quick learning methods are useless. And there is another kind of method called 'crazy English', it really a good way to taught people how to looks or sounds crazy. For NCE, if you try to understand it and enjoy it, you will feel the interesting of assembling words. June 15 The Chronicles of Narnia: Prince CaspianIt's a film worth seeing, but it did not attracted me very much, much less shocking me.
Narnia was a peace and happy place,with some speakable animals and special humans. After A group of human broke in and distroyed everything, some of Narnia citizen hide in a forest. For some reasons,a prince Caspian and 4 young man came to Narnia to help them. A battle between Narnia citizen bad human broke out...
Something in the story impressed me,
+ about faith, our faith is getting faint when we grow up. that's why the most little girl can see a lot of things than her sister and brothers. As adults, we always think we are clever than kids, but in fact, we are foolish than them,you see, they are happier than us.
+ about reality and dream, the 4 young man spent a lot of days in Narnia, but when they went back to London, there was only a second past. It's hard to identify reality and dream. it took our years to get a good job, a big house, but we will lost them quickly,years later, will we go to annother place just like the kids went back to London? Happy father's dayTomorrow is father's day. Hop all fathers heathy and happy! June 13 Busyness trip to IndiaMy visa to India is OK, now. So, maybe, 2 or 3 weeks later, I will go to India.
There is a lot of tell about India, most of them are not good, such as
+ The weather in Indea is hot, it makes people uncomfortable.
+ The work at India is hard, they work 6 day a week, and overtime work is required.
+ They are not polite to Chinese , someone had been robed.
+ The food there is untolerable, they eat food by hands, unbeliveable.
Anyway, I have no chioice, so accept it...
June 12 eMule - fansI found I'm a total eMule-fans, I like download everything from Internet.
Every time I goto http://www.verycd.com , I can't resist the tempt of new Movies, favourite softwares and fond musics...To keep everythings I like, I bought a new hard disk,a mobie disk,a DVD writer. The result is , less of them give me a happy time, most of them I only touch it 1 or 2 times. Recently, I found some website supplies online services,such as musics、movies、pictures and books. your don't need to worry about how to reserve them,just enjoy it. So I see some TV show online, I can see some part at Comany at rest time, and when I go home, I can continue.
The thing is , using online-website take away the funs of downloading process from me. You see, when you download a film by eMule, it will take you more than 2 hours, in these time , you can image how wandful the film is, and you see the film introuduction times and times. It really a happy process, waiting and imaging. Easyer get, easyer lost...
Harry PotterI watch the film again...
A little thin boy wares a pair of glasses, with wicked smile .
Cool, I like this boy too. He lives with his aunt , but his aunt does not like him, and his cousin baits him.
But infact, he is not a ordinary guy, you know what? He is a wezard, his is famous, he born to do something great.
It's a dream of alot of boys ,maybe adults too, we bear the plain of day after day, but dreams nerver stop. June 11 Papa and ManaI have put their picture to the left...
They are getting old, but still looks good.
A strong man stand up for himself, a stronger man stand up for others.
I think they are stronger men. |
|
|