المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Why am I crashing at the end of the Program



C++ Programming
09-28-2009, 07:12 AM
My code was compiled correctly, no errors or bugs. but when I run the program by the time I get to the end I get a fatal exception. Here is my code:


// healthcare_statics.cpp : Defines the entry point for the console application.
//
//<span class="code-comment">cout r.firstName;
cout > r.middleName;
cout > r.lastName;
cout > r.ageRes;
cout > r.dob;
cout > r.social;
cout > r.eyeColor;
cout > r.hairColor;
cout > r.height;
cout > r.gnd;
cout s.gContact_F;
cout > s.gContact_L;
cout s.gContact_f;
cout > s.gContact_l;
cout t.Term;
cout > t.monthTerm;
cout MM;
cout > DD;
cout > YYYY;
strcat (MM, "_");
strcat (MM, DD);
strcat (MM, "_");
strcat (MM, YYYY);
strcat (MM, "_mem#_");
strcat (MM, R.lastName);

ofstream output;
output.open("Healthcare_Statistics.txt");
if(output.fail()){
cout