http://www.mitbbs.com//article_t/JobHunting/33082813.html
发信人: sunleilucky (蝈蝈), 信区: JobHunting
标 题: 发两个软件组的面试题
发信站: BBS 未名空间站 (Thu Oct 29 10:51:01 2015, 美东)
在会议室里看到上个礼拜面试新毕业生的东西,,发两个出来,估计可能对大家也没啥
实际作用,反正等着开会也没啥事干,,就当给自己以后找工作攒个人品了。。呵呵,
,我不会软件组的,所以也不知道难易,也没答案
behavioral:
What is the hardest software problem that you have debugged. how did you go
about doing it? what caused the bug
XML Parser(我们的东西会用到xml。所以)
XML exists to define tests available on some system:
<tests>
<test id ="1" name="First" file="1.tst" />
<test id ="2" name="Second" file="2.tst" />
<test id ="3" name="Third" file="3.tst" />
Design and implement a class to:
1.store and manage the test records parsed from this XML file.
2. Obtain a test name and filename given a test identifier.
An XML parser has been written for you, apply named TestXmlParser. The
TestXmlParser will use your class to store the test records. As such a
public method with the following signature must be provided by your class:
void addTestData(int id, const std::string& name, const std::string& file);
另外一个
Order of constructors/destructor
Provide the terminal output for the following program:
#include <iostream>
using namespace std;
class A
{
public:
A() {cout <<"A"<<endl;}
~A() {cout <<"~A"<<endl;}
};
class B:public A
{
public:
B() {cout <<"B"<<endl;}
~B() {cout <<"~B"<<endl;}
};
int main()
{
A*a=new A;
B*b=new B;
A*c=new B;
delete b;
delete a;
delete c;
return 0;
}
--
※ 修改:·sunleilucky 於 Oct 29 10:51:17 2015 修改本文·[FROM: 38.]
评论
发表评论