2014年4月16日
摘要: #include using namespace std;//str要反转的字符串,len要反转的长度using namespace std;//bool reverse_str(char * str,int startPos,int endPos){ int len=strlen(str);... 阅读全文
posted @ 2014-04-16 22:32 Yogurshine 阅读(460) 评论(0) 推荐(0) 编辑
摘要: bool myatoi(const char *s,int &num){ cout='0'||(*s)(const_cast(str))(const_cast(str))<<endl; 类型转换安全 cout<<"prt:"<<(void*)s<<endl;这样也可以。注意cout<<&s;输... 阅读全文
posted @ 2014-04-16 15:43 Yogurshine 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 参考资料:http://en.cppreference.com/w/cpp/memory/new/operator_newhttp://en.cppreference.com/w/cpp/memory/new/operator_deletehttp://www.wuzesheng.com/?p=84... 阅读全文
posted @ 2014-04-16 11:43 Yogurshine 阅读(2358) 评论(0) 推荐(0) 编辑