PROGRAMA RFC
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
char RFC[50],paterno[50],materno[50],apellido[50],dia[50],mes[50],nombre[50],anio[50];
int longitud;
int main()
{
cout << "OPTENER TU RFC " << endl;
cout << "Ingresar tu apellido paterno "<<endl;
gets(paterno);
cout <<" Ingresa aoellido materno "<<endl;
gets(materno);
cout << "ingresa nombre"<<endl;
gets(nombre);
cout <<" Ingresar tu dia de nacimiento "<<endl;
gets(dia);
cout <<" Ingresar tu mes de nacimiento "<<endl;
gets(mes);
cout <<" Ingresar anio de nacimiento "<<endl;
gets(anio);
strupr(paterno);
strupr(materno);
strupr(nombre);
RFC[0]=paterno[0];
RFC[1]=paterno[1];
RFC[2]=materno[0];
RFC[3]=nombre[0];
RFC[4]=anio[2];
RFC[5]=anio[3];
RFC[6]=mes[0];
RFC[7]=mes[1];
RFC[8]=dia[0];
RFC[9]=dia[1];
cout << " *RFC* "<<RFC<<endl;
return 0;
}
No hay comentarios.:
Publicar un comentario