Good Night, because the next thing is that I do not know how to do to be able to modify the data that is stored in a vector. In my program I ask for the data of workers (Name and Cedula). Then in the end what I want is to Achieve Modify, from example I ask the cedula, and that allows me to change the name or cedula of that person. The code is as follows: (the part that is necessary). How can you perform logical dichar?
Here I Request the Data
for (i = 0; i < 2; i++)
{
system("cls");
total_mensual[i] = 0;
sueldo_mensual[i] = 0;
seguro[i] = 0;
bono_mensual[i] = 0;
sueldo_semana_total[i] = 0;
cout<<"< = = = = = F A B R I C A de F O R R O S para V E H I C U L O S = = = = = >";
cout<<"\n\nIngrese el Nombre del Trabajador: "<<i<<". ";
cin>>nombre[i];
cout<<"\nCedula del Trabajador: ";
cin>>cedula[i];
Here as part of a Menu and an Option is where I want to allow me to Modify the Data of a Worker from a given cedula
case 3:
system("cls");
cout<<"< = = = = = F A B R I C A de F O R R O S para V E H I C U L O S = = = = = >";
cout<<"\n\nOpcion 3: Modificar Datos de los Trabajadores";
cout<<"\n\nIngrese el Numero de Cedula: ";
cin>>modificar;
for (i = 0 ; i < 3 ; i++)
{
if (modificar == cedula[i])
{
cout<<"\n\n------------------------------------";
cout<<"\n\nNombre del Trabajador: "<<nombre[i];
cout<<"\n\nCedula: "<<cedula[i];
cout<<"\n\n------------------------------------";
}
}
break;