hi guys!!

i'm just new in programing and i had a problem in c++
my prof give me a task...
i need to make a program that looks like a casher system or restaurant system...

i don't know howto start it.....


so please HELP me!!!!!
:((

My file containts :
cocacola 5 5.75
redbeer 5 5.75

void drink(char*Filename){

ifstream file;
file.open(Filename);


struct drink
{
	char name[20];
	int num;
	double cost;
}drink;

struct drink d[2];

for(int i=0; i<2; i++)
{
	file>>d[i].name>>d[i].num>>d[i].cost;
	cout<<endl<<"The machine has: "<<d[i].num<<" "<<d[i].name<<endl<<"It cost: "<<d[i].cost<<endl;
}

}

what about the change??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.