Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Algorithms and flowcharts (Yet another C++ assignment).
#22
SaptaZapta Wrote:Yeah, you deleted my line " ch = NonWhiteChar(inF);" which was the first one in the do {} loop.
That is where ch gets a value (which is the next character in the input file, skipping any whitespace).
You could replace it temporarily with "inF >> ch;" and make sure your input file has no blanks and such for now. Once that works, we can step up to dealing with the whitespace.

I actually did notice that and put it back in before; however, I still got the same error. Seeing your explanation, I'm even more confused as to why now. :|
Reply


Messages In This Thread
Algorithms and flowcharts (Yet another C++ assignment). - by MariettaRC - 2013-09-25, 08:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)