Nov 6, 2012 at 3:41pm UTC
Im having trouble outputting the text from my text file into the debugging stage in my program
here is my codes so far
/* Purchase Project
created by C. Shumate
November 5, 2012 */
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
using namespace std;
int main()
{
ifstream inputFile;
cout << "Computer Store" << endl;
cout << "Created by Cedric Shumate" << endl;
cout <<"Item Item Purchase" << endl;
cout <<"Number Description Quantity Price Amount"<< endl;
inputFile.open("Purchase.txt");
cout << "Item count: " << endl;
cout <<"Purchase total" << endl;
inputFile.close();
system("pause");
return 0;
}
Nov 6, 2012 at 4:18pm UTC
ok i took the #include <string> out
now what?
Nov 6, 2012 at 4:21pm UTC
actually, i said that you're not using string
because you should use them. that's why i call it a clue
Nov 6, 2012 at 4:28pm UTC
oh! ok i get it now, but the main thing i want to do is get the text from my file onto my solution when i debug my code
thats where im having trouble, ive read my book but its not giving much insight