system 库函数的功能是执行操作系统的命令或者运行指定的程序
#include <stdio.h> #include <stdlib.h>//引入库 int main() { //system("notepad");//打开记事本 system("dir");//查看目录 system("ipconfig");查看ip return 0; }
多线程
pthread_create
thread_create
POSIX标准
#include <stdio.h> int main() { //c语言代码 int a, b ,c; /* a = 1; b = 2; c = a + b; */ //内嵌汇编代码 __asm { mov a , 1 mov b , 2 //cpu内的寄存器(计算在寄存器内计算) mov eax , a add eax , b mov c ,eax } printf("%d\n", c); }
4链接
gcc -o d D.0
gcc 没有任何参数代表链接
第三方的库(引入库(.so .dll文件))
man gcc查看详细参数
原文:http://www.cnblogs.com/long613/p/7615523.html