自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 用C/C++创建二叉树并进行中序遍历

代码如下:#include<iostream>#include<stdlib.h>#include<conio.h>#include<windows.h>using namespace std;typedef struct binary_Tree//定义树的数据域{ int num; struct binary_Tree *left; struct binary_Tree *right;}Node;typedef s...

2021-11-10 21:04:22 983

原创 用C/C++实现单链表存入数据并展示数据的操作

具体代码如下:#include<iostream>#include<windows.h>#include<stdlib.h>using namespace std;typedef struct node{ int num; struct node *next;}nodee,*nodeptr;nodeptr numlist;void initlist()//初始化单链表{ numlist=(nodeptr)malloc(size...

2021-11-10 20:35:29 2084

原创 用C/C++编写一个可以获取时间的代码

主要通过调用time.h头文件来实现具体代码如下:#include<iostream>#include<time.h>using namespace std;int main(){ time_t p; struct tm *t; time(&p); t=gmtime(&p); cout<<"输出你的电脑现在的时间:"<<endl; cout<<t->tm_yea...

2021-11-10 20:20:47 1784

原创 用C/C++编写密码输入

//主要通过getch()来实现代码如下:#include<iostream>#include<conio.h>using namespace std;int main(){ int k=0; char c; char str[200]; while((c=getch())!='\r') { if(c=='\b') { if(k>0) {...

2021-11-10 20:00:50 2094

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除