Hi,
Don't have
using namespace std;
there is a C++11
std::round
, and a
std::count
Look at my previous posts as to why & how.
When posting errors, post them in full and make sure the line numbers match the files you post here. And the name of the file.
Your variables name a little confusing: line 17
Tree nuts;
especially when there is a class called nut !!
Why do your for loops start at 1 and add 1 to the end condition and have
<=
operator ?
Why do you use the this pointer? It is handy for overloading operators, but no need in classes.
Squirrel::go_to Take a point to tree, not an int.
Line 47 col 28: nuts.get_nuts_left cannot be used as a function |
Tree::get_nuts_left is a member variable, not a function.
system is a bad idea any way, just
std::cin
a variable if you need to hold the window open.
Hope this helps :+)