Skip to content

Instantly share code, notes, and snippets.

@washingtonsoares
Created November 20, 2014 22:28
Show Gist options
  • Save washingtonsoares/702597c7dc213065e806 to your computer and use it in GitHub Desktop.
Save washingtonsoares/702597c7dc213065e806 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
typedef struct info{
int valor;
}inf;
typedef struct vetor{
struct vetor vet[inf.valor];
} Vet;
int inicializa(Vet *v,int tam){
if(!v) return 0;
int *p;
p = (int *)malloc(size(int)*tam);
if(!p) return 0;
v->vet[p];
return 1;
}
int criaVetores(int n,int t){
int i;
Vet vett;
for(i=0;i < n,i++){
inicializa(&vett,t);
for(j=0;j < t;j++){
vetR[j] = rand()%(0*i);
}
}
}
int main (){
int n=0,t=0;
printf("digite o numero de vetores");
scanf("%d",&n);
printf("digite o tamanho de cada vetor");
scanf("%d",&t);
criaVetores(n,t);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment