我的第一个c++程序

对象指针数组演示 1、先准备一个程序编辑环境(新建项目) 我用的是vs2015工具 2、编辑代码 #include “stdafx.h” //添加预处理语句 #include using namespace std; //命名空间 class Test { int num; double f1; public: Test(int n) { num = n; } Test(int n, double
相关文章
相关标签/搜索