面试
1.int a[][2] = {{a,b},{c,d}}
char **p = a;
printf(“%sn”,*(p+1));
p++;
printf(“%sn”,*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(“%dn”,sizeof(p));
printf(“%dn”,sizeof(a));
printf(“%dn”,sizeof(a[5][5]));
printf(“%dn”,sizeof(q));
输出结果:
6.重载和重定义的区别
7.解决线程和进程
8.说出MFC中有那些GDI的库类
面试:
1.解释一下笔试题4,并如何修改成为我们想要的.
2.因为笔试题3我没做,面试官问:你能解释你为这些为什么没做
3.你简历上面的项目是什么时候做的,何时做的,做完了有什么收获.
4.你要求的薪资多少?
5.你还有什么想问的吗??
我就问了福利,加薪等