I am STUCK! I have searched and searched and searched through every example and I can not find anything that has helped me! I'm using Dev-C++. The program that I am trying to write is broken down into sections. The user will choose an option from a menu and lead the user to that particular section. I am completely stuck on option 2 and 3 (I am working by section and saving the hardest for last lol!). So for section 3, I need the user to enter a Job #, have the program search my file for that job number, and display the line that contains that job number, and the seven lines that follow that job number. For option 2 I need to be able to update a particular job multiple times as it progresses through our processes, but I will repost that when I finish option 3 (easy does it mister lol!). Any help is greatly appreciated! Blow is my code, and a sample of what my file will look like.
else if (menuoption == 5)
{
cout<<"Are You Sure You Would Like to Exit? (Y or N) : ";
cin>>me;
}
else
{
cout<<"You Have Entered A Wrong Command, Please Try Again ";
}
cout<<"Have A Great Day!";
return 0;
}
Excerpt of my File
Job #30326
Account : JMD
Description : Lady's Platinum Band
Wax :
Cast :
Clean Up :
Set :
Completed :
Job #30327
Account : Union
Description : Gents Gold Ring
Wax :
Cast :
Clean Up :
Set :
Completed :
Job #30328
Account : Dynasty
Description : Various Repairs
Wax :
Cast :
Clean Up :
Set :
Completed :
Job #30329
Account : Union
Description : 18KT White Gold Diamond Band
Wax :
Cast :
Clean Up :
Set :
Completed :