摘要:
MSVC2010默认保存GBK编码。如果不转换成utf-8编码,对GBK编码的文件,中文可以直接用QStringLiteral()宏,如:QMessageBox msgBox;msgBox.setText(QStringLiteral("警告")); 阅读全文
摘要:
省去对象指针的显示deletetypedef tr1::shared_ptr IntPtr;IntPtr fun(){IntPtr p = new int(3);return p; }int main(){1 IntPtr t = fun();cout<<endl;2 fun();cout... 阅读全文
摘要:
确定安装好了boost1.54以上确定libevent版本大于1.0只编译生成cpp库./configure --without-java --without-lua --without-python --without-php --without-c_glib --without-qt4 --wi... 阅读全文