View Single Post
Join Date: Dec 2008
Posts: 20
Reputation: acperson is an unknown quantity at this point 
Solved Threads: 0
acperson acperson is offline Offline
Newbie Poster

Re: Debug Assertion Failed! Error - how do I fix this?

 
0
  #6
Dec 4th, 2008
It happens the instant the program begins to run. The program outputs the first cout line and then the error occurs before the next line. The lines involved are:

  1. cout<<"This program seaches Employee data to output a name and salary."<<endl;
  2. bool lnfound = false; //last not found boolean
  3. char response; //holds user choice for continue search
  4. string first; //holds first name user input
  5. string last; //holds last name user input
  6. string salary = 0; //holds salary
  7. cout<<"Beginning File check."<<endl;
Reply With Quote