📄 lib.cpp
字号:
#include<stdio.h>
#include<iostream.h>
#include<math.h>
#include"lib.h"
void main()
{
cout<<"This is a C++ program!"<<endl;
int a[N],i,j,m;
struct nodetype *la=new nodetype;
printf("Please enter 5 numbers:\n");
red(a);
*la=crt_linklist(la,a);
printf("Please enter the position of the number you want to delete:\n");
scanf("%d",&i);
del_linklist(la,i);
writ(la);
printf("\nPlease enter the position of the number you want to insert:\n");
scanf("%d",&j);
printf("give the number:\n");
scanf("%d",&m);
ins_linklist(la,j,m);
writ(la);
cout<<endl;
cout<<"Press any key to continue."<<endl;
cin;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -