thanks pal....
now i use the for loop to copy the sturcture n it works perfectly!!
really appreciate all ur help....
^^
Type: Posts; User: lcheehan
thanks pal....
now i use the for loop to copy the sturcture n it works perfectly!!
really appreciate all ur help....
^^
is this information enough???
i think this should be sufficient to do the debugging rite???
struct info{
int sale_no;
char name[50];
char ic[15];
char seat_no[100];
int date;
int time;
}customer1[20],customer2[20],customer3[20],customer4[20],cus_temp[20];
i tried struct1 = struct2..
but devcpp tell me tat incompatible type assignment...
n it wouldn't let me compile the program...
so y this happen??
how should i solve it plz~~~
arg.............
now tat part is working perfectly....
but i encounter another prob....
is it possible for me to copy a structure to another??
i declared both structure as a same structure.....
...
printf("Which sale you wanna cancel?");
scanf("%d", &cancel);
for(i=0;i<20;i++)
{
if(cancel==customer[i].sale_no)
{
customer[i].sale_no=9999;
...
i use a structure... name customer...
one of its member is seat_no...
y can't i assign anything into the structure member??
code is as shown: customer[i].seat_no="";
no matter wat i put...