摘要:
float a[3][3];for(i=0;i<3;i++) for(j=0;j<3;j++) scanf("%f",&a[i][j]); 阅读全文
摘要:
conio.h is a non-standard header. It worksmostly on DOS platforms. If you want to include conio.h to clear the screen (i.e use clrscr() ) then you can instead use `system("clear");`. 阅读全文
摘要:
*win-tc*/#include <stdio.h>#include <malloc.h>#include <stdlib.h>#define Esc 27 /*定义键盘退出键Esc*/#include"ctype.h"#define NULL 0#define LEN sizeof(struct student) struct student { long ... 阅读全文
摘要:
touch 文件名 阅读全文
摘要:
安装依赖包 // Anjuta IDEsudo apt-get install anjuta // Build tools sudo apt-get install autogen automake build-essential indent intltool sudo apt-get install gnome-core-devel sudo apt-get install pkg-confi... 阅读全文
摘要:
$(name) or${name}CCProgram for compiling C programs, default 'CC'CXXProgram for compiling C++ programs, default 'g++'CPPProgram for running C preprocessor, default '$(CC) -E'FCProgram for running Fort... 阅读全文
摘要:
allDo everythingcheckPerform some self test after building the programcleanDelete all files created by makedistcleanDelete more files than clean, could delete the Makefile itselfdistCreate a distribut... 阅读全文
摘要:
GCC编译C源码有四个步骤:预处理-----> 编译 ----> 汇编 ----> 链接c-i, i-s, s-o, o-exe-E -S -C*.o -o *.exe现在我们就用GCC的命令选项来逐个剖析GCC过程。1)预处理(Pre-processing)在该阶段,编译器将C源代码中的包含的头文件如stdio.h编译进来,用户可以使用gcc的选项”-E&rdquo... 阅读全文
摘要:
void itoa(int n,char s[]) { int i,sign; if ((sign=n) <0) n=-n; i=0; do { s[i++]=n%10+'0';} while ((n/=10)>0); if (sign <0) s[i++]='-'; s[i]='\0'; reverse(s); } 阅读全文
摘要:
指针可以指向基本类型,也可以指向复合类型,因此也可以指向另外一个指针变量,称为指向指针的指针。 阅读全文