I need help beginning this program, I am in intro to c++ course. I need help with how to begin the program. I have done some thing already. The program is:
- define class cust(I already did this part)
- create an array of cust (size 10)to hole the data of the class.
- read the date from a file(everything from the class)
- call a function print cust(this function will print all the data in tabular format)....first, last, state, sales history(0,1,2), units
Here is the code:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
class cust{
public:
string first;
string last;
string state;
double arr[3]; //Sales history for three years
int units;
int total;
} ;