<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
tengo un problema con este codigo la verdad quiero imprimir los datos y luego ordenarlos a traves de la forma de burbuja<br><br><br># include <stdio.h><br># include <conio.h><br># include <string.h><br># include <ctype.h><br># include <iostream.h><br><br>const int dato=2;<br><br>struct ingreso<br>{<br><br>char nombre[dato][15];<br><br>char apellido[dato][15];<br><br>int dia[5],mes[5],anio[5];<br><br><br>char estadoCivil[dato][15];<br><br>int sueldo[dato][15];<br><br>};<br><br>ingreso empleado[100];<br><br><br>void main()<br>{//inicio del programa<br><br>int i,j,temp,a,m,d;<br><br>char auxnom;<br>char auxape[dato][15];<br>int auxdia[5],auxmes[5],auxanio[5];<br>char auxextcivil[dato][15];<br><br><br><br>printf("Ingrese %d Empleados\n",dato);<br><br>for(i=0;i<dato;i++)<br>{//inicio del for<br>  for(j=0;j<1;j++)<br>  {<br>    printf("\nIngrese Nombre del %d empleado\n",i+1);<br>    scanf("%s",&empleado[i].nombre[i][j]);<br><br>    printf("Ingrese Apellido\n");<br>    scanf("%s",&empleado[i].apellido[i][j]);<br><br>    printf("Ingrese Fecha De Nacimiento Dia\n");<br>    scanf("%d",&empleado[i].dia[i]);<br><br><br>   printf("Ingrese Fecha De Nacimiento Mes\n");<br>   scanf("%d",&empleado[i].mes[i]);<br><br><br>   printf("Ingrese Fecha De Nacimiento Anio\n");<br>   scanf("%d",&empleado[i].anio[i]);<br><br>   printf("Ingrese Estado Civil\n");<br>   scanf("%s",&empleado[i].estadoCivil[i][j]);<br><br>   printf("Ingrese Sueldo\n");<br>   scanf("%s",&empleado[i].sueldo[i][j]);<br>  }<br>}//fin del for<br><br><br>clrscr();<br><br>    //___________________________imprimir datos_______________________________<br>   for (i=0; i<dato; i++ )<br>   {<br><br>       printf("_____________________________________");<br>       printf("\nNombre  del %d empleado %s " ,(i+1),empleado[i].nombre[i]);<br>       printf("\nApellido  del %d empleado %s ",(i+1),empleado[i].apellido[i]);<br>       printf("\nFecha De Nacimiento %d empleado ",i+1);<br>       printf("\n  Dia %d ",empleado[i].dia[i]);<br>       printf("\n  Mes %d ",empleado[i].mes[i]);<br>       printf("\n  Aņo %d",empleado[i].anio[i]);<br>       printf("\nEstado Civil del %d empleado %s",i+1,empleado[i].estadoCivil[i]);<br>       printf("\nSueldo %d del empleado %s\n\n",i+1,empleado[i].sueldo[i]);<br>    <br>   }<br><br><br>  for(i=0;i<dato-1;i++)<br>   for(j=i+1;j<dato;j++)<br>   if(empleado[i].sueldo[i]<empleado[i].sueldo[j])<br>   {<br>   <br>   strcpy(auxnom,empleado.nombre);<br><br><br>   }<br>  <br><br><br>   //strcpy(autos[aj-1].marca,autos[aj].marca);<br>//strcpy(auxab,autos[aj-1].marca);<br>//strcpy(autos[aj].marca,auxab);<br><br><br><br>}//fin del progrma<br>                                     <br /><hr />Connect to the next generation of MSN Messenger   <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>