Trying to write a basic C Program in XCode, but i keep getting an error saying 'Expected expression' -


so program's meant read in water temp, in kelvin, convert celsius , fahrenheit, display whichever of 2 requested, state.

but whatever reason, when ever try , call c or f, fails build because wants before int in these 2 lines of code.

case 'c':  case 'c':            convertnumberc(int n);            checkstate(int n);            break;  case 'f':  case 'f':            convertnumberf(int n);            checkstate(int n);            break; 

in code, change

 convertnumberc(int n); 

to

convertnumberc(n); 

because, while calling function, don't need specify data type.

simmilarly, you've correct occurrences.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -