Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 386 Bytes

Cpp.md

File metadata and controls

23 lines (19 loc) · 386 Bytes

Native Compilation G++ Compiler, Hello World

    root@edison:~# g++
    g++: fatal error: no input files
    compilation terminated.
    root@edison:~# vi helloworld.c
#include <stdio.h>

void main (){
    printf("Hello World\n");
}
    root@edison:~# g++ -o helloworld helloworld.c
    root@edison:~# ./helloworld
    Hello World
    root@edison:~#