2013-09-25, 07:52 PM
MariaColette Wrote:Oh, I thought I had that in the main, but that's lineNum and wordNum... so I just had to change the names.
It's ok for the main and function to call the variable by different names, e.g.
Code:
int square(int n)
{
return n*n;
}
void main()
{
int num;
...
cout << "the square of " << num << " is " << square(num) << end;
...
}Or in your case
GetWord(inF, lineNum, wordNum, word);


