Lines 5-10: All your functions are
private
. You need to make then
public
if you expect to call them from your menu.
Line 4: You need a constructor for account to initialize balance to zero.
Line 15: Why are you using printf in a C++ program? Have you learned cout yet?
Line 60: Why are you using scanf in a C++ program? Have you learned cin yet?
Line 66: This is a function declaration, not a function call. Remove the
void
.
Line 71-72: These are common to all cases, you want to put then at the bottom of your loop.
Line 49: You need an instance of account if you expect to call its functions. i.e.
Line 66: You can only call addacct relative to an instance of an account object.
PLEASE ALWAYS USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.