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> | |
#define ID "s1270096" | |
#define NAME "Hikaru Takahashi" | |
//---------------------------------- | |
typedef enum { OK, EMPTY, FULL } result_t; | |
// キューの要素(ノード)を表す構造体 |
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
extern void make_matrix(unsigned int size, int flag,double ***a,double ***b,unsigned int number) | |
{ | |
int i,j; | |
*a=(double**)malloc(sizeof(double*)*size); | |
*b=(double**)malloc(sizeof(double*)*size); | |
for(i=0;i<size;i++){ | |
(*a)[i] = (double*)malloc(sizeof(double)*size); | |
(*b)[i] = (double*)malloc(sizeof(double)*size); | |
for(j=0;j<size;j++){ | |
(*a)[i][j]=flag; |