东京奥运会2020吉祥物:谁有C/C++面试题目呀~

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 00:59:50

呵呵,下面是我们公司的面试题目,很简单的,针对应届毕业生的。语言掌握方面用什么都行。

第一部分:Windows操作、数据结构
1.在Windows操作系统中,实现以下功能的快捷键是什么?
剪切 复制 粘贴 切换到其他窗口

2.某二叉树的先序遍历序列为abgdcefh,中序遍历序列为gbdaechf,则其后序遍历序列为( )。
(A) bdgcefha (B) gdbecfha (C) bdgaecfh (D) gdbehfca

第二部分:SQL
3.用SQL语句实现从表t_Temp中提取所有记录,并按照字段f_Field升序排序。

4.用SQL语句实现在表t_Temp1,t_Temp2(两个表具有相同的字符型字段f_Field)中,选择两个表的所有字段,选出的记录要求f_Field值相同,并满足f_Field不为空字符串。

5.请问对于SQL Server 2000,数据库备份有哪几种,有何区别?

6.请问什么是存储过程?使用存储过程有哪些好处?请举出一些你所熟悉的系统存储过程。

第三部分:编程
(此部分编程内容可用VB或者VC、c编写)
7.编写一个函数,输入一个string型参数,返回该string的逆序字符串。
比如:传入 "abcde",函数返回"edcba"

8.编写一个函数,输入一个字符串"aaa,bbb,ccc,ddd",返回一个下标从零开始的一维数组,它的每个元素包含输入字符串的用","分隔开的子字符串。
例如本例返回数组C其值应当为
C(0)="aaa",C(1)="bbb",C(2)="ccc",C(3)="ddd"

第四部分:VC6

9.说明在VC6 集成开发环境下,以下快捷键的作用:
Ctrl+F5 F5 F7

10.列出几个你常去的查询VC资料的网站;列出几本你认为经典的介绍VC的书籍。

11. 请问模式对话框与无模式对话框有什么区别?请分别举出常见的例子。

12.请简述类下属成员变量或成员函数的三种属性之间的区别。(提示:其中一属性名为public)

13. 请参考一下技术文档,在vc++ 6.0中控件ClistBox的成员函数InsertString与AddString有何区别?
CListBox::AddString
int AddString( LPCTSTR lpszItem );
Return Value
The zero-based index to the string in the list box. The return value is LB_ERR if an error occurs; the return value is LB_ERRSPACE if insufficient space is available to store the new string.
Parameters
lpszItem
Points to the null-terminated string that is to be added.
Remarks
Call this member function to add a string to a list box. If the list box was not created with the LBS_SORT style, the string is added to the end of the list. Otherwise, the string is inserted into the list, and the list is sorted. If the list box was created with the LBS_SORT style but not the LBS_HASSTRINGS style, the framework sorts the list by one or more calls to the CompareItem member function.
CListBox::InsertString
int InsertString( int nIndex, LPCTSTR lpszItem );
Return Value
The zero-based index of the position at which the string was inserted. The return value is LB_ERR if an error occurs; the return value is LB_ERRSPACE if insufficient space is available to store the new string.
Parameters
nIndex
Specifies the zero-based index of the position to insert the string. If this parameter is –1, the string is added to the end of the list.
lpszItem
Points to the null-terminated string that is to be inserted.
Remarks
Inserts a string into the list box. Unlike the AddString member function, InsertString does not cause a list with the LBS_SORT style to be sorted.

第五部分:项目合作和管理
14.写出你所了解的一个或多个用于软件项目版本控制的软件。

15.简单描述一下在面向对象项目(软件工程)中的几个基本阶段,如果了解某种UML工具,请说明该工具在这一过程中各阶段的应用。

算100的阶乘。注意进位。