Thread: can anyone help me with this ?

  1. #1
    Unregistered
    Guest

    Unhappy can anyone help me with this ?

    in the main i declared :
    char
    s[7][30]={
    "Number one",
    "stuff here"
    };

    then char *t[200];

    strcpy'ed parts of s[] into t (using NEW), that worked fine.

    i pass my function t., copy it into char *A[200];

    i edit A, but when i go back to main and print t,
    no changes are made.

    Can i somehow strcpy A back into t like :

    for(int w=0;A[w]; --???--)
    strcpy(---WHAT can i put here---, A[w]);


    how can i make a pointer to t in the function the copy A into what the pointer is pointing to. NB: t and A are both [200]

  2. #2
    Unregistered
    Guest
    ...or know a better way ?

  3. #3
    Unregistered
    Guest
    if A is [101] then how much do i increment by in the for loop to get to the beginning of the next array ?

Popular pages Recent additions subscribe to a feed