#Stream.h Error?
Anyone:
While trying to learn C++ I ran the small sample program on page 146 of Rhodes
& McKeehan's book "Symantec C++ Programming for the Macintosh". The program
starts off with a #include <stream.h>.
When compiling this program I get an syntax error on line 7 of stream.h:
extern "C++" {
I can't believe there is an error in stream.h. Could I be doing something
wrong?
The program also includes:
long startTime = TickCount();
int total = 0;
int i;
for (i= 0; i < 100000; i++)
{
total += Value(i);
}
long finishTime = TickCount();
Here I get a Syntax error for the endTime = statement. I can see no reason for
this error – am I missing something
Thanks in advance from a novice programmer.
Dennis