返回   cpper编程论坛 > Zion/测试
注册账号 论坛帮助 会员列表 日历事件 搜索 今日新帖 标记版面已读

Zion/测试 惹人烦的东西这边来

回复
 
LinkBack 主题工具 显示模式
  #1 (permalink)  
旧 2004-07-09
初级会员
 
注册日期: 2004-07-04
帖子: 3
fanren1985 正向着好的方向发展
默认 [普通]一个很菜的问题求教高手(请不要骂我啊)!

请问C++中的类是什么意思?什么用户自己定义的类型?为什么没有出现过关键字private protected?“::”两个冒号是什么意思?其中的inline直接插入函数有什么作用?还有,类和union 与struct有差别是什么?能不能请高手写出一个比较完整的带class的程序来说明一下?

有个程序不太明白:在成员函数中,人们可直接引用对象的成员。例如:

class x{

int m;

public:

int readm(){return m;}

};

x aa;

x bb;

void f()

{int a =aa.readm();

int b =bb.readm();

//...

}

这个程序要说明什么意思?

万分感谢!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #2 (permalink)  
旧 2004-07-09
polyrandom 的头像
超级版主
 
注册日期: 2002-09-03
帖子: 3,135
文章: 20
polyrandom 正向着好的方向发展
默认

你应该先看看书
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #3 (permalink)  
旧 2004-07-09
初级会员
 
注册日期: 2004-07-04
帖子: 3
fanren1985 正向着好的方向发展
默认

我就是从书上看的这些,不太明白啊~难道真的没有高手救我吗!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #4 (permalink)  
旧 2004-07-09
polyrandom 的头像
超级版主
 
注册日期: 2002-09-03
帖子: 3,135
文章: 20
polyrandom 正向着好的方向发展
默认

你需要的话,我可以给你一本好书。但是如此的问题如果你要我给你解释,我说出来的和书上也不会有什么区别。
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #5 (permalink)  
旧 2004-07-11
初级会员
 
注册日期: 2004-07-04
帖子: 3
fanren1985 正向着好的方向发展
默认

请问是什么好书啊?如果方便
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
  #6 (permalink)  
旧 2004-07-11
polyrandom 的头像
超级版主
 
注册日期: 2002-09-03
帖子: 3,135
文章: 20
polyrandom 正向着好的方向发展
默认

C++ Primer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
回复时引用此帖
回复

书签
主题工具
显示模式

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
Trackbacks are 启用
Pingbacks are 启用
Refbacks are 启用



所有时间均为格林尼治时间 +9。现在的时间是 10:27 PM


Powered by vBulletin® 版本 3.7.0
版权所有 ©2000 - 2008,Jelsoft Enterprises Ltd.
(C) Copy Right All Right Reserved 2001 - 2007

Search Engine Friendly URLs by vBSEO 3.1.0