Problème d'allocation
firk
-
firk -
firk -
Bonjour,
J'ai une fonction avec les paramètres suivants : colocation(int R[],int L,char *statut1,char *statut2)
Dans ma fonction main(), j'ai réglé le problème pour les chaînes de caractères, mais pas pour les 2 autres paramètres :
j'ai essayé qqch du style :
main()
{ int i;int L; int *R;
char *status[6];char *statut1;char *statut2;
statut1=(char*)malloc(6*(sizeof(char)));
statut2=(char*)malloc(6*(sizeof(char)));
L=(int)malloc(10000*(sizeof(int)));
R[0]=(int) malloc(10000*(sizeof(int)));
R[1]= (int)malloc(10000*(sizeof(int)));
Pouvez-vous m'aider, svp?
J'ai une fonction avec les paramètres suivants : colocation(int R[],int L,char *statut1,char *statut2)
Dans ma fonction main(), j'ai réglé le problème pour les chaînes de caractères, mais pas pour les 2 autres paramètres :
j'ai essayé qqch du style :
main()
{ int i;int L; int *R;
char *status[6];char *statut1;char *statut2;
statut1=(char*)malloc(6*(sizeof(char)));
statut2=(char*)malloc(6*(sizeof(char)));
L=(int)malloc(10000*(sizeof(int)));
R[0]=(int) malloc(10000*(sizeof(int)));
R[1]= (int)malloc(10000*(sizeof(int)));
Pouvez-vous m'aider, svp?
A voir également:
- Problème d'allocation
- Taille d'allocation / Partition - Forum Disque dur / SSD
- Steam ram allocation ✓ - Forum jeux en ligne
- Allocation dynamique d'une matrice : en C - Forum C
- Allocation après radiation Pôle Emploi - Forum Loisirs / Divertissements
- Mémoire vidéo insuffisante lors de la tentative d’allocation - Windows 11