Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Algorithms and flowcharts (Yet another C++ assignment).
#19
MariaColette Wrote:Okay so, ch being uninitialized is making this not work, how should it be initialized?

Where is it complaining about ch not being initialized? Could you have missed copying a line that gives it a value? Or did you change my "do {} while ()" loop into a "while () {}" loop?

Quote:Also I should move on to the next function...

Code:
// Initialize SENTENCE record to contain empty strings.
void InitializeLine(SENTENCE & Line);

I feel really dumb, I'm just staring at this and got no idea on what to do here.

A record that contains empty strings, would that be something along the lines of...

Code:
SENTENCE Empty = {"", "", "", "", "", "", "", ""};

Or do I just literally leave the space between curly braces blank?

... I'm probably misunderstanding this again because I'm not sure where Line comes in.

Code:
SENTENCE Empty = {"", "", "", "", "", "", "", ""};
Line = Empty;
Reply


Messages In This Thread
Algorithms and flowcharts (Yet another C++ assignment). - by SaptaZapta - 2013-09-25, 07:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)