int main()
{
ifstream infile;
ofstream outfile;
infile.open("y:\\Numbers.txt");
outfile.open("y:\\Results.txt", ios::app);
int bestoption; //used to hold whichever option is the best option for the user
int copiesSold; //used to hold the copies sold value
double sellingPrice; //used to hold the selling price value
double option1; //defines option 1
double option2; //defines option 2
double option3; //defines option 3
if (!infile)
{
cout << ("Cannot open or locate input file.") << endl;
system ("pause");
return 0;
}
infile.ignore(100,'\n');
infile >> copiesSold >> sellingPrice;