摘要: void recurs(argumentlist){ statements1 if(test) recurs(arguments) statements2}在满足条件是 statements1 按调用顺序执行 n 次然后退出if后 statements2按调用相反方向执行n次////////////////////////////////////... 阅读全文
posted @ 2007-02-05 02:25 Edward Xie 阅读(145) 评论(0) 推荐(0) 编辑
摘要: //传递返回结构////////////////////////////////////////////////////////////////////////////////////#includestruct str_times{ int hours; int mins;};const int mins_per_hr=60;str_times sum(str_times t1,str_time... 阅读全文
posted @ 2007-02-05 01:41 Edward Xie 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 结束了7章 还有整10章 到23号全部搞定 全部精力转向下一个教材为什么很多人都只能看见眼前的东西?为什么有些人就看不出来虚伪的嘴脸?为什么有人过分相信自己的眼睛耳朵?管它的 再看看第8章内容 睡觉…… 阅读全文
posted @ 2007-02-05 00:32 Edward Xie 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #include char * buildstr(char c,int n);int main(void){ using namespace std; int times; char ch; cout>ch; cout>times; char *ps=buildstr(ch,times); cout0) { pstr[n]=c; } return pstr;}/////////... 阅读全文
posted @ 2007-02-05 00:23 Edward Xie 阅读(247) 评论(0) 推荐(0) 编辑
摘要: #include int c_in_str(const char * str,char ch);int main(){ using namespace std; char mmm[15]="minimum"; char * wail="ululata"; int ms=c_in_str(mmm,'m'); int us=c_in_str(wail,'u'); cout<<ms<<" m char... 阅读全文
posted @ 2007-02-05 00:00 Edward Xie 阅读(738) 评论(0) 推荐(0) 编辑