27.04.2020 Views

Programación en C++

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

METODOS DE CIN EN C++

La clase cin guarda en una variable lo que el usuario ingrese desde el input

estándar y tiene varios métodos para lograr la lectura y guardarlo. Ese dato

puede ser procesado para ser almacenado en los diferentes tipos de datos,

así como: int, float, char, string o bool.

Los métodos mas utilizados son:

cin.get( ) cin.ignore( ) cin.getline( )

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!