Day 2 - A short introduction to gcc usage - 1

In this part, I will compile a simple program called hello_world.c, and describe the compiler how handle it.

The code example as below

#include <studio.h>

int main(){

    printf("Hello World !\n");
    
    return 0;
}

Now, we must use gcc compile the example above.

In your terminal, you can type

$ gcc -o "output_fileName" "program_name" 

then you will see the output file with a name appear in your directory.

To run your output file,

$ ./"output_fileName" 

that './' means a current working directory. Afterward, you will see the result is print the "Hello World !" on your screen.

continue...


<<:  Day 02:软件业界常用软件

>>:  规划

Vaadin 对话视窗 Dialog - day17

Vaadin 提供的众多 Components,除了前面范例实作过的 Form Inputs 外,常...

Day 21 Arraylist

在Java程序设计中,有一个较为快速创造阵列的方法ArrayList,有别於固定大小的Array,A...

【Day 01】Zeze 的野望 - 开赛前言

前言 根据 NetMarketShare,Windows 在全球作业系统市场之中有统治性的地位,占了...

Day 25. VR菜单3

连假就让我轻松点吧XDD,虽然平常内容也没有多到哪去哈哈。       If you are on ...

Day4 回忆篇 那个关於乖乖的传说-1

最近在某网通群组刚好有聊到,所以乾脆来写一篇文解释一下乖乖传说背後的科学论证吧 先说明缘起,到底是哪...