2013 I am in Xiamen C + + Job Summary
1, the general company out of the interview problem in the search for errors, are from the usual internal use of the process of the real error.
For example, the use of erase in STL: See more : http://blog.csdn.net/yangruibao/article/details/9040045
2, in C + + pointer is the weight of the heavy, we must master a good foundation, some companies will be some related to the list of topics to examine the basic use of pointers, a few reading procedures to examine everyone (we can pay due attention to the two-dimensional pointer, reference; www.cnblogs.com/carekee/articles/1948326.html)
3, for the const and define inspection, is also more common, because these two in the company's C + + code is more often needed.
Const can refer to: http://www.cnblogs.com/lichkingct/archive/2009/04/21/1440848.html
Define can refer to: http://blog.sina.com.cn/s/blog_686188ef0100klku.html (note "# #" in Define, "#" usage)
Define and typedef can be consulted: http://www.cnblogs.com/kerwinshaw/archive/2009/02/02/1382428.html
4, for the C + + class-related knowledge points, but also need to have their own understanding. For example, virtual and overloaded functions inside, parent pointer and child pointer
For example, the following 2013 I participated in the network company's pen test (please interested students, put on vs or vc6.0 to actually see the code output effect):
#include "stdafx.h"
#include <iostream>
using namespace Std;
Class Father
{
Public
void name () {cout<< "Father name" <<ENDL;}
virtual void call () {cout<< "Father call" <<ENDL;
};
Class Son:public Father
{
Public
void name () {cout<< "Son name" <<ENDL;}
virtual void call () {cout<< "Son call" <<ENDL;
};
int _tmain (int argc, _tchar* argv[])
{
Son *s1 = new Son ();
Father *F1 = (Father *) S1;
F1->call ();
F1->name ();
((son*) F1)->call ();
((son*) F1)->name ();
Father *f2 = new Father ();
Son *s2 = (son*) F2;
S2->call ();
S2->name ();
((father*) s2)->call ();
((father*) s2)->name ();
return 0;
}
5. The use of references to objects and structs. Of course, you also need to understand the correlation and difference between pointers and references.
6, some companies may consider the students using the VS tool, will give the compiler debugging information, and then ask you the following error prompts, how to solve. This can only rely on the students ' usual experience and the method of thinking about the problem.
7, there are programming problems, this range is also very wide. For example, let you parse a certain format of files, such as CSV file format, study code skills, of course, in a short period of time, certainly no way to write a very good code, such as fault tolerance in this regard may be handled poorly. These are not the examiner's concern, as long as the overall thinking out, the code is basically possible. (This involves the file read and write, of course, consider the different encoding format is also one aspect: for example, Utf-8 BOM tag needs to be removed first, etc.)
8, now a lot of companies are using cross-compiled Linux environment code, so some companies will examine everyone's shell script can understand, Makefile can understand (now as if cmake more popular), there are basic Linux operation commands. These in school I also have no contact, now have contact point, but also very often Baidu.
http://www.chinaunix.net/old_jh/23/408225.html [essence] Write with me Makefile
Knowledge of Linux can be seen, Brother Bird's Linux private cuisine
It seems to say that these, the following attached to the personal feel more interesting face test;
Linux C interview Summary: http://blog.csdn.net/sjin_1314/article/details/39861929
Some interesting interview questions: http://blog.csdn.net/wangyuling1234567890/article/details/38565239
2013 Interview C + + Summary