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