摘要:
#include"stdafx.h"#include <iostream.h>//向前声明class A;class B{public: int GetAData( A& obj );};class A{public: int GetData() const { return m_i; } A():m_i(10) { }; //friend关键字函数修饰符 //此函数和类A有友... 阅读全文
posted @ 2010-01-22 17:34
o无尘o
阅读(143)
评论(0)
推荐(0)
摘要:
#include"stdafx.h"#include <iostream.h>#include <string.h>//设计一个学生类,可以统计学生的总人数void GetName(){ cout << "gobal fun" << endl;}class student{public: char m_szName[32];public: stati... 阅读全文
posted @ 2010-01-22 17:28
o无尘o
阅读(211)
评论(0)
推荐(0)
浙公网安备 33010602011771号