C++ Interview Questions
Unless you're a hobbyist, at some point in your career you will be interviewed for a software development position. Software engineers are expected to be able to communicate their knowledge of their art and demonstrate their skills on demand. Prepare for your next C++ job interview by reviewing the questions on these pages.
Stringify __LINE__ using preprocessor directives
Create a string that contains the C++ filename and line number that a runtime error occurs on using preprocessor directives. Show how to stringify an integer (__LINE__).
Append or Create a Log File Using fopen()
Use fopen to create a file if it doesn't exist and to append to a file if it does exist.
FindFirst and FindNext Directory Listing Example
An example program shows how to use findfirst and findnext to drill into directories using user-specified attribute filters.
Create a Custom Icon for a Console Mode Application
Modify the default icon for a console-mode application. The modified resource can have both a 16-bit and a 32-bit icon. Each console-mode application can have a unqiue customized icon. Step-by-step instructions for modifying the icon are provided.
Loan Payment Calculator in DataFlex
There are some programs that are universal to programming -- the kind of program that everybody eventually makes. One of those programs is a loan payment calculator. As a student, you might need to calculate a monthly loan payment for a class project, or you might need to calculate it for the finance deptment for your business, or you might need it for yourself to find out the monthly payment for a car or house loan.