摘要:
#include using namespace std;//str要反转的字符串,len要反转的长度using namespace std;//bool reverse_str(char * str,int startPos,int endPos){ int len=strlen(str);... 阅读全文
摘要:
bool myatoi(const char *s,int &num){ cout='0'||(*s)(const_cast(str))(const_cast(str))<<endl; 类型转换安全 cout<<"prt:"<<(void*)s<<endl;这样也可以。注意cout<<&s;输... 阅读全文
摘要:
参考资料:http://en.cppreference.com/w/cpp/memory/new/operator_newhttp://en.cppreference.com/w/cpp/memory/new/operator_deletehttp://www.wuzesheng.com/?p=84... 阅读全文