| |||||
Page : 1 2 Page Précédente | |
| Auteur | Sujet : malloc et piles |
Publicité | Posté le 08-10-2004 à 21:47:19 ![]() ![]() |
meumeul Stay Heavy | Message édité par meumeul le 08-10-2004 à 21:49:36 |
Taz bisounours-codeur | p.v = (Nat*) malloc (n * sizeof(Nat));
|
cris56 | oula ca fuis tout ca,
|
meumeul Stay Heavy | "n" c'est un define qui vaut 5 |
cris56 | ta pas trouvé mieux (et surtout plus unique) comme nom pour ta macros ? |
meumeul Stay Heavy |
Message édité par meumeul le 08-10-2004 à 21:55:25 |
meumeul Stay Heavy |
|
meumeul Stay Heavy | c grave de caster inutilement ? |
cris56 | oui, surtout si tu oubli les entetes necessaire |
Publicité | Posté le 08-10-2004 à 21:57:46 ![]() ![]() |
Taz bisounours-codeur | oui, mais surtout ça sert à rien, sauf à rendre illisible une opération de routine comme un malloc ou un memcpy |
meumeul Stay Heavy | Oki ben merci à tous les deux. Je débute |
cris56 | il manque toujours un free dans empiler
|
Taz bisounours-codeur | un petit realloc ça serait sympa |
meumeul Stay Heavy |
Message édité par meumeul le 08-10-2004 à 23:28:56 |
Taz bisounours-codeur | surtout pas en C ! |
Taz bisounours-codeur | je crois que tu ferais bien te renseigner sur l'histoire du C et sur pourquoi le C a été conçu. |
meumeul Stay Heavy |
masklinn í dag viðrar vel til loftárása | j'ai un peu de mal a comprendre: pourquoi tu n'alloues pas dynamiquement un espace mémoire à chaque empilage? (et désalloue au dépilage)
Message édité par masklinn le 08-10-2004 à 23:37:16 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Taz bisounours-codeur | pour justement ne pas avoir à le faire à chaque fois. |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 08-10-2004 à 23:40:39 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Taz bisounours-codeur | je vois pas le rapport... |
Taz bisounours-codeur |
aucun intérêt sauf dégrader la lisibilité, déjà mauvaise avec des membres '.v' et '.h' |
cris56 | et h doit etre un size_t |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 08-10-2004 à 23:44:46 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
cris56 | ben non, h est le curseur
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
cris56 | ya stack et queue |
Taz bisounours-codeur | il manque effectivement un membre capacité |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
cris56 | oui |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Taz bisounours-codeur | en français, c'est Pile et File et tout le monde le comprends |
cris56 | c'est ce que j'avais dit au debut, ca semblais pas etre compris ?? |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 09-10-2004 à 00:32:34 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
cris56 | ca veut tout dire au contraire, tu vois tout de suite quel genre de probleme tu va pouvoir modeliser |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Sve@r |
--------------- Vous ne pouvez pas apporter la prospérité au pauvre en la retirant au riche. |
Lam's Profil: bas. |
|
meumeul Stay Heavy | je sais que c pas une "vraie" pile, c juste l'implentation
|
Publicité | Posté le ![]() ![]() |
Page : 1 2 Page Précédente |

| Sujets relatifs | |
|---|---|
| Fonction et malloc local | Pourquoi caster un malloc |
| [c] malloc qui deconne | malloc, free et structures |
| malloc qui n'alloue pas le bon nombre d'octet... | Pb de malloc : ça marche , mais ça marche pas ... :-( |
| sujet: pb de malloc? malloc(strlen(getpwuid(uid)->p w_name)) ? c mal ? | [C++] Malloc et Free ... truc que je pige pas |
| [C/C++] Malloc et occupation mémoire sous Win2000 | malloc() |
| Plus de sujets relatifs à : malloc et piles | |





