mac编写c/c++
2019-01-14 本文已影响12人
FiredEarthMusic
1.编写hello.c
2.终端下找到hello.c所在目录输入gcc hello.c
3.输入./a.out
1.编写hello.cpp
2.终端下找到hello.cpp所在目录输入g++ hello.cpp
3.输入./a.out
1.编写hello.c
2.终端下找到hello.c所在目录输入gcc hello.c
3.输入./a.out
1.编写hello.cpp
2.终端下找到hello.cpp所在目录输入g++ hello.cpp
3.输入./a.out