initial commit(errors present)

Signed-off-by: Bobertkiller <felipe.mazzeo.barbosa@outlook.com>
This commit is contained in:
2023-06-01 13:23:29 -03:00
parent 69a4ee0738
commit a15cb10b53
5 changed files with 56 additions and 0 deletions

2
.gitignore vendored
View File

@@ -50,3 +50,5 @@ modules.order
Module.symvers
Mkfile.old
dkms.conf
test

11
calc.c Normal file
View File

@@ -0,0 +1,11 @@
#include <stdio.h>
#include "src/functions.h"
int main(void){
system("python src/intro.py");
}

23
src/functions.c Normal file
View File

@@ -0,0 +1,23 @@
#include <stdio.h>
//gera matrix com parametros inseridos e devolve a marix
float gera_matrix(int linha,int coluna){
float inserir;
float devolver[linha][coluna];
for (int i =0; i < linha; i++){
for(int j =0; j < coluna; j++){
printf("please insert value for line %d column %d:",i,j);
scanf("%f", &inserir);
devolver[i][j]=inserir;
}
}
return devolver[linha][coluna];
}

5
src/functions.h Normal file
View File

@@ -0,0 +1,5 @@
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
float gera_matrix(int, int);

15
src/intro.py Normal file
View File

@@ -0,0 +1,15 @@
import os
os.system("cls || clear")
intro = """Welcome to Pelops II mathematical modeling solver
The program is made with the intention to help college students
to solve their mathematical modeling problems/exercises, and in further updates show
the process of problem solving to make this program useful for studying
If there are any Bugs, i appreciate feedback at my github: https://github.com/Bobertkiller
"""
print(intro)