RSS Forums RSS
Please support our C++ advertiser: Programming Forums

Printing a Queue to file

Join Date: Feb 2005
Posts: 464
Reputation: winbatch is on a distinguished road 
Rep Power: 4
Solved Threads: 18
winbatch's Avatar
winbatch winbatch is offline Offline
Posting Pro in Training

Re: Printing a Queue to file

  #2  
Jun 9th, 2005
Tim,

This shouldn't compile - look at this line in main.cpp

while((!in_file.eof())and (name != "")){

Even if it didn't compile, you try and read from the file if it it couldn't be opened... (Your cout says that a new file is created, I don't think that's true of an ifstream..) and even if it were, what would be the point of reading from an empty file?

Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:09 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC