mirror of
https://github.com/Bobertkiller/pelops-solver.git
synced 2026-01-15 08:12:52 -03:00
initial commit(errors present)
Signed-off-by: Bobertkiller <felipe.mazzeo.barbosa@outlook.com>
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -50,3 +50,5 @@ modules.order
|
||||
Module.symvers
|
||||
Mkfile.old
|
||||
dkms.conf
|
||||
|
||||
test
|
||||
|
||||
11
calc.c
Normal file
11
calc.c
Normal 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
23
src/functions.c
Normal 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
5
src/functions.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#ifndef FUNCTIONS_H
|
||||
#define FUNCTIONS_H
|
||||
|
||||
float gera_matrix(int, int);
|
||||
|
||||
15
src/intro.py
Normal file
15
src/intro.py
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user