- 博客(6)
- 资源 (5)
- 收藏
- 关注
原创 atoi 原来将字符串02002xzm100转换为int以后是2002
将字符里的数字转换成int 遇见0或者字符就结束,look atoi的实现#include int xzm_atoi( char* pstr ){ int ret = 0; int symbolSign = 1; /* * 判断指针是否为空 */ if(pstr == NULL) { OutputDebugString("Pointer is NULL\n");
2016-08-30 11:16:08 427
原创 MySQL 表和列的注释的添加以及查看
经过自己亲自测试,非常好用,呵呵MySQL的注释方法与SQL2008R2和Oracle的不太一样,另外两个数据的写法在其他文章中另述-- 使用数据库xzmdbUSE xzmdb;SET FOREIGN_KEY_CHECKS = 0;DROP TABLEIF EXISTS `tbl_base_user_info`;-- 创建表tbl_base_user_infoC
2016-08-29 20:35:10 2682
原创 通过mysqlnow()函数校正本地(windows)时间与服务器(linux)时间
通过连接服务器的mysql服务器,通过select查询记录集,其中记录集的一列是now(),然后就看代码吧class CInfo{public: time_t m_TimeOffset; CTime nowtm;// 修正到服务器时间 CTime m_DateBegin; CTime m_TimeBegin; CTime m_DateEnd; CTime m_
2016-08-24 10:26:01 1731
原创 MFC中 CArray(template)的应用
MFC中CArray代码的实现templateclass CArray : public CObject{public:// Construction CArray();// Attributes INT_PTR GetSize() const; INT_PTR GetCount() const; BOOL IsEmpty() const; INT_PTR GetUppe
2016-08-19 18:11:46 1604
原创 std::map的使用
map类的实现代码template<class _Kty, class _Ty, class _Pr = less, class _Alloc = allocator > > class map : public _Tree > { // ordered red-black tree of {key, mapped} values, unique keyspublic: ty
2016-08-19 17:55:47 1758
原创 windows消息检测函数
有的时候我们不知道windows在某一时刻发送了什么消息,即便用spy++可以探测到,但是感觉还不是那么的好,所以就下一个函数来动态的调试它吧,很好用但仅限user层留点地方为以后增加内容// OutMsg函数中的消息宏都是依据winuser.h而来的,基本上windows消息应该全了,可能还有没发现的不过这应该足够了// 放在函数PeekMessage PreTrans
2016-08-10 22:24:13 689
用代码对类的几种关系描述(多重继承 依赖 内嵌类 聚合类 )
2014-07-04
俄罗斯方块游戏_the program of console
2012-11-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人