Why am I getting a 'called object 0 is not a function error'?

后端 未结 4 639
庸人自扰
庸人自扰 2021-01-21 19:17

I\'m a C# developer trying to learn C (followed by C++). I am going native, working on Ubuntu using vim as my text editor, and the Gnu C Compiler (gcc) to compile.

I\'m

4条回答
  •  没有蜡笔的小新
    2021-01-21 20:14

    In C (and I am assuming that in other languages too :)) an arithmetic operator is needed to perform an arithmetic operation.
    Change

    int celcius = (5/9)(i-32);
    

    to

    int celcius = (5/9)*(i-32);
    

提交回复
热议问题