-1
Ich möchte so machen:wie deklarieren und verwenden Array 2 Dimension
uint8_t **t;
int i;
int m[100];
int i;
t = calloc(n, sizeof(uint8*));
...
/* m is initialized in other function */
...
for (i=0;i<n;i++)
{
/* m[i] is calculated here */
*t = calloc(1, sizeof(uint8)*m[i]);
}
ich dieses Verhalten
byte [][]t;
int i;
int[] m = new int [100];
...
/* m is initialized in other function */
...
t = new byte[n];
for (i=0;i<n;i++)
{
/* m[i] is calculated here */
t[i] = new byte[m[i]];
}
ist es richtig zu tun, um konvertieren möchten, dass
kurze Antwort, keine – Steve
wie den Samething wie C-Quellcode zu tun, sondern mit C#? – developer
't = neues Byte [n] [];'? – alk