devxlogo

July 18, 1997

Friend class and function

Question: I need to know what the class or function called “friend” is. My teacher explained it in class, but I don’t quite understand how to call it and declare

Possible to read integers as integers?

Question: Is it possible to read integers from a file as integers, or must I read them as strings and then convert them to integers? Answer: In C++ the streams

Compilers: Which is best?

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