lib.cpp

来自「数据结构实验报告等综合内容」· C++ 代码 · 共 26 行

CPP
26
字号
#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 + =
减小字号Ctrl + -
显示快捷键?