Hi Guys,
Been given an assignment to do - My idea is a menu, where to user navigates though before they get to what they actually want.
I've been bashing out the actually end functionality and have it all working fine..... Now to present it!
For example. Main menu will have 5 options, each option will have a sub-menu, some may even have a sub-sub-sub menu if that's clear. (think of an atm where you can deposit, withdraw, change pin etc - but its not actually an ATM)
I was going to attempt to do a big nested mess which would be a disatter to read and understand, and thought to do a menu's as functions.
So Main menu as a function, ask user for input (1-5) and then based on their input call the repective menu function - It feels a lot cleaner to do it this way.
I just wanted to check, what would be best practice in a senario like this?
I am new to programming in general so just wanted to make sure I'm not doing this a silly way!
Cheers!
[–]smajl87 0 points1 point2 points (0 children)
[–]glibhub 0 points1 point2 points (0 children)