上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 54 下一页
摘要: 源程序: #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)
摘要: 源程序: // 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)
摘要: 源程序: //用一维数组表示顶点,二维数组表示边,已知图的顶点和边,用矩阵表示出顶点和边的值//有效边用户1表示,无效边用0表示#include <stdio.h>#define MaxVerNum 100 typedef struct{ char vexs[MaxVerNum]; //顶点数组,相 阅读全文
posted @ 2019-11-07 11:29 bobo哥 阅读(210) 评论(0) 推荐(0)
摘要: 源程序: #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)
摘要: #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)
摘要: 源代码: #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)
摘要: // // 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)
摘要: 源代码 #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 下一页