西门子笔试归来

2019-12-09 10:50 作者 :佚名 围观 : TAG标签:

刚刚从西十二胜利大逃亡,呵呵,西门子的笔试也太bt了!什么都要考,</P> 礼仪

Software Engineering Process ,UML/design patterns ,Java ,C /C++,Database,

礼仪

Hardware,全E文的,看来西门子要“全才啊”!全球500强的要求也太高了吧,呵呵,看来自己也需要全面提高啊! 求职信息

附:西门子笔试C++编程题一道:

面试问题

写出程序的output
#i nclude <iostream.h>

求职信息

class A {
private:
int num;
public:
A() {
cout<<"Default constructor"<< endl;
}
~A() {
cout<<"Desconstructor"<< endl;
cout<<num<<endl;
}
A(const A &a){
cout<<"Copy constructor"<<endl;
}
void operator=(const A &a) {
cout<<"Overload operator"<<endl;
}
void SetNum(int n) {
num=n;
}
}; 面试问题

void main()
{
A a1;
A a2(a1);
A a3=a1;
A &a4=a1;
a1.SetNum(1);
a2.SetNum(2);
a3.SetNum(3);
a4.SetNum(4);
} qzm4


声明:西门子笔试归来来源于互联网,其版权均归原作者及其网站所有,本站虽力求保存原有的版权信息,但由于诸多原因,可能导致无法确定其真实来源,如果您对本站文章、图片资源的归属存有异议,请立即通知我们,情况属实,我们会第一时间予以删除,并同时向您表示歉意!

相关文章