Posts by Ilan Francisco • 83 points
2 posts
-
1
votes2
answers63
viewsA: Problems with the switch
Every time you add a note, you’re adding x\n at the buffer, then the verification of the while runs again to \n. I recommend you create a special case for \n not to be executed the default. Or…
-
7
votes1
answer304
viewsQ: Is it correct, following object orientation, to use pointers to C++ functions?
I am creating classes that represent items in a menu, each item performs an action and I am assigning the action by a function pointer to each instantiated menu item, is this valid by following POO?…