随笔分类 -  C/C++

摘要:#include <iostream> #include <string> #include <cstdio> using namespace std; //显示菜单 void showmenu(); // int cnt = -1;//通讯录中的人数,一个人时为0 typedef struct P 阅读全文
posted @ 2020-04-28 18:16 亚斯娜 阅读(208) 评论(0) 推荐(0)
摘要:1-插入排序 1 #include "stdio.h" 2 3 #define N 6 4 5 void swap(int *a,int *b); 6 void InsertSort(int a[],int n); 7 8 9 int main() 10 { 11 int a[N]; 12 for( 阅读全文
posted @ 2020-03-31 11:14 亚斯娜 阅读(210) 评论(0) 推荐(0)