![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
瑞格
不爱喝阔落
这个作者很懒,什么都没留下…
展开
-
用指向指针的指针对n个数据进行排序
来源于学校瑞格系统的题目(用指向指针的指针对数据进行排序) include <stdio.h>int sort(int **p,int n){ int i,j,temp; for(i=0;i<n-1;i++) { for(j=i+1;j<n;j++) { if(**(p+i)>**(p+j))转载 2017-12-26 14:26:16 · 1747 阅读 · 0 评论 -
调用函数,返回指针
#include <stdio.h>int *larger(int *a,int *b) { if(*a>*b) { return a;}else{ return b;}} int main() { //write your code here int *n,m; int *p=NULL; n=(int *转载 2017-12-26 14:53:01 · 543 阅读 · 0 评论 -
学生信息管理系统
#include#include#include#define N 30const char *PATH="student.bin"; //文件的路径int n=0;typedef struct student{ char cNo[13]; //12位的学号 char cName[11];//10个英文字符,或5个汉字 float chine原创 2018-01-20 12:33:26 · 416 阅读 · 0 评论 -
交换结构体内部的两组数据
#include#define N 30typedef struct Mystruct{ int a; int b;}MYSTRUCT;void Swap(struct Mystruct *p,struct Mystruct *p1){// struct Mystruct *pstr=p1; struct Mystruct a; a=*p1;原创 2018-01-05 13:01:06 · 4249 阅读 · 0 评论