10 2005 档案

 
Factory方法(C++)
摘要:一 #include class Sample{public: Sample() { } virtual void flag() const { MessageBox(0,"Sample","111",0); }};class SampleA:public Sample{public: SampleA() { } void ... 阅读全文
posted @ 2005-10-27 14:26 子佩 阅读(502) 评论(1) 推荐(0)
微软最新的一道笔试题,我觉的出的不好,要改的地方太多了
摘要:IsCycleList Check if a singly linked list is a cycle linked list. If the list is a cycle linked list, the method return the head node of the cycle, or else return null; please find bug below. struc... 阅读全文
posted @ 2005-10-17 09:56 子佩 阅读(457) 评论(0) 推荐(0)
函数返回值和指针引用返回有什么不同
摘要:unsigned long inet_addr(char* )//一个api,需要char*参数char* GetString()//自定义的函数,得到一个字符串char* s=GetString();inet_addr(s);在xp下运行正常,但是在win2k下就会出现问题:得不到应该有的值。改成如下:void GetString(char*)char[1024] s="\0";GetStrin... 阅读全文
posted @ 2005-10-08 10:56 子佩 阅读(1257) 评论(2) 推荐(0)