Skip to content

Instantly share code, notes, and snippets.

View LightBells's full-sized avatar
🏠
Working from home

Nautilus LightBells

🏠
Working from home
View GitHub Profile
@LightBells
LightBells / キュー
Last active July 15, 2020 15:10 — forked from riku1314/キュー
#include <stdio.h>
#include <stdlib.h>
#define ID "s1270096"
#define NAME "Hikaru Takahashi"
//----------------------------------
typedef enum { OK, EMPTY, FULL } result_t;
// キューの要素(ノード)を表す構造体
@LightBells
LightBells / jikken.h
Last active June 21, 2020 14:11 — forked from riku1314/jikken.h
B-1
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;