上一页 1 ··· 5 6 7 8 9
摘要: #include <iostream>#include <cstring>#include <string>using namespace std;int main(){ int n,c,i,j,h[10]; //n用来存储字符串长度,i j用来计数,h存放查找的字符串出现的位置 char st[100],s,z[20],x[20],m; //s在空格转换和判断是否是用到,m判断是用到,z x用来存放要查询的字符串 cout<<"请输入一段英文句子:"; gets(st); n=strlen(st); while(st[n-1 阅读全文
posted @ 2009-06-26 16:14 CMuYu 阅读(182) 评论(0) 推荐(0)
摘要: #include <iostream>#include <ctime>#include <cstdlib>using namespace std;int main(){ int x,y,z,i,l,b,a,c=0; char h; cout<<"是否要进行测试?(y/n):"; cin>>h; //srand(time(null)); while(h=='y') { do {cout<<"请选择要测试的类型(1:加法;2:减法;3:乘法):"; cin>> 阅读全文
posted @ 2009-06-26 16:12 CMuYu 阅读(143) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;class student{ int number; char name[10]; int computer,math,english,physics; public: bool eq(int n) { if(number==n) return true; else return false; } void dele() { number=-1; } void input() { cout<<"学号:"; cin>>number; cout<<&qu 阅读全文
posted @ 2009-06-26 16:08 CMuYu 阅读(150) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;#define N 8 //改成8就是八皇后了class Queen{ friend int nQueen(int); private: void Print(int x[]); bool Place(int k); void Backtrack(int t); int n, *x; long sum;};bool Queen::Place(int k){ int j; for(j=1;j<k;j++) if((abs(k-j)==... 阅读全文
posted @ 2009-06-26 16:05 CMuYu 阅读(178) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;bool hang(char xq[][9],int x) //行是否被攻击{ for(int u=0;u<8;u++) { if(xq[x][u]=='*') break; } if(xq[x][u]=='*') return false; else return true;}bool lie(char xq[][9],int y) //列{ for(int o=0;o<8;o++) { if(xq[o][y]=='*') break; } i 阅读全文
posted @ 2009-06-26 15:56 CMuYu 阅读(178) 评论(0) 推荐(0)
摘要: 几个傻X喊我过去,我不得已,于是假装大发慈悲搭了辆烂车风尘扑扑地过去了,下车后发现自己步伐沉重,我奇怪怎么重了一圈,仔细一看原来多了一层灰尘,刚刚在车上睡朦了,忘记与大自然做斗争了.....就这么千辛万苦终于见到了大家.我的想法是一定要到添美食磋一顿,半年前在这里吃多了没什么,但是到西安之后饱经风霜受尽折磨到现在瘦骨如柴,才感觉到这的确是"添美食"啊.....作为供品,阿滨同鞋答应这餐就他包了.另外,进门的时候还看到只灰常可爱的小狗哦,还真的是小狗,小到连那阶梯都上不了....主人看它可怜,只能在后面把它抱了上去T-T....面是我偷拍的照片拉.不过最好玩的还是我跟阿滨一伙 阅读全文
posted @ 2009-02-15 12:49 CMuYu 阅读(96) 评论(0) 推荐(0)
摘要: 今天是我来到这里的第一天,明天,不知道我能坚持吗.....第一篇用五笔打的文章,嘿嘿.... 阅读全文
posted @ 2009-02-09 23:38 CMuYu 阅读(73) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9