generated from Trianta/cpp-unity-template
Initial markov structure
This commit is contained in:
parent
62ca36395f
commit
6007fafb9d
@ -1,5 +1,6 @@
|
||||
add_executable(markov
|
||||
./main.cpp
|
||||
./generator.cpp
|
||||
)
|
||||
|
||||
target_include_directories(markov PUBLIC ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
0
src/generator.cpp
Normal file
0
src/generator.cpp
Normal file
13
src/generator.hpp
Normal file
13
src/generator.hpp
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef GENERATOR_HPP
|
||||
#define GENERATOR_HPP
|
||||
|
||||
struct Generator {
|
||||
public:
|
||||
Generator(void);
|
||||
void SetArguments(int argc, char* argv[]);
|
||||
private:
|
||||
int prefixLength = 0;
|
||||
int outputLength = 0;
|
||||
};
|
||||
|
||||
#endif // !GENERATOR_HPP
|
@ -1,6 +1,7 @@
|
||||
#include <iostream>
|
||||
#include "generator.hpp"
|
||||
|
||||
int main(void) {
|
||||
std::cout << "Hello world" << std::endl;
|
||||
int main(int argc, char* argv[]) {
|
||||
Generator markovChain;
|
||||
markovChain.SetArguments(argc, argv);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user