摘要: /*please write a program to check three number if can construct a tryaigle*/ #include using namespace std; class CheckTriangle { public: CheckTriangle(int x,int y,int z):a(x),b(y),c(z){} void ope... 阅读全文
posted @ 2010-10-27 00:55 瓜蛋 阅读(729) 评论(0) 推荐(0) 编辑
摘要: /* c++在运行期间不会自动检查数组是否越界,设计一个类检查数组是否越界。 */ #include #include using namespace std; class check { public: check(char*s) { str=new char[strlen(s)+1]; strcpy(str,s); len=strlen(s); } char ope... 阅读全文
posted @ 2010-10-27 00:55 瓜蛋 阅读(1704) 评论(0) 推荐(0) 编辑
摘要: CC++ 题集(CC++试题和部分答案)1. 以下三条输出语句分别输出什么?[C易] char str1[] = "abc"; char str2[] = "abc"; const char str3[] = "abc"; const char str4[] = "abc"; const char* str5 = "abc"; const char* str6 = "abc"; cout <... 阅读全文
posted @ 2010-10-27 00:54 瓜蛋 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; int main() { ifstream in; int a[10]; int j=0; in.open("data.txt",ios_base::in); //你自己要先新建一个num.txt来放数字 while(!in.eof()) { in>>a[j]; cout<<"a["<<j<... 阅读全文
posted @ 2010-10-27 00:54 瓜蛋 阅读(311) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; typedef multimap::value_type CIT; typedef multimap::const_iterator IT; template void show(IT&it,multimap&r) { for(it=r.begin();it!=r.end();++it) ... 阅读全文
posted @ 2010-10-27 00:52 瓜蛋 阅读(267) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; typedef set::const_iterator CIT; template void show(CIT&it,set&s) { for(it=s.begin();it!=s.end();++it) coutname1; name1.insert(s1,s1+N... 阅读全文
posted @ 2010-10-27 00:51 瓜蛋 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 唉,今天又为一件小事吵架了,我是极不情愿吵架的。就只为一句话,那么一句话,我就错了。。。 可是谁又能知道我的苦中,老子的苦中,谁能体谅一下。 唉,这人事情我也不知道怎么处理。 看来以后要坚持我的观点了,再这样子下去,会把你惯坏的。 话要说回来了,我瓶什么养你,就为你说的那句二年后的话。呵呵。 事过境 阅读全文
posted @ 2010-10-25 22:09 瓜蛋 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 不知道咋了,这么冷的天,该不会有蚊子叮我吧,可为什么胳膊上起了个那么大的包呢? 刚刚在群里看了一张图片,不知道怎么形容那张,好恐怖。看了好后悔,有种想死的感觉,以前看过一篇报道,是关于听了黑色星期五会死人的新闻,没想到今天我看了一张图片,心理感觉好怕。。。。。。我不敢睡,怕一睡不起,怕我像黑色星期五 阅读全文
posted @ 2010-10-10 02:18 瓜蛋 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 此刻,我想好多人已经放弃了,但是我不会的,看见了一句话,挺好。真的,立刻就把这句话放到了我的博客的标题下面。 有些人说,我一直在幻想中生活,在幻想中学习。其实我没有,我也不会,我的经历告诉我,坚持就是胜利。我想我会克服一切困难,达到我 的目标的。 阅读全文
posted @ 2010-10-09 02:32 瓜蛋 阅读(177) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2010-09-24 20:30 瓜蛋 阅读(78) 评论(0) 推荐(0) 编辑