Need Some Help With A C++ Project

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RENEE
    New Member
    • Nov 2006
    • 2

    Need Some Help With A C++ Project

    I HAVE STARTED MY PROJECT AND I HAVE GOT STUCK, I AM NOT SURE IF IM DOING THINGS RIGHT, MY PROGRAM NEEDS TO BE ABLE TO ADD NAMES TO A SEQUENTIAL FILE AND BE ABLE TO READ FROM THERE AND IM STUCK, IF AT ALL POSSIBLE CAN I GET SOME HELP..

    HERE IS WHAT I HAVE SO FAR

    # include <iostream>
    # include <iomanip>
    # include <string>
    # include <fstream>

    using namespace std;

    //const int maxNumberofEmpl oyee = 26;
    //void getEmployeeData (ifstream & infile, employeeName employeeList [], int
    number of employee);
    //void printpayReports (ofstream& outfile, employeeName employeesList[], int
    double payRate);

    int main()
    {
    string fName;
    string lName;
    string address;
    int noOfDependents;
    char mstatus;
    double deduction;
    int count;
    count = 0;

    do
    {
    cout << "Enter the First Name: ";
    cin >> fName;
    cout << endl;

    cout << "Enter the last Name:";
    cin >> last name;
    cout << endl;

    cout << "Enter the Address: ";
    cin >> address;
    cout << endl;

    cout << " Enter M(arried) or S(single): ";
    cin >> mstatus;
    cout << endl;

    cout << "How much you want us to deduct for 401k plan ?";
    cin >> deduction;
    cout << endl;

    count = count + 1
    }
    while (count <= 26);

    now here is where I am stuck with where to go next.
Working...