C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

casting short* [4] en short[4][64] ?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French)
View previous topic :: View next topic  
Author Message
Bernie
Guest





PostPosted: Tue May 24, 2005 4:50 pm    Post subject: casting short* [4] en short[4][64] ? Reply with quote



Question déjà posé il y a env 2mois et j'ai malheureusement perdu les
réponses au combien lumineuses de Pierre Maurette et James Kanze.

il s'agissait de :
1) soit une variable short* toto[4],
avec toto[0] = malloc de tout le nécessaire 4*64...
et toto[i] = toto[0]+i*64;

2) soit une fonction f déclarée par : void f(short param[4][64]);

comment caster "proprement" la variable toto pour la passer à f ?

désolé pour la pollution et merci d'avance
Back to top
Fabien LE LEZ
Guest





PostPosted: Tue May 24, 2005 4:55 pm    Post subject: Re: casting short* [4] en short[4][64] ? Reply with quote



On Tue, 24 May 2005 18:50:17 +0200, Bernie <a.buisson (AT) nextamp (DOT) com>:

Quote:
Question déjà posé il y a env 2mois et j'ai malheureusement perdu les
réponses au

ô

Quote:
combien lumineuses de Pierre Maurette et James Kanze.

Va sur <http://www.google.com/advanced_group_search?hl=fr>.
Dans "tous les mots suivants", tape "short".
Dans "Rechercher uniquement dans le groupe suivant", tape
"fr.comp.lang.c++".
Tu devrais tout retrouver sans aucun problème.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.