Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Algorithms and flowcharts (Yet another C++ assignment).
#16
SaptaZapta Wrote:Starting from the end: if you are passing something from the main program to the function, both of them need to know what it is. Therefore, it needs to be declared in both places. So add this to the main:
Code:
int linepos, wordpos;
  string word;

Oh, I thought I had that in the main, but that's lineNum and wordNum... so I just had to change the names. Tongue
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)