2013-09-25, 07:32 PM
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.

