add what have been lost
This commit is contained in:
parent
cfc3486393
commit
9881a0622c
20
.vscode/tasks.json
vendored
Normal file
20
.vscode/tasks.json
vendored
Normal 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"
|
||||
}
|
|
@ -38,7 +38,6 @@ int b2hd ()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
int main(int argc , char** argv){
|
||||
b2hd();
|
||||
|
|
28
C-Script/getArray.c
Normal file
28
C-Script/getArray.c
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue