Home > Back-end >  C language small white, every brother for help
C language small white, every brother for help

Time:11-13



A freshman just learning C language, using the virtual machine on ubuntu vs

Want to ask is there any way to compile quickly? Now every time you compile to terminal inside a GCC XXX. C - o XXX feel not convenient

There is shown in figure, when doing the base power, once the index turned negative output becomes 1, want to along while didn't understand the reason for your guidance,

Thanked you bosses in advance!!!!!! Really need help

CodePudding user response:

Compile, you can write a simple Makefile, so every time can only lose the make and how to write, you can baidu is one or two. C file, the Makefile is three or four lines, you could just
Output 1, 1 is plastic, the result is the type double, you change the result=(1/result) to result=(1.0/result) try,

CodePudding user response:

You can try to install a qt creator vs under similar with Windows, but certainly not as strong as he vs

CodePudding user response:

Can learn the Makefile, write one can reduce the input command line "pain"

CodePudding user response:

Thanked, but change the result=(1.0/result) after the output value is 1.00,,, I don't know why
  • Related