From 92ed6e44ab31cc49fceff7537f96766456fdd1f3 Mon Sep 17 00:00:00 2001 From: "quentin.perret" Date: Fri, 3 Jun 2022 18:04:36 +0200 Subject: [PATCH] end day 5 --- Code-C/Makefile | 8 +++----- Code-C/b2hd | Bin 17056 -> 17056 bytes Code-C/b2hd.c | 2 +- Code-C/getArray | Bin 17440 -> 0 bytes Code-C/getArray.c | 15 ++++++--------- Code-C/power | Bin 17600 -> 17656 bytes Code-C/power.c | 3 +-- Code-C/power.h | 2 +- 8 files changed, 12 insertions(+), 18 deletions(-) delete mode 100755 Code-C/getArray diff --git a/Code-C/Makefile b/Code-C/Makefile index 8a6b768..eed5e98 100644 --- a/Code-C/Makefile +++ b/Code-C/Makefile @@ -3,10 +3,8 @@ CC = gcc all: # rm powerData.csv $(CC) b2hd.c -o b2hd - $(CC) fileGestion.c getArray.c -o getArray -# $(CC) fileGestion.c getArray.c power.c -lm -o power + $(CC) fileGestion.c getArray.c power.c -lm -o power # getArray.c fileGestion.c power.c main.c -o main - ./b2hd < ../02400031.TXT > rawData.csv - ./getArray -#./power \ No newline at end of file + ./b2hd < ../02400001.TXT > rawData.csv + ./power \ No newline at end of file diff --git a/Code-C/b2hd b/Code-C/b2hd index 9fc905cbaedd6e49a63c2371919fcd452063338f..bdb7e90ccfa196aa07e4e38e72b81137a69fee66 100755 GIT binary patch delta 211 zcmZ3`%DAAFaRUdFpo0Pf7{KYtl1#frv|Oa_iweHdw{|m}x=yfw{ng4Q-_0+Wtoa!q zPF4}}XI!$mM97no(RuPdVN*t@&0mBCc_y#C10i<0&{{MdiNKXdRKY;ZA&;S2RFfuSGeEI+10!TLi=>{Opz_7VbVUi%D e!)8UJa3&yCX>y#4(RQ+@Qg88M!EXBpZ94dptqY?UnH7!<%0)S@SbK znyez^&$x7RiI68FW98(1!lsPwo4*JP@-XI1W>qi?(qT|d;R2e-D9vo`0i-#A_|E(P z|EBu-tT8>b-5?NLPN#L#j@x?DPLk%)QQA%>O7e=?aVmV^8D`+bky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Ulc@Kkgb1Vz2iD#&|uM2 z29WM2%FHlgd9;S&*=ely7~^NN9r~+FjqxH5z+`n5y953z<7mF(=7mOo TsgaZ^vtoG7UrLK%(x3fb4>kIN diff --git a/Code-C/power.c b/Code-C/power.c index 24750b8..dcc7148 100644 --- a/Code-C/power.c +++ b/Code-C/power.c @@ -25,8 +25,7 @@ void power(long **p, double a[]){ } } int main(int argc , char** argv){ - printf("Get raw data mat"); - int32_t **p = getRawDataArray(nRow, nCol); + long **p = getRawDataArray(nRow, nCol); //printArray(p,nRow,nCol); double pw[8]; power(p,pw); diff --git a/Code-C/power.h b/Code-C/power.h index 14ca295..12caf6a 100644 --- a/Code-C/power.h +++ b/Code-C/power.h @@ -1,3 +1,3 @@ #include -void power(int **p, double a[]); \ No newline at end of file +void power(long **p, double a[]); \ No newline at end of file