随笔分类 -  C++学习

摘要:QMessageBox中的四种对话框 ui_dialogtest.h文件: /********************************************************************************** Form generated from reading UI file 'dialogtest.ui'**** Created by: Qt Us... 阅读全文
posted @ 2014-06-26 16:43 sxcww 阅读(5746) 评论(0) 推荐(0)
摘要:#include#include #includeusing namespace std;class SuperString{private: char *str;public: SuperString(const char *s=0):str(0){ if(s!=0){ str=new char[strlen(s)+1]; ... 阅读全文
posted @ 2014-05-28 20:55 sxcww 阅读(202) 评论(0) 推荐(0)
摘要:#include "iostream"using namespace std;template struct plus{ T operator()(const T& a,const T& b) const {return a+b;}};int _tmain(int argc, _TCHAR* argv[]){ int a=122; int b=1213; plus plusobj; cout()(a,b)<<endl; system("pause"); return 0;} 阅读全文
posted @ 2014-04-12 20:28 sxcww 阅读(153) 评论(0) 推荐(0)