This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Useful pieces of code needed

I've recently started learning how to program for my PhD and they say I'm very talented. So far I have written an equation program using simple components like 'if-else' and 'switch' functions.

I want to become better at programming, but the tutorials I have looked at don't give ways to use specific code pieces within programs.

For example, I would like to know how to set a switch other than to perform different functions. i.e "Choose from the options" and then set , and keys for each option. I presume this can be achieved using loops, something I don't fully understand yet.

Any other useful code that is often used in programming would also be appreciated.

Thank You

0