虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

Large-margin

  • c语言实验操作题

    设计一个可进行复数运算的程序,要求能够进行6种基本运算:1)由输入实部和虚部数值生成一个复数;2)对两个复数求和;3)对两个复数求差;4)对两个复数求积;5)从已知复数中取出实部;6)从已知复数中取出虚部。程序提供交互界面,用户能够选择进行指定功能。

    标签: c语言 实验 操作

    上传时间: 2018-05-06

    上传用户:1693135964

  • 01-按键触发NB网络附着

    基于简单易用的低功耗M4单片机STM32L476设计, L4系列中的性价比之王 分离式的NB模块设计,底板与NB小系统板可插拔,默认搭载NB101小系统板。 板载移远低功耗GPS定位模块L70-R。 板载GPS备用电源,支持GPS热启动,实现快速定位。 板载工业级的温湿度传感器SHT20,可用于极端条件下的温湿度采集。 板载环境光传感器。 板载优雅的白光LED灯珠。 板载MicroSD卡卡座,支持FATFS文件系统,可用于NB应用中的固件/数据存储。 板载USB转UART电路,支持NB模块和GPS模块切换到电脑端调试和使用。 板载4个用户按键和1个指示灯。 板载20Pin扩展GPIO,引出常用的I2C,SPI,UART,CAN等MCU外设。扩展无忧。 整板低功耗设计,可外接电池供电,背面留有电池接插件。 支持谷雨云透传平台,支持开发板数据透传到客户服务器或任意电脑等设备。 小巧灵活,开发板PCB面积比信用卡略大些。

    标签: 01 按键触发 网络

    上传时间: 2018-05-08

    上传用户:pshr960405

  • 旅馆信息管理系统

    采用了三层结构的设计思想,把界面和业务逻辑分开,界面只负责显示,而业务逻辑负责,业务流程的实现。 例如本实例中,RoomManageForm则负责房间管理的界面展示,而具体房间管理的实现由RoomManage去实现。这样做的好处是,业务逻辑跟界面分离,便宜管理,便于扩充,程序思路,结构清晰。  

    标签: 信息管理系统

    上传时间: 2018-05-09

    上传用户:ewei

  • 数据结构实验

    #include <stdio.h>   #include <stdlib.h> ///链式栈      typedef struct node   {       int data;       struct node *next;   }Node,*Linklist;      Linklist Createlist()   {       Linklist p;       Linklist h;       int data1;       scanf("%d",&data1);       if(data1 != 0)       {           h = (Node *)malloc(sizeof(Node));           h->data = data1;           h->next = NULL;       }       else if(data1 == 0)       return NULL;       scanf("%d",&data1);       while(data1 != 0)       {           p = (Node *)malloc(sizeof(Node));           p -> data = data1;           p -> next = h;           h = p;           scanf("%d",&data1);       }       return h;   }      void Outputlist(Node *head)   {       Linklist p;       p = head;       while(p != NULL )       {           printf("%d ",p->data);           p = p->next;       }       printf("\n");   }      void Freelist(Node *head)   {       Node *p;       Node *q = NULL;       p = head;       while(p != NULL)       {           q = p;           p = p->next;           free(q);       }   }      int main()   {       Node *head;       head = Createlist();          Outputlist(head);          Freelist(head);          return 0;   }   2.顺序栈 [cpp] view plain copy #include <iostream>   #include <stdio.h>   #include <stdlib.h> ///顺序栈   #define MaxSize 100      using namespace std;      typedef

    标签: 数据结构 实验

    上传时间: 2018-05-09

    上传用户:123456..

  • 数据结构实验

    #include <iostream> #include <stdio.head> #include <stdlib.head> #include <string.head> #define ElemType int #define max 100 using namespace std; typedef struct node1 { ElemType data; struct node1 *next; }Node1,*LinkList;//链栈 typedef struct { ElemType *base; int top; }SqStack;//顺序栈 typedef struct node2 { ElemType data; struct node2 *next; }Node2,*LinkQueue; typedef struct node22 { LinkQueue front; LinkQueue rear; }*LinkList;//链队列 typedef struct { ElemType *base; int front,rear; }SqQueue;//顺序队列 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 //1.采用链式存储实现栈的初始化、入栈、出栈操作。 LinkList CreateStack()//创建栈 { LinkList top; top=NULL; return top; } bool StackEmpty(LinkList s)//判断栈是否为空,0代表空 { if(s==NULL) return 0; else return 1; } LinkList Pushead(LinkList s,int x)//入栈 { LinkList q,top=s; q=(LinkList)malloc(sizeof(Node1)); q->data=x; q->next=top; top=q; return top; } LinkList Pop(LinkList s,int &e)//出栈 { if(!StackEmpty(s)) { printf("栈为空。"); } else { e=s->data; LinkList p=s; s=s->next; free(p); } return s; } void DisplayStack(LinkList s)//遍历输出栈中元素 { if(!StackEmpty(s)) printf("栈为空。"); else { wheadile(s!=NULL) { cout<<s->data<<" "; s=s->next; } cout<<endl; } } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 //2.采用顺序存储实现栈的初始化、入栈、出栈操作。 int StackEmpty(int t)//判断栈S是否为空 { SqStack.top=t; if (SqStack.top==0) return 0; else return 1; } int InitStack() { SqStack.top=0; return SqStack.top; } int pushead(int t,int e) { SqStack.top=t; SqStack.base[++SqStack.top]=e; return SqStack.top; } int pop(int t,int *e)//出栈 { SqStack.top=t; if(!StackEmpty(SqStack.top)) { printf("栈为空."); return SqStack.top; } *e=SqStack.base[s.top]; SqStack.top--; return SqStack.top; } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 //3.采用链式存储实现队列的初始化、入队、出队操作。 LinkList InitQueue()//创建 { LinkList head; head->rear=(LinkQueue)malloc(sizeof(Node)); head->front=head->rear; head->front->next=NULL; return head; } void deleteEle(LinkList head,int &e)//出队 { LinkQueue p; p=head->front->next; e=p->data; head->front->next=p->next; if(head->rear==p) head->rear=head->front; free(p); } void EnQueue(LinkList head,int e)//入队 { LinkQueue p=(LinkQueue)malloc(sizeof(Node)); p->data=e; p->next=NULL; head->rear->next=p; head->rear=p; } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 //4.采用顺序存储实现循环队列的初始化、入队、出队操作。 bool InitQueue(SqQueue &head)//创建队列 { head.data=(int *)malloc(sizeof(int)); head.front=head.rear=0; return 1; } bool EnQueue(SqQueue &head,int e)//入队 { if((head.rear+1)%MAXQSIZE==head.front) { printf("队列已满\n"); return 0; } head.data[head.rear]=e; head.rear=(head.rear+1)%MAXQSIZE; return 1; } int QueueLengthead(SqQueue &head)//返回队列长度 { return (head.rear-head.front+MAXQSIZE)%MAXQSIZE; } bool deleteEle(SqQueue &head,int &e)//出队 { if(head.front==head.rear) { cout<<"队列为空!"<<endl; return 0; } e=head.data[head.front]; head.front=(head.front+1)%MAXQSIZE; return 1; } int gethead(SqQueue head)//得到队列头元素 { return head.data[head.front]; } int QueueEmpty(SqQueue head)//判断队列是否为空 { if (head.front==head.rear) return 1; else return 0; } void travelQueue(SqQueue head)//遍历输出 { wheadile(head.front!=head.rear) { printf("%d ",head.data[head.front]); head.front=(head.front+1)%MAXQSIZE; } cout<<endl; } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 //5.在主函数中设计一个简单的菜单,分别测试上述算法。 int main() { LinkList top=CreateStack(); int x; wheadile(scanf("%d",&x)!=-1) { top=Pushead(top,x); } int e; wheadile(StackEmpty(top)) { top=Pop(top,e); printf("%d ",e); }//以上是链栈的测试 int top=InitStack(); int x; wheadile(cin>>x) top=pushead(top,x); int e; wheadile(StackEmpty(top)) { top=pop(top,&e); printf("%d ",e); }//以上是顺序栈的测试 LinkList Q; Q=InitQueue(); int x; wheadile(scanf("%d",&x)!=-1) { EnQueue(Q,x); } int e; wheadile(Q) { deleteEle(Q,e); printf("%d ",e); }//以上是链队列的测试 SqQueue Q1; InitQueue(Q1); int x; wheadile(scanf("%d",&x)!=-1) { EnQueue(Q1,x); } int e; wheadile(QueueEmpty(Q1)) { deleteEle(Q1,e); printf("%d ",e); } return 0; }

    标签: 数据结构 实验

    上传时间: 2018-05-09

    上传用户:123456..

  • 贴片铝电解电容封装库

    贴片铝电解电容封装库 SMD Aluminum Electrolytic Capacitors VE Features ‧ 3 ~ 16φ, 85℃, 2,000 hours assured ‧ Chip type large capacitance capacitors ‧ Designed for surface mounting on high density PC board. ‧ RoHS Compliance

    标签: 贴片 封装库 铝电解电容

    上传时间: 2018-05-09

    上传用户:angel20041401

  • java编程 PL0编译器(Java版)

    实现一个Java版的PL0编译器。 (1) 能运行由《编译原理》教材中定义的PL0语言编写而成的源程序 (2) 参考C版源代码,遵循编译器的基本结构,应用面向对象软件设计方法重新实现。不应仅对C版代码作简单的翻译。 (3) 提供简单的断点、单步调试功能,用户能实时指定并查看某个变量的值 (4) 包括测试例子 直接运行jar文件 简单说明文档

    标签: java Java PL0 编程 编译器

    上传时间: 2018-05-13

    上传用户:aloger

  • 飞机场模拟-c++

    考虑一个小型繁忙的飞机场,该飞机场只有一条飞机跑道。在每个单位时间内,只有一架飞机可以着陆或者只有一架飞机可以起飞,不允许同时着陆和起飞。飞机的到达和起飞时是随机的,因此在任何时刻,该机场跑道可能是空闲的,或者有一架飞机正在着陆或起飞,也可能有若干架飞机在等待着陆或等待起飞。

    标签: 飞机 模拟

    上传时间: 2018-05-19

    上传用户:一缕迷失的光

  • 创新实践大报告任务书

    创新实践大报告题目 设计要求:  1、用UML向对象工具分析设计系统 2、程序设计中要应用面向接口编程的思想编程     3、程序设计采用visual  studio 的窗体编程实现

    标签: 创新 实践 报告

    上传时间: 2018-05-28

    上传用户:hugerlove

  • S7300-400梯形图编程手册

    S7300-400梯形图编程手册 S7300-400梯形图编程手册 S7300-400梯形图编程手册 S7300-400梯形图编程手册 S7300-400梯形图编程手册

    标签: 7300 400 梯形图 编程手册

    上传时间: 2018-05-30

    上传用户:nanshan961