- 博客(7)
- 收藏
- 关注
转载 c++ MFC的一些类
CAboutDlg:对话框框类,对应的应用程序执行“帮助”->"关于"菜单命令后,弹出的“关于”的对话框。 CSDIDemoApp:派生自应用程序类CWinApp,为应用程序对象,负责应用程序的初始化和退出清理工作。 CMainFrame:派生自CFrameWnd类,为框架窗口对象,...
2016-05-27 14:57:00
248
转载 c++ 十进制转化为二进制输出
#include<iostream.h> void binary(int number) { int remainder; if(number<=1) { cout<<number; return; ...
2016-05-27 14:12:00
186
转载 c++ 实现格式化数据的I/O
#include<iostream> #include<iomanip> using namespace std; int main() { char bookname[100]; double price; int counts; c...
2016-05-27 11:47:00
170
转载 c++ 函数模板
#include<iostream> #include<string> using namespace std; template <class T> T MIN(T a,T b,T c) { if(a<b) b=a; ...
2016-05-27 11:19:00
99
转载 c++ 运算符的重载
#include<iostream.h> class CComplex { double m_fReal,m_fImag; public: CComplex(double r=0,double i=0):m_fReal(r),m_fImag(i){} ...
2016-05-27 10:55:00
157
转载 c++ 虚函数的多态
#include<iostream> using namespace std; class CFigure { protected: double x,y; public: void SetDim(double i,double j=0.0) { ...
2016-05-27 10:03:00
109
转载 一段有深思的代码,c++
#include<iostream> using namespace std; class CTimeType { int hour,minute,second; public: CTimeType(int h=2,int m=0,int s=0) { ...
2016-05-27 09:42:00
224
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人