Dos Console Problem....

This is a discussion on Dos Console Problem.... within the C++ Programming forums, part of the General Programming Boards category; When I compile in Visual C++ .NET we always check our programs - all dos console apps for "computer systems ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    46

    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?

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    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.
    Away.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    46
    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.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    46
    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?

  5. #5
    Registered User
    Join Date
    Sep 2001
    Posts
    46
    Thank you, that worked perfect....

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    46
    What exactly does the flushall call do anyways?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Novice Question: MS DOS app. a console?
    By renurv in forum C++ Programming
    Replies: 7
    Last Post: 12-30-2005, 01:42 PM
  2. Scrolling text in a DOS CONSOLE box
    By Blizzarddog in forum C++ Programming
    Replies: 4
    Last Post: 04-06-2004, 02:27 PM
  3. Console Appl without Dos window(box)
    By Aenaos in forum Windows Programming
    Replies: 1
    Last Post: 04-17-2003, 10:17 AM
  4. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 06:15 AM
  5. Colors in DOS console
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-08-2002, 07:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21