06.05.2013 Views

CONTENIDO DE LA LECCIÓN 8

CONTENIDO DE LA LECCIÓN 8

CONTENIDO DE LA LECCIÓN 8

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MIGUEL Á. TOLEDO MARTÍNEZ<br />

/* El siguiente programa: GETSFGETS.CPP, ilustra el uso de gets() y fgets() */<br />

#include // Para cout<br />

#include // Para gets() y fgets()<br />

const int TAMANO = 31; // Define el tamaño del arreglo<br />

void main(void)<br />

{<br />

// Define arreglos de cadenas<br />

char nombre[TAMANO] = "\0";<br />

char direccion[TAMANO] = "\0";<br />

// Instrucción y lectura de datos del usuario<br />

cout

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

Saved successfully!

Ooh no, something went wrong!