cin.get(obj[i].task_descrip,50,'\n');
cin.ignore(100,'\n');
obj is an object for a strucutre, containing the member task_descrip.
cin.get(obj[i].task_descrip,50,'\n');
cin.ignore(100,'\n');
obj is an object for a strucutre, containing the member task_descrip.
by the way this is in a function
void add_task(task *obj)
>is this statement legal??
You might want to ask your lawyer if there are any laws preventing you from using the . operator on a pointer.
You should have no problems if you are living in a free country.
However, your compiler will not accept it.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.