• 结构体变量引用-数组-指针

    #include <iostream> using namespace std; //自定义结构体类型 struct date { int month; //结构体变量名定义 int day; int year; }; struct teacher { int num; char name[20]; struct date birthday; //结构体的嵌套定义 int salary; char addr[30]; };...

    0
    664
    854B
    2012-10-11
    49
  • 对象句柄访问成员函数

    #include<iostream> using namespace std; class Count { public: //public data is dangerous //sets the value of private data member x void setX(int value) { x = value; }......

    0
    126
    899B
    2012-10-11
    9
  • 使用this指针访问对象的数据成员

    #include<iostream> using namespace std; class Test { public: Test(int = 0); void print()const; private: int x; }; Test::Test(int value) :x(value) { }....

    0
    229
    485B
    2012-10-11
    50
  • 求三角形面积c++代码

    #include <iostream> using namespace std; #include<cmath> using namespace std; double a ,b , c, C, P, M, S;

    0
    3550
    373B
    2012-10-11
    46
  • Array类测试程序

    #include <iostream> using std::cout; using std::cin; using std::endl; #include "Array.h" int main(){...}

    0
    141
    1KB
    2012-10-11
    10
  • 用friend函数修改类的private数据

    用friend函数修改类的private数据

    5
    203
    783B
    2012-10-11
    29
关注 私信
上传资源赚积分or赚钱