摘要: View Code 1 #include<iostream> 2 #include<vector> 3 #include<string> 4 5 using namespace std; 6 7 8 int main() 9 10 {11 12 vector<int> ivec;//空!大小为零13 cout << ivec.size() <<endl;14 15 cout<<"请输入5个整数"<<endl;16 int k;17 for(vector<int>::s 阅读全文
posted @ 2012-03-27 23:15 uniquews 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1、批判性思维要求的不是为了提出一个和已知观点相左的观点,而是要为了能在已知观点上思考的更深入更全面。不是否定。2、因果关系不等于逻辑关联The causes of events & The reaional of events 不要混淆例如:天上愁云密布,因为马上要下雨了。不是一个argument 因为这是causes 而不是 rational。3、Argument can't be true or false!4、A set of steps for analysing argument: 1 identify the conclusion of the arugument 阅读全文
posted @ 2012-03-18 22:59 uniquews 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 如果论文能publish,我会把算法的源代码放上来,包括那个75年IBM370上的代码(论文一作已经挂了……),当时还想问这个老老老教授发邮件要源代码的……想想都觉得自己Insane了。一步一个脚印,记录下自己的成长。 阅读全文
posted @ 2012-03-09 22:32 uniquews 阅读(525) 评论(0) 推荐(0) 编辑
摘要: http://news.cnblogs.com/n/134207/ 阅读全文
posted @ 2012-03-07 22:00 uniquews 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 转的:http://news.cnblogs.com/n/134179/ 阅读全文
posted @ 2012-03-07 21:55 uniquews 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 因为TeX系统只支持EPS格式的图形插入,但平常我们用得最广泛的是Visio,因此如何有效的转换成为了广大TeX初学者面临的一个比较棘手的问题,下面是我收集到的几种方法,个人推荐方法一。 方法一:就是用visio转换为pdf格式的图片,然后用Acrobat直接存为eps,这样出来的就是高质量图片了,任意放大,一点问题都没有。好了,我得到了一个很清晰的图。但是问题又来了:图片的上下端空白怎么去掉?否则插到paper里面很难看的,也是无法忍受的。一种很简单的方法——Adobe Acrobat Prefessional 里面的“文档”里有个“裁剪页面”选项,OK,这个东西可以帮你搞定一切了。 方法二 阅读全文
posted @ 2012-03-06 19:26 uniquews 阅读(1285) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 using namespace std; 3 4 5 6 7 template <class TElemType> 8 class Graph 9 { 10 public: 11 void CreateAlgraph(); 12 void PrintAlgraph(); 13 14 private: 15 16 struct Arcnode 17 { 18 int adjvex; 19 Arcnode *nextarc; 20 floa... 阅读全文
posted @ 2012-02-28 00:50 uniquews 阅读(699) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/uniqueliu/archive/2011/07/16/2108302.htmlhttp://www.cnblogs.com/uniqueliu/archive/2011/07/18/2109301.htmlView Code 1 #include <iostream> 2 using namespace std; 3 4 int main() 5 { 6 //第一组为正常的赋值,将指针变量p初始化为0。 7 cout<<"第一组:"<<endl; 8 int i=10; 9 int *p= 阅读全文
posted @ 2012-02-25 01:10 uniquews 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 摘自别人博客通过这种方式,利用类中的公共接口函数,我们就可以访问调用类的私有成员。那么这样做的好处是什么呢?好处就是:提高代码的安全性,防止造成错误的输入与输出。因为在类的公共接口函数中,我们可以对输入的具体值进行限定,那么这样就不会造成数据的错误。比如说下例: 1 class Cat 2 { 3 public: 4 void setWeight(int w) 5 { 6 if(w>0&&w<50)//这里,我们就可以通过一条简单的if语句启动控制作用 7 weight=w; 8 }//设置重量 9 int print(){return... 阅读全文
posted @ 2012-02-25 00:30 uniquews 阅读(219) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/uniqueliu/archive/2011/08/18/2145121.html学习了这篇博主如何在vs2008中显示程序运行时间,很有用啊,不过我原本是想找能在控制台上输出,现就这样吧。View Code 1 #include <iostream> 2 #include <vector> 3 #include <time.h> 4 5 6 using namespace std; 7 using std::vector; 8 9 10 struct ArcBox 11 { 12 int h... 阅读全文
posted @ 2012-02-25 00:19 uniquews 阅读(195) 评论(0) 推荐(0) 编辑