File handles/pointers
Question: In C, I use the FILE *filename. As a beginning C++ programmer, I open streams for reading and writing inside the main() function, but when I try to work
Question: In C, I use the FILE *filename. As a beginning C++ programmer, I open streams for reading and writing inside the main() function, but when I try to work
Question: Do you know of any good C/C++ mailing lists? I’m a computer science major and I’d like to join one. Answer: I am not aware of any mailing lists
Question: Is there a way to explicitly declare the number of bits to allocate to a specific variable? For example, can I declare an integer that would be stored in
Question: In several programs, I need to use integers larger than those that can be held by unsigned long ints. I need to be able to multiply, divide, and mod
Question: I often need to split a string into a number oftokens based on delimiters specifiedby the user. I would appreciate information on how to tokenize a string in a
Question: Can you explain and give me examples of pure virtual function? What is the difference between pure virtual function and virtual function? Answer: A pure virtual function is a
Question: I am using Borland Turbo C++ 3.1 and I can’t figureout how to use my self-defined libraries. I’ve used”#include” but I get an error every time I try touse
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