会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bobo哥
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
38
39
40
41
42
43
44
45
46
···
54
下一页
2019年11月19日
把一个整数转换成字符串,并倒序保存在字符数组s中--简单算法
摘要: 源程序: #include <stdio.h> #include <stdlib.h> #define N 80 char s[N]; void fun(long int n) { int i = 0; while (n > 0) { s[i] = n % 10 + '0'; n = n / 10;
阅读全文
posted @ 2019-11-19 09:04 bobo哥
阅读(1985)
评论(0)
推荐(0)
2019年11月12日
顺序栈的操作-简单
摘要: 源程序: // main.cpp // stack_quhao // Created by duanqibo on 2019/6/29. // Copyright © 2019年 duanqibo. All rights reserved. // 顺序栈的操作,整数进栈,取栈顶元素,栈内剩余元素 #
阅读全文
posted @ 2019-11-12 14:22 bobo哥
阅读(257)
评论(0)
推荐(0)
双向链表操作-简单
摘要: 源程序: #include <stdio.h> #include <stdlib.h> //双向链表结点的定义 typedef struct dbnode { int data; struct dbnode *prio, *next; }DbNode, linkdblist; //创建双向链表 Db
阅读全文
posted @ 2019-11-12 13:25 bobo哥
阅读(231)
评论(1)
推荐(0)
单向循环链表-简单
摘要: 源程序: #include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node *next; }linklist; //创建单向循环链表 linklist *creatlist() { linklist
阅读全文
posted @ 2019-11-12 12:53 bobo哥
阅读(297)
评论(0)
推荐(0)
2019年11月7日
图的简单应用--简单
摘要: 源程序: //用一维数组表示顶点,二维数组表示边,已知图的顶点和边,用矩阵表示出顶点和边的值//有效边用户1表示,无效边用0表示#include <stdio.h>#define MaxVerNum 100 typedef struct{ char vexs[MaxVerNum]; //顶点数组,相
阅读全文
posted @ 2019-11-07 11:29 bobo哥
阅读(210)
评论(0)
推荐(0)
2019年11月6日
数组中,将奇数都靠左,偶数都靠右;并且将左边的奇数升序,右边的偶数降序
摘要: 源程序: #include <iostream>using namespace std; const int n=10; typedef int array[n];void main(){ int start,end; array a={60,34,55,78,90,99,76,85,96,43};
阅读全文
posted @ 2019-11-06 08:12 bobo哥
阅读(398)
评论(0)
推荐(0)
2019年11月5日
简单指针操作
摘要: #include <iostream>#define N 5using namespace std; void main(){ double *p; double max,min,temp; p=new double[N]; //分配三个存储单元 for(int i=0;i<N;i++) cin>>
阅读全文
posted @ 2019-11-05 19:15 bobo哥
阅读(162)
评论(0)
推荐(0)
2019年10月31日
利用二叉树遍历实现学生成绩排序模块设计(二叉排序树)
摘要: 源代码: #include <stdio.h>#include <stdlib.h> typedef struct tnode{ int id; int score; struct tnode *lchild,*rchild;}stu; void ins_student(stu **p,long i
阅读全文
posted @ 2019-10-31 11:01 bobo哥
阅读(1778)
评论(0)
推荐(0)
2019年10月17日
输入12345,逆序输出--简单
摘要: // // main.cpp // numtochar // // Created by duanqibo on 2019/10/15. // Copyright © 2019年 duanqibo. All rights reserved. // #include <iostream> #defin
阅读全文
posted @ 2019-10-17 16:35 bobo哥
阅读(952)
评论(0)
推荐(0)
2019年10月10日
利用顺序栈实现单链表的逆序输出
摘要: 源代码 #include <stdio.h>#include <stdlib.h>#include <malloc.h>#define MAXSIZE 100 //定义单链表typedef struct node{ int data; struct node *next;}linklist;link
阅读全文
posted @ 2019-10-10 10:53 bobo哥
阅读(3301)
评论(0)
推荐(0)
上一页
1
···
38
39
40
41
42
43
44
45
46
···
54
下一页
公告