DB wrote:
> Hallo,
>
> hab ein zweidimensionales array von einer Struktur
>
1 | > typedef struct test
|
2 | > {
|
3 | > float wert;
|
4 | > int timestamp;
|
5 | > }TEST;
|
6 | >
|
7 | > TEST array[x][y];
|
8 | >
|
>
> Jetzt will ich das ganze mit pointer an eine Unterfunktion übergeben und
> in dieser bestimmte Werte des Arrays ändern.
> Wie mach ich das?
1 | typedef struct
|
2 | {
|
3 | float wert;
|
4 | int timestamp;
|
5 | } test_t;
|
6 |
|
7 | test_t array[10][10];
|
8 |
|
9 | void foo (test_t a[][10])
|
10 | {
|
11 | a[1][2] = 0;
|
12 | }
|
> Stichwort Übergabe von arrays
und Stichwort code convention ;-)