🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #14551

Conversión de formato

#14551
From: manuel
Date: Sun, 29 Oct 2000 20:06
27 lines
1495 bytes
Hola!


  Me hace falta saber c�mo puedo convertir un numero (double)
  a cadena en un determinado formato (hex,bin,oct,...). He probado
  en c++ as�:

   char buf[20];
   strstream str(buf,20);

   str << hex << valor;
   str << oct << valor; 
   ...

  Pero no funciona.
   y en C, con double no puedo usar el %x y dem�s de sprintf.
  y es que no tengo ganas de escribir el c�digo yo mismo.

  �Alguien puede ayudarme?

  gracias.
   

-- 
#
# Powered by: Debian 2.2 Potato (kernel 2.2.17)
#
Technical Details
Message-ID: <ir%K5.626$0C4.19309@m2newsread.uni2.es>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!208.184.7.66!newsfeed.skycache.com!Cidera!m2newsfeed.uni2.es!m2newsread.uni2.es.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,2f047b62d88ce977,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2000-10-29 12:06:50 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!208.184.7.66!newsfeed.skycache.com!Cidera!m2newsfeed.uni2.es!m2newsread.uni2.es.POSTED!not-for-mail
From: manuel <manoloci@wanadoo.es>
Subject: Conversión de formato
Newsgroups: es.comp.os.linux.programacion
Lines: 27
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8Bit
User-Agent: KNode/0.3.2
Message-ID: <ir%K5.626$0C4.19309@m2newsread.uni2.es>
Date: Sun, 29 Oct 2000 20:06:38 GMT
NNTP-Posting-Host: 62.36.191.197
X-Complaints-To: abuse@wanadoo.es
X-Trace: m2newsread.uni2.es 972849998 62.36.191.197 (Sun, 29 Oct 2000 21:06:38 MET)
NNTP-Posting-Date: Sun, 29 Oct 2000 21:06:38 MET
Organization: Servidor Usenet News de Uni2/Wanadoo