Article View: fr.comp.os.ms-windows.programmation
Article #97Re: Que peux-t-on mettre dans une DLL ?
From: James Kanze
Date: Thu, 30 Jul 2009 08:17
Date: Thu, 30 Jul 2009 08:17
25 lines
2695 bytes
2695 bytes
On Jul 30, 12:27 am, Falk Tannhäuser <tannhauser86549s...@free.fr>
wrote:
> GCC et Emacs sont suffisants comme outils :-) Un petit programme comme
> celui-ci fait l'affaire :
[...]
> // Find global character statistics and key length
> std::map<unsigned char, unsigned> stat;
Seulement curiosité, mais est-ce qu'il y a une raison pour
std::map, plutôt que :
std::vector< unsigned > stat( UCHAR_MAX + 1 ) :
(ce que j'aurais fait). En fin de compte, ton « indice », c'est
bien un petit entier non-négatif, ce qui correspond à
l'utilisation classique de vector (voire même un tableau de type
C :
unsigned stat[ UCHAR_MAX + 1 ] = {} ;
. Ou un boost::array, si tu l'as.)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Technical Details
Message-ID:
<ea8cbbe2-5b3a-4101-8bb3-95478d89aebc@26g2000yqk.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!26g2000yqk.googlegroups.com!not-for-mailReferences:
<4a414044$0$27809$426a74cc@news.free.fr> <4a41dfa0$0$12660$ba4acef3@news.orange.fr> <4a41e381$0$17074$ba4acef3@news.orange.fr> <h1tl7d$h5o$1@shakotay.alphanet.ch> <4a473818$0$12615$ba4acef3@news.orange.fr> <h28qcu$r8p$1@shakotay.alphanet.ch> <4a48874c$0$12636$ba4acef3@news.orange.fr> <4a66b6b5$0$414$426a34cc@news.free.fr> <4a670f87$0$12628$ba4acef3@news.orange.fr> <4a70ccca$0$413$426a74cc@news.free.fr>Show Full Headers
Complete Article Headers
X-Google-Thread: 5a994809eb,6c71bd8d893a4df6 X-Google-Attributes: gid5a994809eb,public,usenet X-Google-NewGroupId: yes X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!26g2000yqk.googlegroups.com!not-for-mail From: James Kanze <james.kanze@gmail.com> Newsgroups: fr.comp.os.ms-windows.programmation,fr.comp.lang.c++ Subject: Re: Que peux-t-on mettre dans une DLL ? Date: Thu, 30 Jul 2009 01:17:28 -0700 (PDT) Organization: http://groups.google.com Lines: 25 Message-ID: <ea8cbbe2-5b3a-4101-8bb3-95478d89aebc@26g2000yqk.googlegroups.com> References: <4a414044$0$27809$426a74cc@news.free.fr> <4a41dfa0$0$12660$ba4acef3@news.orange.fr> <4a41e381$0$17074$ba4acef3@news.orange.fr> <h1tl7d$h5o$1@shakotay.alphanet.ch> <4a473818$0$12615$ba4acef3@news.orange.fr> <h28qcu$r8p$1@shakotay.alphanet.ch> <4a48874c$0$12636$ba4acef3@news.orange.fr> <4a66b6b5$0$414$426a34cc@news.free.fr> <4a670f87$0$12628$ba4acef3@news.orange.fr> <4a70ccca$0$413$426a74cc@news.free.fr> NNTP-Posting-Host: 62.160.54.162 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1248941848 24488 127.0.0.1 (30 Jul 2009 08:17:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 30 Jul 2009 08:17:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 26g2000yqk.googlegroups.com; posting-host=62.160.54.162; posting-account=1W_PtwoAAAA1QoMcl2Z5P6j-DNc8HR3W User-Agent: G2/1.0 X-HTTP-Via: 1.1 paisc003:8181 (IWSS) X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10,gzip(gfe),gzip(gfe)