Ejemplo n.º 1
0
/* Metodos para mantenimiento */
void listar_usuarios(){
	string registro;
	ifstream in("db/usuarios.db");
	cout << "+----------+--------------------+" << endl;
	cout << "| CODIGO   | NOMBRE COMPLETO    |" << endl;
	cout << "+----------+--------------------+" << endl;
	while (getline(in,registro)){	
		Usuario u;
		u.decodificar(registro);
		u.iniciar();
		u.to_string();
	}
	cout << "+----------+--------------------+" << endl;
};