Constructors and virtual functions
Question: I have been doing some programming in C++ and recently decided I would try some Windows programming with the Microsoft Foundation Classes. This isn’t a question about Windows but
Question: I have been doing some programming in C++ and recently decided I would try some Windows programming with the Microsoft Foundation Classes. This isn’t a question about Windows but
Question: Which arguments do you receive when you overload . and -> , and what do you do with the arguments? I know that for overloading [] you receive the
Question: What is the proper way to dynamically allocate a 2D array using the new operator?Here’s a code fragment:int num = 50;int **stuff;stuff = new int[num][num];My compiler (g++) returns the
Question: Can I use strstream functions for incode I/O,i.e. writing to memory just as if it were binaryinput/output to a file? Answer: You can use it to do incode input
Question: Which model of C/C++ compiler offers the best value for a beginning programmer?(It must be ANSI C compatible.) Answer: The GNU G++ compiler. It’s free, ANSI C compatible and
Question: I got a warning when I compiled my C++ program onHP-UX:Line 219: Warning: Namespace is a future reserved keyword (215).What does this mean? Answer: It means exactly what it
Question: Answer: Many people have been asking how to do this. Since JavaScript does not have built-in methods for converting numbers to currency-formatted strings, the only option left is
null
Question: Answer: You are probably familiar with a special value in JavaScript called null. This is a value you can assign to a variable when you want to indicate
Question: Answer: JavaScript can be used to access values in web form input fields. This is possible because JavaScript treats input fields as objects with several properties. One of