the string is a user input file.txt - its set to be C:\Dump\user.txt right now
when i call the code with:
1 2 3 4 5 6 7 8 9 10 11 12
int main(){
string file;
int words = 0;
file = "C:\\Dump\\user.txt";
int a = wordFunc(file, words);
cout << "Words: " << a << endl;
system("PAUSE");
return 0;
}
The console just halts - I havnt coded anything in C++ in many a year so im definitely rusty - any help?