2020年3月24日
摘要: #include<iostream> using namespace std; #define ElemType int const int MaxSize=50; typedef struct{ ElemType data[MaxSize]; int front=0,rear=0; }SqQueu 阅读全文
posted @ 2020-03-24 22:18 ~明月几时有 阅读(319) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; #define ElemType int const int MaxSize=50; typedef struct{ ElemType data[MaxSize]; int top=-1; }SqStack; bool 阅读全文
posted @ 2020-03-24 21:44 ~明月几时有 阅读(218) 评论(0) 推荐(0)
摘要: #include <stdio.h> unsigned char rotate(unsigned char number,unsigned char bit); int main(void){ unsigned char number,bit; printf("input a number and 阅读全文
posted @ 2020-03-24 11:36 ~明月几时有 阅读(297) 评论(0) 推荐(0)
摘要: #include<stdio.h> typedef unsigned char uc; uc num; uc rotate(uc num,uc bit){ uc i,high=8; for(i=0;i<bit;i++) if(num&1<<high-1)num=num<<1|1; else num< 阅读全文
posted @ 2020-03-24 11:34 ~明月几时有 阅读(202) 评论(0) 推荐(0)
摘要: #include<stdio.h> #define YES 1 #define NO 0 #define SOLID 0 #define DOTTED 1 #define DASHED 2 #define BLUE 4 #define GREEN 2 #define RED 1 #define BL 阅读全文
posted @ 2020-03-24 11:14 ~明月几时有 阅读(287) 评论(0) 推荐(0)