This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main() | |
| { | |
| int i, n; | |
| printf("\nQuantos numeros?\n"); | |
| scanf("%d", &n); | |
| double *ptr = (double *) malloc(n*sizeof(double)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // apenas os "protótipos" das funções | |
| #ifndef MATRIZ_TOTAL_MAIS_NOVA | |
| #define MATRIZ_TOTAL_MAIS_NOVA | |
| void leitura_txt(int *linhas, int *colunas, float matriz[][20]); | |
| void imprime(int *linhas, int *colunas, float matriz[][20]); | |
| void crescente(); | |
| void decrescente(); | |
| void maior(); | |
| void menor(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // arquivo *.c da Biblioteca | |
| #include<stdio.h> | |
| #include <string.h> // utilizada na função leitura_txt() | |
| #include <stdlib.h> | |
| void leitura_txt(int *linhas, int *colunas, float matriz[][20]) | |
| { | |
| FILE *arq; |