1. First focus on Coding Ability of a candidate. Ask questions such as write a function to convert an array into a linked list. 2. Next focus on Logic. Write a function to find the number of occurrences of a sub-string inside a given string. 3. Next focus on Design. Write code to demonstrate the Command Pattern.
Nisamudheen
Posts
-
What are the "Real World" programming interview questions that everyone keeps talking about? -
Isn't the C/C++ macro considered to be poor style? It's being used at coder contests!In fact Macros are really powerful tool. It is one of the best way by which one can talk to the underlying compiler and by which the compiler can talk to you. Yes compiler can talk to you by the means of Predefined Macros. If we look at the "Preprocessor Definitions" of Visual Studio editor of a C++ project, there are a lots of things configured which can be done otherwise using #define macros. Following are some of the application areas of macros. 1. Platform based API declarations. Platform can be different Operating Systems, it can be 32 bit or 64 bit. 2. Generation of conditional code. 3. Switching between UNICODE and Multi-byte. 4. Prevention of multiple times inclusion of header files. Achieved using #ifndef,#define,#endif. 5. API generation when used in conjunction with template meta programming.
-
module machine type 'X86' conflicts with target machine type 'x64'Hi I faced the same problem. I assume the following in your case. 1 The module that your are building is a 64 bit binary. 2 You are trying to link your module with a 64 bit library. If above is the case, then you need to define an x64 Platform using the Configuration manager. Select the New option. In my case above was the problem and after defining a new configuration for x64, the problem is solved. Regards Nisam
"Silence will create respect and dignity; justice and fair play will bring more friends; benevolence and charity will enhance prestige and position; courtesy will draw benevolence; service of mankind will secure leadership and good words will overcome powerful enemies" Ali (Peace be upon him)
-
How to export the drived class from one abstract class? And also STL container is used as private members. [modified]In order to use the CInterfaceClass in another DLL, as a base class, you need to export this class first.
-
Thread Pool in VC++.Microsoft introduced new thread pool APIs. http://msdn.microsoft.com/en-us/library/ms686766%28VS.85%29.aspx[^] Using this you can get a function executed in a thread, without using CreateThread(). There are some good benefits in using the thread pool APIs. Please refer the link.
-
C2512: no appropriate default constructor availableIf you can provide a sample code, it will help to understand the problem well. Hope, your problem might be like the following one. class CTest { public: CTest( int a ) // since there is a constructor, the compiler won't generate // the default (no-argument) constructor. { } }; int main() { CTest Object; // Here, we are trying to invoke the no-argument constructor. // So the error C2512 comes. // To solve the problem, define a no-artument constructor. // CTest Object( 1 ); Otherwise, you should declare the object like this. return 0; }
-
C2512: no appropriate default constructor availableThe other side of the story is that, you can prevent a constructor being called (implicitly or explicitly) other than what you have provided.
-
Starting COMOpen MSDN Goto 'Search' Tab Search for 'COM'. Read 'From CPP to COM' first.
-
How to get en exe default icon