Código
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define TAM 100 // Prototipos de las funciones int leeIVector(int *v, int max); int leeDVector(double *v, int max); int leeIVector2(int *v, int max); int leeDVector2(double *v, int max); void escIVector(int *v, int l); void escDVector(double *res,double *ress, int t); void vertices(double *v, double *res, int t); void vertices2(double *v, double *ress, int t); //Funcion main int main() { int l, v[100]; double vd[100]; double res[100]; double ress[100]; double x; // Hacemos los mismo con el de reales l = leeDVector2(vd, 100); vertices(vd,res, l); vertices2(vd,ress,1); escDVector(res,ress,1); // Nada puede ir mal } //Funcion para introducir datos int leeDVector2(double *v, int max) { char aux[200]; int t; return t; } //Funcion calculo vertices void vertices(double *v, double *res, int t){ int i; double angulo; double alpha; alpha=360/ t; double radian; radian=180/3.1416; for(i=0;i<t; i=i+1){ angulo=angulo +alpha; } } void vertices2(double *v, double *ress, int t){ int i; double angulo; double alpha; alpha=360/ t; double radian; radian=180/3.1416; for(i=0;i<t; i=i+1){ angulo=angulo +alpha; } } //Imprimir void escDVector(double *res,double *ress, int t) { int i; for (i = 0; i < t; i++) }