Would really appreciate help with a project

In this project, i need to define a struct (correctly done in here i believe), and pass in at least the functions getData, getMenu, and printCheck for a diner situation (pick off the menu, how many, check calculations, etc). It also needs to read in a infile with all the choices and prices (included). My instructor gave me some of the code, but I screwed up somewhere and nothing works. I'm not asking for stright up code (but wouldn't mind if needed), moreso just where/how i screwed up.

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

using namespace std;

const int not = 8;

struct menuItemType
{
string menuItem;
double menuPrice;

};

void getData(ifstream& inFile, menuItemType mList[], int listSize);
void showMenu(menuItemType mList[], int listSize);
void printCheck(menuItemType mList[], int listSize, int cList, int cListLength);
void makeSelection(menuItemType mList[], int listSize, int cList[], int& cListLength);
bool isItemSelected (int cList[], int cListLength, int itemNo);

int Main()
{
menuItemType menuList[not];
int choiceList[not];
int choiceListLength;

ifstream infile;

cout << fixed << showpoint << setprecision(2);

infile.open("C:\\Users\\Jeff\\Desktop\\CS 121 stuff\\homework 647 txt");

getData(infile, menuList, not);
showMenu(menuList, not);
makeSelection(menuList, not, choiceList, choiceListLength);
printCheck(menuList, not, choiceList[not], choiceListLength);

return 0;
}


void showMenu(menuItemType mList[], int listSize)
{
cout << "Welcome to Johnny's Resturant" << endl;
cout << "----Today's Menu----" << endl;

for (int i=0; i<8; i++)
cout << i+1 << ": " << left << setw(15) << mList[i].menuItem << right << " $" << mList[i].menuPrice << endl;


---i stopped after here due to, once again, screwing up and nothing working anywhere.

/*
Plain Egg $1.45
Bacon and Egg $2.45
Muffin $0.99
French Toast $1.99
Fruit Basket $2.49
Cereal $0.69
Coffee $0.50
Tea $0.75
*/ - input file
These three function has to be complety written .

1
2
3
 getData(infile, menuList, not);
				makeSelection(menuList, not, choiceList, choiceListLength);
				printCheck(menuList, not, choiceList[not], choiceListLength);
Topic archived. No new replies allowed.