摘要:
代码补全默认 ctrl + n 或者ctrl + p参考http://07jzk31.blog.163.com/blog/static/16085142009102393358457/ 阅读全文
摘要:
显示目录ls -a 列出隐藏文件 ls 可以简写成 lls -l或ll 列出当前目录下文件的详细信息 –long -langpwd 查看当前所在目录的绝对路经进入目录cd .. 上一级目录cd - 回上一次所在的目录cd ~ 或 cd 回当前用户的宿主目录cd ~用户名 回指定用户的宿主目录创建目录mkdir 目录名 创建一个目录mkdir –p 递归式去创建一些嵌套目录,比如目录下原有dir1目录,mkdir –p dir1 dir2 不会错误rmdir 空目录名 删除一个空目录删除创建多个目录文件mkdir dir1 dir2 dir3rmdir dir1 dir2 dir3rm a... 阅读全文
摘要:
Linux下gcc -g -Wall a1.c -o a1.out-Wall 显示警告GCC 编译Dllgcc --share print.c -o print.dll调用dll库生成exe文件gcc test.c print.dll -o testMAkeFileCC= gccCFLAGS= -Wallhello: hello.o hello_fn.oclean: rm -f hello hello.o hello_fn.o扩展阅读 http://blog.csdn.net/denglei265/archive/2009/02/14/3889470.aspx 阅读全文
摘要:
代码 a.c#include int main(void){ printf("hello \n"); return 0;}Windows下解压mingw-w64-bin-x86_64为了方便CMD添加path C:\Users\YT>path E:\mingw64\bine:\c>gcc e:\c\a.c -o e:\c\a.exe-o out路径Linux下注意运行时,即使a1.out在当前目录,也要加上 ./a1.out参考文章 阅读全文