January 22nd, 2013, 01:02 AM
You should learn to understand what your compiler is telling you. For instance:
"I:\School Work\resistor\resistor\resistor.c(30): warning #2233: Insufficient number of arguments to 'printf' according to the format string."
Here, when it says:
it is telling you that the error is in resistor.c close to line number 30.
Next, the actual error message:
"Insufficient number of arguments to 'printf' according to the format string."
What this is telling you is that in your printf() format string, you have multiple % arguments (you have two %.3f in there), but you don't have enough arguments after that (you only have Watts, which is a single argument).
Similarly, read the other error messages. They explain EXACTLY what mistakes you made and approximately where you made them.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne