- 博客(20)
- 资源 (1)
- 收藏
- 关注
原创 单链表操作删除,插入,创建操作
#include<stdio.h>#include<stdlib.h>#define ERROR -1#define OK 1typedef int status;typedef struct lnode{ int data; struct lnode *next;}lnode ,*linklist;in...
2019-09-23 17:10:49
293
原创 循环队列
#include<stdio.h>#include<stdlib.h>#define MAXQSIZE 100typedef int Status;typedef int ElemType;typedef struct{ ElemType *base; int front; int rear;}SqQueue;//初始化循环队列St...
2019-09-10 18:24:07
243
原创 顺序队列
#include<stdio.h>#include<stdlib.h>typedef signed char Status;//define queue node structtypedef struct QNode{ int data; struct QNode *next; }QNode,*Queue...
2019-09-10 18:21:56
168
原创 数据结构----循环队列
#include<stdio.h>#include<malloc.h>#define MAXSIZE 100#define OK 1#define OVERFLOW 1#define ERROR 1typedef int Status;typedef int QElemType ;typedef struct sqqueue{ QElemType...
2019-02-22 16:42:23
246
原创 单链表队列
#include<stdio.h>#include<malloc.h>typedef int QElemType;#define OVERFLOW 1#define Status 0#define OK 1typedef struct QNode{ QElemType data; struct QNode *next; ...
2019-02-22 12:11:22
363
原创 //线性表链式储存(链表)
#include<stdio.h>#include<malloc.h>typedef int datatype;typedef struct link_node{ datatype info; struct link_node *next;}node;//创建链表????node *createlist(){ node ...
2019-02-21 15:51:04
205
原创 数据结构之顺序表
//顺序表的创建与输出#include<stdio.h>#define MAXSIZE 4typedef int typedata; typedef struct data{ int size; int a[MAXSIZE]; }seq_list;//顺序表的创建void create(seq_list *s){ ...
2019-02-20 16:54:04
213
原创 C库
int strcmp(const char *str1, const char *str2) int strncmp(const char *str1, const char *str2,size_t n); char *strstr(const char *str1,const char *str2);int atoi(const char *nptr);long atol(con...
2019-01-15 21:22:33
162
原创 C字符串逆序输出
//C字符串逆序输出#include "pch.h"#include <stdio.h>#include<string.h>using namespace std;int main(){ char str[20]; scanf("%s", str); unsigned int i = 0; int j = st...
2019-01-11 19:21:01
606
原创 C++通过webservice 访问C#数据库
云课堂桌面知识总结将桌面数据储存于数据库中1、先打通 webserivce 到数据库通道,这一步比较简单,通过调用 bll- dal - asmx 三层依次调用访问。2、c++桌面通过调用接口定义接口做了一段串拼接抄作 int CSeatArrangeMainDlg::WriteSeatSettingInfoIntoDB(int RoomId, string Teacher
2017-09-08 17:09:34
570
原创 菜鸟一样要长大
十转八进制#include "stdafx.h"#include"iostream"#include#include#includeusing namespace std;int main(int argc, char* argv[]){ int n; cin>>n; int a[100]; int i=0; while(n!=0){
2014-03-28 23:29:43
396
原创 simple
//1、输入任意4个字符(如:abcd),并按反序输出(如:dcba) #include "stdafx.h"#include"iostream"#includeusing namespace std;int main(int argc, char* argv[]){ string a; cin>>a; int high=a.size()-1; in
2014-03-28 01:09:14
477
原创 paixu
//1.冒泡 #include "stdafx.h"#include"iostream"using namespace std;int main(int argc, char* argv[]){ int i,j; int a[10]; for(i=0;i cin>>a[i]; int temp; for(i=0;i { for(j=
2014-03-22 23:35:20
448
原创 测试时钟显示程序通过, 点阵显示 碰到一些困难 发现调试比写代码更纠结。代码没错 烧到板子里就是打不到想要的现象
//这个代码包含时钟和点阵 部分主函数代码未附上 需要自己添加#include#include#define dataPort P0//sbit latch1=P2^0; //ds//sbit latch2=P2^1; //wssbit LATCH=P1^0;sbit SRCLK=P1^1;sbit SER= P1^2;sbit LATCH1=
2014-03-18 00:25:31
704
原创 今天就到这了 提高编程只有不断超越 和默默无闻
①//插入一个数后顺序输出 难度:中#include "stdafx.h"#includeusing namespace std;int main(int argc, char* argv[]){ int i,temp1,temp2,b,j,k; int a[11]={0,1,2,3,4,5,6,7,9,10}; cin>>b; if(b>a
2014-03-18 00:18:17
523
原创 比较简单 就到这了
// w.cpp : Defines the entry point for the console application.////①//100高落地 反弹原来高度一半 求第10次落地,共经?米和 第10次返回的高度 #include "stdafx.h"#includeusing namespace std;int main(int argc, char* ar
2014-03-17 01:05:09
436
原创 数码管 定时器 去抖动
①中断程序 延时2s 定时器0void init_timer(){ TMOD|=0X01; //DIS EA=1; ET0=1; TR0=1; }void main(void) { P1=0XFF; init_timer(); while(1) {P1=~P1;} }vo
2014-03-15 22:59:25
1391
原创 c/c++ 持续公布 敬请期待
one://输出奇数位 --------控制台都是以字符输出的,string可以直接用下标代替#include "stdafx.h"#include//#include//#include"algorithm"#include#includeusing namespace std;int main(int argc, char* argv[]){
2014-03-15 17:50:13
430
原创 完成了 哦也
//one:十----八进制转换#include "stdafx.h"#includeusing namespace std;int main(int argc, char* argv[]){ /* int num,i=0; int a[50]; cin>>num; while(num!=0) { a[i++]=num%8; nu
2014-03-15 01:40:34
580
原创 c/c++
//②选择排序;#include "stdafx.h"#includeusing namespace std;int main(int argc, char* argv[]){ /* char a[10]; int i; for(i=0;i cin>>a[i]; int j,max,k; for(j=0;j { max=a[
2014-03-13 01:21:20
442
C# WinForm 实践开发教程
2017-08-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人