So really, once we start writing more interesting programs, you would have to type out long annoying commands like that to just compile more sophisticated programs.
实际上,一旦我们开始写一些更复杂的程序时,你们可能要键入那样一些长的,讨厌的命令,来编译跟高级的程序。
In fact, this example would compile because you can use curly braces in this way to encapsulate lines of code, but realize for now, that, not good.
实际上,这个例子可以编译,因为你可以用这种方式来压缩代码行,但是请认识到,那个,不太好。
And I read the documentation, did what it said, and that's how I got my program to compile.
我阅读那个文档,照它说的做,那就是我如何便于我的程序的。
Essentially, this command make is just another program that uses GCC to compile my program for me but make is configurable.
从本质上来看,make命令就是一个,调用GCC来编译我们程序的程序,只不过make是可以配置的。
So putting back that prototype allows me to compile this, because I'm saying proactively to the compiler hey, you're going to see a function called increment.
把那个原型放回原处使我能够编译它,因为我提前向编译器打了招呼,将看到一个叫做increment的函数。
Nano hello c We did Nano for hello.c or whatever I called it, GCC to actually compile into 0s and 1, and then step three is to actually run it.
首先,第二,GCC,hello,c把它编译成01二进制文件,第三,运行。
And you can write your source code in it but to compile something you don't run a command like GCC and then the name of the file, you instead click a button.
你们可以在上面写源代码,如果要编译的话,不用像GCC这样要输入命令,文件名,只需点击按钮就可以了。
应用推荐