Firstly, you should be creating it as a Win32 console project.
Secondly, #include <iostream> , as iostream.h is non-standard. Start with those and it should give you two warnings and an error. The warnings are about using your two time functions with an _s at the end, which makes them safer from buffer overflows which can be a security issue down the line. You need a using statement to clarify your cout call.
P.S. find the errors in the output tab at the bottom of the screen, after you've run your build
Last edited by jonsca; Oct 29th, 2009 at 5:10 am.
Reputation Points: 1165
Solved Threads: 578
Quantitative Phrenologist
Offline 4,271 posts
since Sep 2009