自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (3)
  • 收藏
  • 关注

转载 java 初始化问题

http://wxl24life.iteye.com/blog/1924719在 Java 里定义一个类的时候,很多时候我们需要提供成员变量,成员变量专业叫法是 Memeber Variable 或者干脆的叫作 Field. 根据是否使用 static 关键字修饰,可以将 Field 分为两种:static field:也称作 class variable,这种 fil

2014-03-31 09:24:17 1324

转载 Design pattern FAQ Part 2

http://www.codeproject.com/Articles/28359/Design-pattern-FAQ-Part-Design-pattern-trainingIntroductionThis is continuation to design pattern FAQ Part 1. In this FAQ series we will cover Inter

2014-03-17 17:09:02 1110

转载 Design pattern FAQ Part 1 (Training)

Design Pattern FAQhttp://www.codeproject.com/Articles/28309/Design-pattern-FAQ-Part-Traininghttp://www.codeproject.com/Articles/28309/Design-pattern-FAQ-Part-TrainingWhat are design patterns

2014-03-17 17:06:14 567

转载 Design pattern and Software design interview questions for Programmers

20 Design pattern and Software design interview questions for ProgrammersDesign patterns and software design questions are essential part of any programming interview, no matter whether

2014-03-17 17:05:08 1171

转载 深入理解C++的动态绑定和静态绑定

为了支持c++的多态性,才用了动态绑定和静态绑定。理解他们的区别有助于更好的理解多态性,以及在编程的过程中避免犯错误。需要理解四个名词:1、对象的静态类型:对象在声明时采用的类型。是在编译期确定的。2、对象的动态类型:目前所指对象的类型。是在运行期决定的。对象的动态类型可以更改,但是静态类型无法更改。关于对象的静态类型和动态类型,看一个示例:[cpp] vi

2014-03-15 10:23:37 465

转载 链表操作

一些常见的单链表题目,总结思路和实现代码。1.单链表的反序2.给单链表建环3.检测单链表是否有环4.给单链表解环5.检测两条链表是否相交6.不输入头节点,删除单链表的指定节点(只给定待删除节点指针) 1.单链表的反序[cpp] view plaincopy//逆转链表,并返回逆转

2014-03-13 20:36:44 555

原创 explicit关键字

explicit关键字C++中,带单一参数的类构造函数在缺省情况下隐含一个转换操作符| 将该构造函数对应的函数参数转换为该类对象。。。例class MyClass fpublic:MyClass( int num ) ; // constructor and implicit conversion operatorg;...MyClass obj = 10 ;

2014-03-13 10:38:35 425

转载 what’s a virtual destructor and when is it needed?

In C++, what’s a virtual destructor and when is it needed?The need for virtual destructors in C++ is best illustrated by some examples. Let’s start by going through an example that does no

2014-03-12 20:29:27 660

转载 difference between lvalue and rvalue

Suppose we have the example code shown below in C. Will it compile? How do the concepts of lvalues and rvalues work in this problem? #define X 8int main(void){ ++X; // will

2014-03-12 16:30:45 635

转载 Diffrenece between process and thread

A process is an executing instance of an application. What does that mean? Well, for example, when you double-click the Microsoft Word icon, you start a process that runs Word. A thread is a path of e

2014-03-12 15:06:08 589

转载 关于硬链接和软连接(符号链接)的区别

http://blog.csdn.net/hairetz/article/details/4168296   linux系统下提供ln指令来进行文件链接。文件链接主要分为硬链接和软链接。   硬链接:由于linux下的文件是通过索引节点(Inode)来识别文件,硬链接可以认为是一个指针,指向文件索引节点的指针,系统并不为它重新分配inode。每添加一个一个硬链接,文件的链接数就加1

2014-03-12 14:04:14 490

转载 如何计算一个整形数组里的连续元素和的最大值?

转自 http://www.yl1001.com/ask/41004/question/5461393293384111.htm例:{9, -12, 120, 8, -20, 100, 30, -89, 20} 结果是{120, 8 , -20, 100, 30}的和最大,为 238 函数声明: int max_sum(int *array, int array_len);请计算一个整形数组里

2014-03-11 21:32:39 1145

原创 反转链表

Node * resverselinkWeibo(Node *head){ Node *newhead=NULL; Node *next; while(NULL!=head) {  next=head->next;  head->next=newhead;  newhead=head;  head=next ; } return newhead;

2014-03-06 19:35:51 542

转载 平均值考虑溢出的问题

[cpp] view plaincopyint avg(int x, int y)  {           return (x & y) + ((x ^ y) >> 1);  }  解释:X+Y= (X^Y)+((X&Y)SO: (X+Y)/2==((X^Y)>>1)+(X&Y)

2014-03-06 19:24:59 1101

suse中文版介绍

suse中文版介绍,对于想了解suse的倒是有帮助

2007-05-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除