摘要: #include<stdio.h>typedef struct node{ char name[10]; int gra;}stu; int main(){ stu stu1[5],t; int i,j,n,temp; printf("输入需要排序的学生个数:"); scanf("%d",&n); 阅读全文
posted @ 2017-01-10 12:33 mykonons 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int i,j,n,t; int tong[11]; printf(" 请输入数字个数 :"); scanf("%d",&n); for(i=1;i<=n;i++) { tong[i]=0; } for(i=1;i<=n;i++) { sca 阅读全文
posted @ 2017-01-10 10:59 mykonons 阅读(158) 评论(0) 推荐(0) 编辑
摘要: <html><head><title>我的第一个HTML页面</title></head><body><center><h1>欢迎大家访问我的个人主页</h1><hr> </center> <h1>用户注册</h1><hr><form><table width="0" border="0" cell 阅读全文
posted @ 2016-09-22 20:35 mykonons 阅读(20049) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#define n 4//马鞍点是第I行值最小第J列值最大 void maxmin(int a[n][n]){ int i,j ,flag; int max[n],min[n]; for(i=0;i<n;i++) { min[i]=a[i][0];//将数组每行的第 阅读全文
posted @ 2016-09-20 22:05 mykonons 阅读(928) 评论(0) 推荐(1) 编辑
摘要: #include<stdio.h>#include<malloc.h>#include<stdlib.h>#define max 5 void fun(int a[max][max],int n){ int i,j,k=0,m; if(n%2==0) m=n/2; else m=n/2+1; for 阅读全文
posted @ 2016-09-20 21:23 mykonons 阅读(610) 评论(0) 推荐(0) 编辑
摘要: //说实话我把差集想的太复杂了 考虑了许多没用的 //最后却用了一种简单的方法解决了 #include<stdio.h>#include<malloc.h>#include<stdlib.h>typedef struct node{ //char data;// int count; int dat 阅读全文
posted @ 2016-09-20 02:30 mykonons 阅读(2212) 评论(0) 推荐(0) 编辑
摘要: 以前刚学的时候迷迷糊糊的,一看就懵圈,前几天捡起来的时候 发现还不会 于是研究了两天,自尊心严重受挫,今天的时候 突然一道灵光迸发,居然 感觉好像懂了,于是又琢磨起来 终于 我懂了 呵呵! 0 1 2 3 4 5 6 7 8 9 主串 : a b c d e a b c d f i 0 1 2 3 阅读全文
posted @ 2016-09-19 03:48 mykonons 阅读(1438) 评论(0) 推荐(0) 编辑
摘要: /* 很简单 简单的 #include<stdio.h>#include<stdlib.h>#include<string.h> int main(){char s[]="abcdefghjkl";char t[]="efghl"; int i,j; while(s[i]!='\0'&&t[j]!= 阅读全文
posted @ 2016-09-19 00:24 mykonons 阅读(288) 评论(0) 推荐(0) 编辑
摘要: /*链式队列其实就是一种特殊的单链表 只要单链表和结构体的知识咂实 就能很轻松的实现*/ #include<stdio.h>#include<stdlib.h>#include<malloc.h>static int c=0;typedef struct node{ int data; struct 阅读全文
posted @ 2016-09-15 02:22 mykonons 阅读(185) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<malloc.h> #define max 10 typedef struct node{int queue[max];int front,rear;}q,*queue;void init(queue p){p->front=-1;p->rear= 阅读全文
posted @ 2016-09-14 03:10 mykonons 阅读(165) 评论(0) 推荐(0) 编辑