step1:find the root dictory
cd /home/ameliy123/Ameliy
step2:gcc a.c
step3:ls have a new file a.out
step4:chmod +x a.out (if a.out don't work)
step5:./a.out
注:多个文件在一个文件夹中时,ex:gcc a.c 产生a.out
如果在此文件夹下编译 gcc b.c则仍产生 a.out
cd /home/ameliy123/Ameliy
step2:gcc a.c
step3:ls have a new file a.out
step4:chmod +x a.out (if a.out don't work)
step5:./a.out
注:多个文件在一个文件夹中时,ex:gcc a.c 产生a.out
如果在此文件夹下编译 gcc b.c则仍产生 a.out