设为首页 加入收藏

TOP

深圳诺威达C++职位面试经过
2014-11-02 17:15:05 来源: 作者: 【 】 浏览:45
Tags:深圳 威达 ++职位 面试 经过

面试


1.int a[][2] = {{a,b},{c,d}}


char **p = a;


printf(“%s\n”,*(p+1));


p++;


printf(“%s\n”,*p + 1);


输出以下结果:


2.string类,写出类函数


string


{


public:


string(const char *str = NULL);


string(const string &other);


string &operator =( const string &other);


private:


char *m_pstr;


}


3.利用递归实现输入1输入11,输入12输出1122


4. void GetMemory(char *p)


{


p = (char *)malloc(100);


}


void Test(void)


{


char *str = NULL;


GetMemory(str);


strcpy(str, ”hello world”);


printf(str);


}


输出结果:


为什么:


5.char *p;


char a[5][5];


char *q = (char *)malloc(100);


printf(“%d\n”,sizeof(p));


printf(“%d\n”,sizeof(a));


printf(“%d\n”,sizeof(a[5][5]));


printf(“%d\n”,sizeof(q));


输出结果:


6.重载和重定义的区别


7.解决线程和进程


8.说出MFC中有那些GDI的库类



面试:


1.解释一下笔试题4,并如何修改成为我们想要的.


2.因为笔试题3我没做,面试官问:你能解释你为这些为什么没做


3.你简历上面的项目是什么时候做的,何时做的,做完了有什么收获.


4.你要求的薪资多少


5.你还有什么想问的吗


我就问了福利,加薪等


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇shell脚本面试题 下一篇阿里web前端开发面试题2

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: