I have a problem when i use a structure in a function....
struct task
{
char task_descrip[50];
cont_info contractors;
material_info materials;
};
is invoked in :
void add_task(task& obj){
char ch;
cout<<"\n\n Please Enter the Following Information:";
for(int i=0; i<100; i++){
cout<<"\n\n Enter a brief task description: ";
cin.get(obj[i].task_descrip);
cin.ignore(100,'\n');
which is where i get an error, saying...
In function `void add_task(task &)':
: no match for `task &[int &]'
what am i doing wrong here?
Please help.....