花费 58 ms
通过指针在函数里改变数组的值

关键:将数组的地址送到函数中;其中数组名可以作为函数的首地址。 #include<stdio.h>int sort(int *p,int n){ int i,j,ret=0,temp; ...

Fri Sep 09 22:21:00 CST 2016 0 3640
#include

1.sin(a)类:a是弧度值; 2.abs(b):结果是b的绝对值; 3.exp(c):exp()用来计算以e为底的x次方值,即ex值,然后将结果返回。返回值: 返回e的x次方计算结果。 4. ...

Sat Sep 10 18:53:00 CST 2016 0 3235
#include

#include<string.h> 1 strcpy #include <string.h> char *strcpy(char *str1, const char * ...

Sat Sep 10 18:41:00 CST 2016 0 3082
如何通过函数返回数组首地址

int * scanffile(FILE *fp,int n){ int i;static int array[10]; //因为array是局部变量,随scanffile()函数的结束,该内 ...

Mon Mar 27 00:51:00 CST 2017 0 2036

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM