Do these modification (Basic C++ syntax issue), and also implement the other functions in the code.
//void analyze_deck()
void MainWindow::analyze_deck()
{
...
}
//void save_analysis(const std::string &fileName)
void MainWindow::save_analysis(const std::string &fileName)
{
...
}
//void read_deck(const QString &fileName)
void MainWindow
::read_deck(const QString &fileName
) {
...
}
//void refresh_deck()
void MainWindow::refresh_deck()
{
...
}
//void analyze_deck()
void MainWindow::analyze_deck()
{
...
}
//void save_analysis(const std::string &fileName)
void MainWindow::save_analysis(const std::string &fileName)
{
...
}
//void read_deck(const QString &fileName)
void MainWindow::read_deck(const QString &fileName)
{
...
}
//void refresh_deck()
void MainWindow::refresh_deck()
{
...
}
To copy to clipboard, switch view to plain text mode
Move all following to mainwindow.cpp
double nfomf(int n, int m, int k); //n factorial over m factorial for k terms.
int list_sizes[3]; // amount in main/bad/good
int monster_count = 0;// monster/spell/trap
int spell_count = 0;
int trap_count = 0;
int whereami[3]; //main/bad/good
QString current_file;
double nfomf(int n, int m, int k); //n factorial over m factorial for k terms.
int list_sizes[3]; // amount in main/bad/good
QListWidget *mn_lst;
int monster_count = 0;// monster/spell/trap
int spell_count = 0;
int trap_count = 0;
int whereami[3]; //main/bad/good
To copy to clipboard, switch view to plain text mode
Bookmarks