The Little Prince-12/03

The Little Prince-12/03

The Little Prince-12/03

  These days, I am always busy with my things, including experiment and others.

  So I just extract some beautiful sentences from the book.

  Good night~

 

  You know, it will be very nice。 I, too, shall look at the stars。 All the stars will be wells with a rusty pulley。 All the stars will pour out fresh water for me to drink… That will be so amusing! You will have five hundred million little  bells, and I shall have five hundred million springs of fresh water…

  The men where you live, raise five thousand roses in the same garden – and they do not find in it what they are looking for。 And yet what they are looking for could be found in one single rose, or in a little water。 But eyes are   blind。 One must look with the heart…

  The wheat fields have nothing to say to me。 And that is sad。 But you have hair that is the color of gold。 Think how wonderful that will be when you have tamed me! The grain, which is also golden, will bring me back the thought of you。 And I shall love to listen to the wind in the wheat。

  And when your sorrow is comforted time soothes all sorrows you will be content that you have known me。 You will always be my friend。 You will want to laugh with me。 And you will sometimes open your window, so, for that pleasure… And your friends will be properly astonished to see you laughing as you look up at the sky! Then you will say to them, “Yes, the stars always make me laugh!”

  All men have the stars, but they are not the same things for different people。 For some, who are travelers, the stars are guides。 For others they are no more than little lights in the sky。 For others, who are scholars, they are problems。 For my businessman they were wealth。 But all these stars are silent。 You – you alone – will have the stars as no one else has them…

  To me, you are still nothing more than a little boy who is just like a hundred thousand other little boys。 And I have no need of you。 And you, on your part, have no need of me。 To you, I am nothing more than a fox like a hundred thousand other foxes。 But if you tame me, then we shall need each other。 To me, you will be unique in all the world。 To you, I shall be unique in all the world。

posted @ 2017-12-03 22:14 Edge_of_Eternity 阅读( ...) 评论( ...) 编辑 收藏
//顺序查找 #include<iostream> #include<fstream> #include<string> #include <algorithm> using namespace std; #define MAXSIZE 10000 #define KEYSIZE 10//关键词个数 #define OK 0 #define ERROR -1 typedef string KeyType; typedef struct { KeyType key;//关键字域 int count;//词频 }ElemType; typedef struct { ElemType *R;//存储空间基地址 int length;//当前长度 }SSTable; //关键词列表 KeyType key[KEYSIZE] = {"little","prince","sheep","flowers","believe","stars","one","my","he","the"}; //初始化一个空的顺序表ST作为查找表 //要求顺序表ST的0号单元用作哨兵 int InitSSTable(SSTable &ST) { /*----------代码开始-------------*/ /*----------代码结束-------------*/ return OK; } //向查找表ST中尾插入关键词key //要求顺序表ST的0号单元用作哨兵 int InsertSSTable(SSTable &ST,KeyType key) { /*----------代码开始-------------*/ /*----------代码结束-------------*/ return OK; } //将形如""a"、"what?""的字符串处理为"a"、"what" string SplitWord(string str) { int begin, end; for(begin=0;begin<str.length();begin++) { if(str[begin]>='a' && str[begin]<='z') break; } for(end=str.length()-1;end>=0;end--) { if(str[end]>='a' && str[end]<='z') break; } if(begin<=end) return str.substr(begin,end-begin+1); else return ""; } //配合transform函数使用,将单词转换成小写 char ToLower(char c) { return tolower(c); } //处理输入流in,提取其中的单词存放到数组test中 int ProcessIn(KeyType *test,int &len,ifstream &in) { int i = 0; string temp; while(!in.eof()) { in>>temp; transform(temp.begin(), temp.end(), temp.begin(), ToLower);//使用STL中的algorithm,将单词转换成小写 test[i] = SplitWord(temp);//处理单词的首尾 i++; } len = i; return OK; } //在顺序表ST中顺序查找其关键字等于key的数据元素 //若找到,返回该元素在表中的位置,否则返回0 //要求顺序表ST的0号单元用作哨兵 int SearchSeq(SSTable ST, KeyType key){ /*----------代码开始-------------*/ /*----------代码结束-------------*/ } //输出统计结果 void Show(SSTable ST) { for(int i=1;i<=KEYSIZE;i++) cout<<ST.R[i].key<<":"<<ST.R[i].count<<endl; } int main() { ifstream in("testData/小王子.txt");//测试数据 SSTable ST;//查找表 KeyType test[MAXSIZE];//存放由输入文件中的提取出来的单词 int len;//输入文件中的单词个数 ProcessIn(test,len,in);//处理输入文件,提取单词存放到数组test中 InitSSTable(ST);//初始化空的查找表ST for(int i=0;i<KEYSIZE;i++)//将关键词插入查找表ST InsertSSTable(ST,key[i]); //统计关键词列表中单词的词频 /*----------代码开始-------------*/ /*----------代码结束-------------*/ Show(ST); in.close(); return OK; }补全代码
11-26
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值