This file contains 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> | |
#include <string.h> | |
void print_char_vector(char * array) | |
{ | |
int i; | |
printf("\n"); | |
for (i = 0; i < strlen(array); ++i) printf("\%c",array[i]); | |
} |
This file contains 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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
char * create_char_vector(int i) | |
{ | |
char *vector; | |
vector = (char *) calloc(i + 1,sizeof(char *)); | |
vector[i+1] = 0; |
This file contains 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> | |
#include <time.h> | |
int ** allocate_memory(int w, int k) | |
{ | |
int **tab, i; | |
tab = (int **) calloc(w, sizeof(int*)); | |
for ( i = 0; i < w; ++i) |
This file contains 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> | |
#include <time.h> | |
struct Matrix { | |
int w; | |
int k; | |
int **container; | |
}; |
This file contains 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> | |
#define _USE_MATH_DEFINES | |
#include <math.h> | |
/* | |
Wedlug wolfram alfa pole zaznaczone przez ta calke od 2 do 4 wynosi w przyblizeniu = 65.8758 | |
http://www.wolframalpha.com/input/?i=integral+x^2+%2B+e^x+from+2+to+4 | |
Aby uzyskac taki wynik w moim algorytmie nalezy ustawic dokladnosc calkowania na 350 | |
Funkcja dla ktorej obliczamy calke |