I'm trying to display the output on the console, but when I run it all I get is "Join processing is starting" and that's it. Is there something that I'm doing wrong?
/ Join customer and transaction files on customer
cout << "Join processing is starting. \n\n\n";
transFile >> custNum_Trans >> productCode;
custFile >> custNum >> custLastName >> custFirstName >> streetNum >> streetName >> city >> state >> zip;
while (!transFile.fail() )
{
while (!custFile.fail () )
{
if (transCustNum == custNum)
{
shipFile << custNum << " " << productCode << " " << custLastName << "," << setw(15) << custFirstName;
}
if (transCustNum > custNum)
break;
transFile >> custNum_Trans >> productCode;
}
custFile >> custNum >> custLastName >> custFirstName >> streetNum >> streetName >> city >> state >> zip;
cout << custNum << " "<< productCode <<" " << custLastName << "," << setw(15) << custFirstName;
cout <<setw(7) << right << streetNum << " "<< streetName <<" " << city << ","<< state << " "<< zip << "\n";
}
cout << "\n\n\nClosing files.\n\n\n";
custFile.close ();
transFile.close ();
shipFile.close ();
cout << "Program has ended. \n\n\n";
}