#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<time.h> int main01() { //常量 const int a=1 ...
分类:
其他好文 时间:
2020-08-27 17:13:47
阅读次数:
62
1 /* 2 线性表的排序算法 3 cza 4 2020/7/1 5 */ 6 #include<iostream> 7 #include<stdio.h> 8 int num[100]; 9 using namespace std; 10 11 int getMix(int left,int ri ...
分类:
编程语言 时间:
2020-08-27 17:06:03
阅读次数:
59
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #define GPT_HEADER_SIGNATURE 0x5 ...
分类:
编程语言 时间:
2020-08-26 18:34:39
阅读次数:
57
#在#include<stdio.h>中存在sscanf函数能将字符串中分成多个部分,分别转化为不同类型进行返回; ##sscanf(char *s,type,destination) //s为字符数组名,type为转化的种类(与scanf中的格式相同),destination为返回的目标 inst ...
分类:
编程语言 时间:
2020-08-24 16:39:46
阅读次数:
59
//选择法对输入的10个字符按ASCII码大小进行排序 #include <stdio.h> #define N 10 int main(){ char a[N]; char t; int i,j; printf("请输入10个字符:\n"); for(i=0;i<N;i++){ scanf("%c ...
分类:
编程语言 时间:
2020-08-21 16:37:06
阅读次数:
95
约瑟夫问题: #include <stdio.h> #include <stdlib.h> typedef struct node{ int data; struct node * next; }node; //创建一个有n个结点的循环链表 node * initLink(int n){ node ...
分类:
其他好文 时间:
2020-08-20 18:19:30
阅读次数:
49
struct关键字是用来定义一个新的类型,这个新类型里面可以包含各种其他类型,称为结构体。 #include <stdio.h> typedef struct { int a; int b; }Stu; Stu getStu(int x, int y) { Stu result; result.a ...
分类:
编程语言 时间:
2020-08-19 19:42:50
阅读次数:
65
#include<iostream> #include<stdio.h> #include<string.h> #include<math.h> using namespace std; int fact(int n,int p) //十进制转为任意进制 (n是十进制数,p是要转化进制选择) { i ...
分类:
其他好文 时间:
2020-08-18 15:41:07
阅读次数:
103
visual studio 2017或2019新建一个项目 针对该项目鼠标右击,管理 NuGet程序 浏览中安装2个插件,标记红色的 安装之后打开程序包管理控制台 输入Scaffold-DbContext "Data Source=172.16.0.129;User ID=sa;Password=R ...
分类:
数据库 时间:
2020-08-17 17:53:14
阅读次数:
192
恢复内容开始 visual studio 2017或2019新建一个项目 针对该项目鼠标右击,管理 NuGet程序 浏览中安装2个插件,标记红色的 安装之后打开程序包管理控制台 输入Scaffold-DbContext "Data Source=172.16.0.129;User ID=sa;Pas ...
分类:
数据库 时间:
2020-08-15 23:59:16
阅读次数:
129