Zaktualizuj 'Main.cpp'
This commit is contained in:
parent
2fdd4767d0
commit
25bcbe6751
10
Main.cpp
10
Main.cpp
@ -1,4 +1,4 @@
|
||||
//Main drzewa decyzyjne 1 + algorytm genetyczny
|
||||
//Main oba drzewa decyzyjne + algorytm genetyczny
|
||||
|
||||
#include<iostream>
|
||||
#include<stdlib.h>
|
||||
@ -70,7 +70,7 @@ void decisionTree(string polecenie) {
|
||||
|
||||
int line = 0;
|
||||
ifstream inFile;
|
||||
inFile.open("pliki/dec.txt");
|
||||
inFile.open("dec.txt");
|
||||
if (!inFile) {
|
||||
cout << "Unable to open file";
|
||||
exit(1); // terminate with error
|
||||
@ -91,7 +91,7 @@ void stanPola(int x, int y) {
|
||||
//[x][x][0] = 3 - środek i nawóz
|
||||
//[x][x][1] - wartość wzrostu rośliny
|
||||
|
||||
polecenie = "python pliki/injectCode.py 1 ";
|
||||
polecenie = "python injectCode.py 1 ";
|
||||
|
||||
if (stan[x][y][0] == 0)
|
||||
polecenie.append("0 0 ");
|
||||
@ -1044,7 +1044,7 @@ void testSI1()
|
||||
|
||||
void sendState()
|
||||
{
|
||||
ofstream write("pliki/dane.txt");
|
||||
ofstream write("dane.txt");
|
||||
for (int i = 1; i < 26; i++)
|
||||
{
|
||||
for (int j = 1; j < 26; j++)
|
||||
@ -1064,7 +1064,7 @@ void sendState()
|
||||
}
|
||||
void reciveState()
|
||||
{
|
||||
ifstream read("pliki/decyzje.txt");
|
||||
ifstream read("decyzje.txt");
|
||||
if (read.is_open())
|
||||
{
|
||||
char plant;
|
||||
|
Loading…
Reference in New Issue
Block a user