add oneR to main #2

Merged
Trianta merged 8 commits from oneR into main 2024-04-17 21:35:56 -05:00
4 changed files with 22 additions and 2 deletions
Showing only changes of commit 42daff8a4c - Show all commits

View File

@ -1 +1,2 @@
add_subdirectory(arff)
add_subdirectory(onerule)

View File

@ -1,5 +1,5 @@
add_executable(arff
./main.cpp
./arff.cpp
main.cpp
arff.cpp
)

View File

@ -0,0 +1,6 @@
include_directories(../arff)
add_executable(onerule
main.cpp
../arff/arff.cpp
)

13
src/onerule/main.cpp Normal file
View File

@ -0,0 +1,13 @@
/*
* Author: Gregory Crawford
* Date: 2024-03-18
* Description: Read and store ARFF data from a file
*/
#include "arff.hpp"
int main(int argc, char* argv[]) {
ARFF::ParseArguments(argc, argv);
ARFF::Arff data;
data.Read(ARFF::GetDataFilename());
data.Print();
}