FIRST
SECONDCode:#include <fstream.h> #include <iostream.h> #include <cstdlib.h> #include <ctime.h>
....Code:for(i=0;i<9;i++)
FIRST
SECONDCode:#include <fstream.h> #include <iostream.h> #include <cstdlib.h> #include <ctime.h>
....Code:for(i=0;i<9;i++)
Nope he was absolutely right with the headers he was using. Using fstream.h is not favorable as those headers are officially deprecated.Originally Posted by enjoy
I'm not sure if you meant it, but both your suggestions are wrong.Originally Posted by enjoy
The FIRST one says to use old, non-standard or deprecated headers. Not a good suggestion if bj31t is already using the newer headers.
The SECOND one still says to print out 9 numbers, even though it corrects the problem with starting at 0.
EDIT - Too Slow. And by the way, if I'm not mistaken, <iostream.h> and <fstream.h> are not deprecated, they are just old and non-standard. <stdlib.h> and <time.h> on the other hand are standard, but have been deprecated and with the newer headers being preferred.
Last edited by jlou; 04-28-2004 at 03:51 PM.