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?
Configuration: Linux Mandriva Firefox 2.0.0.13
A voir également:
- Problème d'allocation
- Bad allocation open office - Forum LibreOffice / OpenOffice
- Allocation d'espace steam ✓ - Forum Jeux PC
- Formatage taille d'unité d'allocation ✓ - Forum Windows
- Caisse d'allocation familiales mon compte - Télécharger - Banque & Budget
- Taille d'unité allocation formatage - Forum Windows