-
Dos Console Problem....
When I compile in Visual C++ .NET we always check our programs - all dos console apps for "computer systems organizations" - buy running a teacher provided input file and seeing if our output matches his... such as prog05 < prog05.in > prog05.out
But, when I do that after compileing in VC++ my programs will just hang and never make the output file or keep on reprinting the same output... kinda like relooping through the first line of the input file.
But when I make the exe in some other compiler such as Turbo C++ 3.0 it works fine... any idea whats up?
-
Can you post some code? (Don't post a huge program. Post what you suspect is giving you the problem). It's probably an issue with non-ANSI C++ or something.
-
He is a small zip with the exe, cpp, and input file.... when you run it it
float32 < float32.in > float32.out
float32.out just repeats the first line of input over and over.... but when I compile with Borland Turbo C++ and do the same thing it works perfect.
Sorry I couldn't find a small example and didn't want to post 300 lines of code.
-
Most of that code was written by our teacher..... I think in Borland Turbo C++ 3.0, so I was thinking I have my visual studio enviorment variables setup wrong.... or there is some problem linking of the object files.... are you saying it's just something he's doing in the programming that Borland must not care about?
-
Thank you, that worked perfect....
-
What exactly does the flushall call do anyways?