| 编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛
全能ASP/PHP/ASP.NET主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付学习型 ASP/PHP/ASP.NET 主机 30元/年
高端软件开发 = 年薪十万不是梦赛孚耐:软件保护加密专家身份认证令牌USB KEY 
共有 510 人关注过本帖
标题:C++面试题,有空的来看看。
收藏  订阅  推荐  打印 
JMGS0013
Rank: 1
等级:新手上路
帖子:33
积分:430
注册:2005-7-14
C++面试题,有空的来看看。

C/C++ 1) Write a class that implements a simple list. It must provide methods to add and remove values, and provide some way to iterate through all elements in the list. 2) Write destructors for these two classes. class A { public: int *a; A() { a = new int[10]; } }; class B : public A { public: int *b; B() { b = new int[20]; } }; 3) Given the following definition, write a constructor that sets the value of m_constant. class CConstant { public: const int m_constant; const int Get() {return m_constant; } }; 4) Write a copy constructor for the Circle class defined below. In what two situations does the C++ compiler use the copy constructor implicitly? class Circle { public: Circle(); int center_x; inst center_y; double r; }; 5) What is a hash table? What is its purpose, and how does it function? 6) What does mysteryFunction return? int mysteryFunction ( int n) { int k = 0; while( n ) { k++; n = n / 10; } return k; }
搜索更多相关主题的帖子: 面试  
2005-8-8 09:50
Stayor
Rank: 2
等级:注册会员
帖子:136
积分:1460
注册:2005-8-4

题不是很难,就是英文比较讨厌。不知道这是哪得面试题。
2005-8-9 20:52
Murray
Rank: 2
等级:注册会员
帖子:101
积分:1110
注册:2005-4-10

很基础的题哈
是不是就是考你的英语水平吧

2005-8-14 15:10
关于我们 | 广告合作 | 编程中国 | 清除Cookies | Archiver | WAP | TOP

编程中国 版权所有,并保留所有权利。鲁ICP备08000592号
Powered by Discuz, Processed in 0.067842 second(s), 9 queries.
Copyright©2004-2008, BCCN.NET, All Rights Reserved