AQUI ESTA EL COMIENZO DE LA IDEA!!!!!
he empezado a hacer esto.... se que no es mucho , que me falta pero me cuesta mucho esta materia (... encima los profesores dejan bastante que desear, )....
TENGO VARIOS PROBLEMAS:
1- SE CREAR UNA PLANILLA CON X POR X CELDAS ... PERO NO SE COMO CREARLAS DE MANERA QUE QUEDEN IGUAL A EXEL ENTENDES? OSEA QUE CADA CELDA TENGA VALOR 0 AL INICIO (PARA QUE YO DESPUES PUEDA TRABAJAR INDEP EN ELLAS)Y NO IR CARGANDO VALOR POR VALOR EN LA MATRIZ.... PARA COMENZAR CREO QUE BASTA NO?
JIJIJI AGRADEZCO INTERES
EMILIANO
#include <stdio.h>
#include <stdlib.h>
#define n_f 5
#define n_c 5
void creacion(int n, char iden);
void mostrar(int n, char iden);
/*void eliminación();*/
/*void borrar();*/
void ordenar_f(void);
/*void ordenar_c(int n, int res);
/*void suma();*/
/*void promedio(int n);
void maximo(int n);
void minimo(int n);
/*void limpiar();
void fin();*/
int matriz[n_f][n_c],nf,nc;
int i,j,n,z;
int main(void)
{
char opcion;
do
{
printf ("ºººº MENU DE OPCIONES PARA PLANILLA EXELººº\n\n\n");
printf ("1- Crear Planilla\n");
printf ("2- Mostrar\n");
printf ("3- Eliminar\n");
printf ("4- Ordenar\n");
printf ("5- Sumar\n");
printf ("6- Promedio\n");
printf ("7- Max y Min\n");
printf ("8- Limpiar Planilla\n");
printf ("9- Salir del sistema\n");
scanf ("%d", & opcion);
switch(opcion)
{
case 1 :printf (" Ingrese el Nª de Filas Y Columnas");
printf (" INGRESE Nº DE FILAS");
scanf ("%d", &nf);
printf ("INGRESE EL Nº DE COLUMNAS");
scanf ("%d", &nc);
creacion(0,'A');
break;
case 2 :printf (" La planilla capturada es:");
mostrar (0,'A');
break;
case '3' :printf (" Eliminar planilla");
break;
case '4' :printf (" ººººLA PLANILLA CAPTURADA ES:\nºººº");
mostrar(0,'A');
printf("\n");
/*ordenar_f(0,7);
printf("\n");
ordenar_c (0,6);*/
break;
case '5': printf(" Sumar desde / hassta");
break;
case '6': printf(" Promedio desde /hasta");/*no es promedio desde hasta sino promedio gral*/
/*promedio(0);*/
break;
case '7' : printf("Maximo y minimo desde / hasta en:\n");/*no es desde hasta sino maximo y min gral*/
/* minimo(0);
maximo(0);*/
break;
case '8' :printf("limpiar planilla si/no :\n");
break;
}
}while (opcion!='8');
}
void creacion(int n, char iden)
{
int i,j;
printf ("\n\tMatriz %c:\n ",iden);
printf ("\n");
for (i=0;i<nf;i++)
for (j=0;j<nc;j++)
{
printf ("\tElemento [%d][%d]: ",i+1,j+1);
scanf ("%d",&matriz[i][j]);
}
printf("\n\n");
}
void mostrar (int n, char iden)
{
int i,j;
printf ("\tMatriz %c:\n",iden);
printf ("\n");
for (i=0;i<nf;i++)
{
for (j=0;j<nc;j++)
printf (" %4d\t", matriz[i][j]);
printf ("\n");
}
}
ME FALTA LA FUNCION DE ORDENAR ETC, ETC