Search:

Type: Posts; User: lcheehan

Search: Search took 0.05 seconds.

  1. thanks pal.... now i use the for loop to copy...

    thanks pal....
    now i use the for loop to copy the sturcture n it works perfectly!!
    really appreciate all ur help....
    ^^
  2. is this information enough??? i think this...

    is this information enough???
    i think this should be sufficient to do the debugging rite???
  3. struct info{ int sale_no; char...

    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];
  4. i tried struct1 = struct2.. but devcpp tell me...

    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~~~
  5. arg............. now tat part is working...

    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.....
    ...
  6. printf("Which sale you wanna cancel?"); ...

    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;
    ...
  7. Can't assign string to the string variable inside structure...

    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...
Results 1 to 7 of 7