add what have been lost

This commit is contained in:
Nowmaybelater 2022-05-05 16:40:03 +02:00
parent cfc3486393
commit 9881a0622c
3 changed files with 48 additions and 1 deletions

20
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,20 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc.exe build active file",
"command": "C:/msys64/mingw64/bin/gcc.exe",
"args": ["-g", "${file}", "-o", "${fileDirname}\\${fileBasenameNoExtension}"],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "compiler: C:/msys64/mingw64/bin/gcc.exe"
}
],
"version": "2.0.0"
}

View file

@ -38,7 +38,6 @@ int b2hd ()
}
}
}
}
int main(int argc , char** argv){
b2hd();

28
C-Script/getArray.c Normal file
View file

@ -0,0 +1,28 @@
#include "b2hd.h"
typedef struct values
{
int allValues[1000][8];
}values;
values getArray(){
values tab;
int b=1;
char *token;
char buff[256];
fscanf(stdin, "%s", buff)
token = strtok(buff , ",");
int i = 0 ;
int j = 0 ;
while(token!=NULL){
t[j][i] = atoi(token);
token = strtok(NULL,",");
i++;
if(i==8){
j++;
i=0;
}
}
return tab;
}