dynimically using pointer

Posted by gcc on Stack Overflow See other posts from Stack Overflow or by gcc
Published on 2010-05-06T00:53:36Z Indexed on 2010/05/06 0:58 UTC
Read the original article Hit count: 176

Filed under:
|

Input:

3 1 2 n 4 5 d 1 21 30 x

Output:

2: 4 5 21 30

Input:

3 j 3 34 6 22 10 51 n 1 2 j 1 3 4 5 n 6 7 x

Output:

1: 1 2 3 4 5
2: 6 7
3: 34 6 22 10 51 'j': (Jump to array# command)
'd': (Delete array# command)
'n': (Next array command)
'x': (Exit command)
#: (Integer number)

int num_arrays; /* maximum number of arrays */
int **arrays; /* array of array pointers */
int *l_arrays; /* actual lengths of arrays */
int *c_arrays; /* actual capacities of arrays */

how can we write that code

© Stack Overflow or respective owner

Related posts about c

    Related posts about homework