2012年5月9日

转CString 用法小结

摘要: 1.CString::IsEmptyBOOL IsEmpty( ) const;返回值:如果CString 对象的长度为0,则返回非零值;否则返回0。说明:此成员函数用来测试一个CString 对象是否是空的。示例:下面的例子说明了如何使用CString::IsEmpty。// CString::IsEmpty 示例CString s;ASSERT( s.IsEmpty() );请参阅 CString::GetLength2.CString::LeftCString Left( int nCount ) const;throw( CMemoryException );返回值:返回的字符串是前n 阅读全文

posted @ 2012-05-09 12:57 mrpomelo 阅读(185) 评论(0) 推荐(0)

2011年11月9日

strcpy,strncpy,strcmp,strncmp,strcat,strlen..还有啥?

摘要: strcpy,strncpy,strcmp,strncmp,strcat,strlen..还有啥? 阅读全文

posted @ 2011-11-09 20:34 mrpomelo 阅读(279) 评论(0) 推荐(0)

2011年10月22日

String类的构造函数,析构函数,赋值函数

摘要: View Code 1 #include<string.h> 2 class String 3 { 4 private: 5 char * m_data; 6 public: 7 String(const char *str = NULL);//构造函数 8 String(const String &other);//拷贝构造函数 9 ~String(void);//析构函数10 String &operator = (const String &other);//赋值函数11 }12 13 St... 阅读全文

posted @ 2011-10-22 10:23 mrpomelo 阅读(384) 评论(4) 推荐(0)

2011年9月22日

设计模式之简单工厂

摘要: 简单工厂模式 阅读全文

posted @ 2011-09-22 22:38 mrpomelo 阅读(104) 评论(0) 推荐(0)

设计模式学习之前言

摘要: 设计模式学习 阅读全文

posted @ 2011-09-22 22:02 mrpomelo 阅读(102) 评论(0) 推荐(0)

导航