Hi! Appreciate some help in this... Does anyone know what's wrong? I'm trying to get the program to read a text file I have on my desktop and do a word count. However, when I run the program, it prompts me to key in the path of the file and I did so, and I receive an error message:
'Lab 9.exe': Loaded 'C:\Users\Lim\Documents\Visual Studio 2010\Projects\Lab 9\Lab 9\Debug\Lab 9.exe', Symbols loaded.
'Lab 9.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'Lab 9.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'Lab 9.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'Lab 9.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'Lab 9.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
The program '[4512] Lab 9.exe: Native' has exited with code 0 (0x0).
You are trying to use getInputFileName() before it has been declared. put a function declaration for getInputFileName above main as you have done with numCharsInFile.