Hello everyone. I'm currently writing a program and a portion of it needs to have a function that computes the result of a formula for two sets of inputs. It then has to calculate and display the difference between the two results.
I have code that takes the input from the user and converts it to the type that I need. In this case we are talking about latitudes and longitudes that will be converted to degrees, then to xyz coordinates.
I'm just not sure how to implement this in my code.
Also, I would like to post my code but it's somewhat long and I'm not sure if it would even help. Thanks!
To respond to the topic title, have you ever thought of main as a function? (There are some technicalities, but you can consider main a function - just don't try to call main!)
If you consider main a function, then you should realize you've already been using functions within functions.
As for the body of your post, I don't know what you mean.