1. #include int fun(int a); int main() { int a; scanf("%d",&a); printf("%d",fun(a)); } ...
1. #include int fun(int a); int main() { int a; scanf("%d",&a); printf("%d",fun(a)); } ...
講了指針 1. #include #include int main() { //char *p[5]; char ss[10]={"\0"}; char s[5][10]=...
局部變量和全局變量 1. #include void fun(int m,int n); int a[5][5]={0}; int main() { int m,n; int...
調(diào)用函數(shù),形參實(shí)參 1. #include void fun(int n); int main() { int n; scanf("%d",&n); fun(n); } vo...
strcpy字符串復(fù)制 copy memcpy strcmp比較 compare memcmp strlen字符串長度 length strcat字符串拼接 ...
學(xué)習(xí)了字符串?dāng)?shù)組, 1. #include #include int main(){ int i; char a[80]={"If so, you already have ...
今天講了二維數(shù)組,感覺二維數(shù)組好難,很多時(shí)候想法轉(zhuǎn)變不過來, 1. #include int main(){ int a[3][4]={{1,2,3},{4,5,6,7},{...
1. #include int main(){ int b; int a[]={1,2,3,4,5,6,7,8}; b=a[0]; int i; for(i=0;i<8;i+...
數(shù)組 1. #include int main(){ int a ; int d; scanf("%d",&a); if(a>=90&&a<=100){ d=1; }else...
while循環(huán) scanf的賦值 switch 1. #include int main(){ char a; int i=1; while(scanf("%c",&a)){...
1. #include int main(){ int a; char b; for(a=70;a>=65;a--){ for(b=70;b>=a;b--){ printf(...
嵌套循環(huán) 1. #include int main(){ int a; scanf("%d",&a); int i; int x=0; for(i=1;i<=a/2;i=i+...
for循環(huán) 1. #include int main(){ int a=0; int i; for(i=1;i<1000;i=i+2){ a=a+i; } printf("%...
學(xué)習(xí)了邏輯運(yùn)算符侧蘸,賦值運(yùn)算符奸柬,變量的命名方式 1. #include int main(){ char a; printf("請輸入一個(gè)字符:"); scanf("%c",&...
1.1 #include int main(){ float a,b,c,d,e,f; scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f); pr...