#include<stdio.h> #include<string.h> #include<stdlib.h> 1、提供一个顺序存储的栈 #define max 1024 struct sstack { void * data[max]; //栈的数组 int m_size; //栈大小 }; ty ...
分类:
其他好文 时间:
2020-11-01 22:08:22
阅读次数:
16
#include <stdio.h> #include <stdlib.h> //数组的应用:顺序表【线性表的一种存储方式】 struct Arr { int * pBase; //保存首地址 int len; //数组的总长度 int cet; //cet: current efficient(当 ...
分类:
编程语言 时间:
2020-11-01 22:05:49
阅读次数:
23
#include <stdio.h> #include <stdlib.h> /* 定义结构体 */ typedef struct Node { int data; //数据域 struct Node * pNext;//指针域 }NODE, * PNODE; //由于使用了typedef, 所以N ...
分类:
其他好文 时间:
2020-11-01 22:00:48
阅读次数:
14
任务一: #include<stdio.h> int main() { int a = 5, b = 7, c = 100, d, e, f; d = a / b * c; e = a * c / b; f = c / b * a; printf("d=%d,e=%d,f=%d\n", d, e, ...
分类:
其他好文 时间:
2020-11-01 21:57:04
阅读次数:
11
首先非常感谢老师及同学们对我的帮助,使我终于找到了截图工具 (果然还是我的问题,怎么能怪电脑呢?) 正片开始——实验2 1.任务1 #include<stdio.h> int main(){ int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; pr ...
分类:
其他好文 时间:
2020-11-01 10:26:52
阅读次数:
15
#include <stdio.h> #include<string.h> #include<stdlib.h> //第一关代码 struct node {//此处填写代码,定义链表结点类型,包含一个存放整型数据的 成员,和一个指向下一个结点的成员 int data; struct node* ne ...
分类:
其他好文 时间:
2020-11-01 10:15:29
阅读次数:
17
#include <stdio.h> #include <math.h> int reverse(int data) { //请在此填写代码,实现将参数data的值反转,并返回的功能 /* begin */ int ans=0,cnt=0,a[1000],flag=0; if(data<0){ fl ...
分类:
其他好文 时间:
2020-11-01 10:14:19
阅读次数:
13
任务1 #include <stdio.h> int main() { int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d",d,e,f); return 0; } 对应数学运算式分别是0*100;50 ...
分类:
其他好文 时间:
2020-11-01 10:04:28
阅读次数:
12
#include<stdio.h> int main(){ int a=5,b=7,c=100,d,e,f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0; } 任务2 #include<s ...
分类:
其他好文 时间:
2020-11-01 10:00:57
阅读次数:
8
#include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0; } d=ac/b,e= ...
分类:
其他好文 时间:
2020-11-01 09:51:04
阅读次数:
8