西门子笔试归来

出自求职百科

跳转到: 导航, 搜索

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


个人工具
公司索引
  • A   B   C   D   E   F   G
  • H   I   J   K   L   M   N
  • O    P
  •     Q    R    S    T
  • U    V    W    X    Y    Z
工具箱