Hello guys, i am trying to create a function that will get the inputs from the GetInput function and use the values in the calculation function. this is how far i got. your advice will really help alot.
Your GetInput function requires four parameters, but you provide none when you call it in main(). It also returns a double, but you do not return anything from the function (and you don't seem to want to do anything with it in the main() function). There's also a missing brace on line 35.
Assuming you're going to call Calculation separately, you should consider changing your GetInput function to receive reference variables. This will allow you to modify the original arguments. That way, you can write
Little nit-pick:
You should really rename your variables (and probably function names) to be more clear. I am guessing your r, l, and c variables are supposed to be Resistance (you forgot to write ohms on line 14 if so), Inductance, and Capacitance.
Now, unless one has studied Physics, one may not be able to recognize these variables and be confused as to what they're there for.
what i am trying to do is create three separate functions one for the inputs, calculation and output including the main function. for the GetInput function i was trying to make the message show up and the user will have to enter the values for R, L, C and T and those values will then be used in the calculation function. I dont get what to put in the main function either