🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Leer toda una línea en una variable

#13824
From: Jesús Carrete Montaña
Date: Sat, 13 Jan 2001 22:03
35 lines
2450 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Como Nostradamus profetiz�, el Sat, 13 Jan 2001 13:42:57 +0100
 Maribel Ferreiro dijo:
> Buenas,
>
> habiendo definido una variable     char *a;
>
> �qu� funci�n puedo usar para que en esa variable ponga el contenido de
>toda una l�nea que se introduce por teclado, en la que puede haber
>varias palabras, y que se acaba al pulsar enter?

	No dices de qu� lenguaje se trata. En C++ , se hace con el getline()
de la clase istream.

Un saludo.
- -- 
 -----------------------------------------------------------------------------
)  .~. ttt      () |/    ,_|-.|                                               (
)  /V\  tu u    () |\L|(||||_||<() @ escomposlinux.org                        (
) // \\ tu ux x () Linux Registered User #158442.                             (
)/(   )\ uuu x  () Public PGP Key avaliable via e-mail and in pgp.rediris.es. (
) ^`~'^     x x () "I use free software."                                     (
 -----------------------------------------------------------------------------
)  http://www.escomposlinux.org/anti-spam   ()   Mant�n limpios tus grupos.   (
 -----------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6YNC+fUtQQKOnZ1IRAgUmAJ46n0Lde+4v/usPnVjXHkmzTnTn8ACfRmvf
YWaWRe25kckXN7+dr3PGEGY=
=KXn0
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrn961k5g.1md.kuantiko@relativistic.homeip.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!29-coru-x7.libre.retevision.ES!not-for-mail
References: <3A604D4F.5B2590D3@wanadoo.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,e1ed57d949d4ac75
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-01-13 15:46:08 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!29-coru-x7.libre.retevision.ES!not-for-mail
From: kuantiko@escomposlinux.org (Jesús Carrete Montaña)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Leer toda una línea en una variable
Date: Sat, 13 Jan 2001 23:03:43 +0100
Lines: 35
Message-ID: <slrn961k5g.1md.kuantiko@relativistic.homeip.net>
References: <3A604D4F.5B2590D3@wanadoo.es>
Reply-To: kuantiko@escomposlinux.org
NNTP-Posting-Host: 29-coru-x7.libre.retevision.es (62.83.54.29)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 979429530 11655587 62.83.54.29 (16 [54696])
User-Agent: slrn/0.9.6.2 (Linux)