I'm in deep trouble again. Sorry to be such a pest... I'm trying to learn to use Arrays. I understand that it's supposed to be the easy
way to program. Thus far, I have:
And when I build, there are no errors... but when I try to run the program, It just displays the first "cout" messages, and thenCode:#include <iostream> #include <fstream> #include <string> #include <ios> #include <stdio.h> #include <stdlib.h> using namespace std; int main () { cout << "You have chosen to play Florida's Mega_Money Lotto," << endl << endl; cout << " Please wait while I read the file " << endl << endl; int x = 0; // initialize 44 vairables from 0 thru 43 int freq [44]; for( int u = 0; u < 44; u++) { freq [u] = 0; } //Opens Temp_Program for reading the file ifstream a_file ( "D:\\LotteryPrograms\\Fla_Mega_Money\\Hist_temp.txt" ); for( int u = 0; u != EOF; u++) { a_file >> x; // reads a number from the file MegaMil freq [ x - 1 ]++; } ofstream b_file ( "D:\\LotteryPrograms\\Fla_Mega_Money\\Loto_Temp_Program.txt" ); //Creates an instance of ofstream, and for( int u = 0; u < 44; u++) { b_file << "The number " << u + 1 << " appears " << freq [ u ] << " Times. " << endl << endl; } cout << "You should have it." << endl << endl; cin.get(); return 0; }
it just sits there (seemingly) doing nothing. The program does not crash. When I stop debugging I get the following errors.
What is a "PDB" file?
Can someone shed a little light on my problem, so I can understand what is happening? ... Thanks ... TherryCode:'Frequencies.exe': Loaded 'C:\Users\Therry.arkashea1-PC\Documents\Visual Studio 2010\Projects\Frequencies\Debug\Frequencies.exe', Symbols loaded. 'Frequencies.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file 'Frequencies.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file 'Frequencies.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file 'Frequencies.exe': Loaded 'C:\Program Files\AVAST Software\Avast\snxhk.dll', Cannot find or open the PDB file 'Frequencies.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded. 'Frequencies.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded. The program '[6604] Frequencies.exe: Native' has exited with code 0 (0x0).



LinkBack URL
About LinkBacks


