devxlogo

April 5, 1999

Random File Access

Question: I am trying to read from a text file using FileInputStream. Is there a way that I can go directly to the middle of the file and read from

Read-only members

Question: If I write a class in C++, which contains private members, I can make them read-only by providing a get access method and no set access method. If that

Floating point accuracy

Question: When I do the following, double answer = 121 * .1;System.out.println(“Answer: ” + answer); I get, Answer: 12.100000000000001 What’s going on? Answer: Almost every computer architecture represents numbers in

NT remote execute

Question: How do I execute a batch file on an NT machine remotely from another Windows machine? Answer: You have a couple of choices, all from the NT Server Resource

Forcing a function to be non-inline

Question: Is there a way to force a function not to be inline?that is, to define the body of a function in a header file, but require that the compiler