欢迎来到弘毅网!本网站现已开通校园用户注册,校园用户仅限合作校园IP段内注册!已注册的校园用户账号可于校外免费访问本资源库!

文章列表

笔试题

当前位置:主页 > 求职就业 > 面试笔试 > 笔试题 > 正文

西门子笔经

时间:2016-01-13 11:01 作者: 来源: 人气:

 

 刚刚从西十二胜利大逃亡,呵呵,西门子的笔试也太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);
}

(责任编辑:职场达人)