码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
[文件]学生信息的简单读入与输出
1 #include<stdio.h> 2 #include<malloc.h> 3 #include<stdlib.h> 4 typedef struct student{ 5 char name[10]; 6 char num[11]; 7 int age; 8 float score; 9 } ...
分类:其他好文   时间:2021-01-08 10:31:03    阅读次数:0
c语言中逆向显示数值
1、 #include <stdio.h> int main(void) { int i; do { puts("please input an integer."); printf("i = "); scanf("%d", &i); } while (i <= 0); while (i > 0) ...
分类:编程语言   时间:2021-01-08 10:28:25    阅读次数:0
c语言while循环控制循环次数操作不同写法的结束变量差异
1、 #include <stdio.h> int main(void) { int i; puts("please input an integer."); printf("i = "); scanf("%d", &i); while (i > 0) { putchar('*'); i = i - ...
分类:编程语言   时间:2021-01-07 12:38:31    阅读次数:0
c语言中计算两个整数之间的所有整数的和
1、 #include <stdio.h> int main(void) { int a,b; puts("please input two integers."); printf("a = "), scanf("%d", &a); printf("b = "), scanf("%d", &b); ...
分类:编程语言   时间:2021-01-07 11:48:01    阅读次数:0
「HAOI2018」字串覆盖
显然的贪心就是尽可能取位置靠前的点 那么问题转化成了维护另一个子串的 \(endpos\) 在这个子串的出现位置 按照古老的套路就是把一个建出来自动机另一个跑匹配 如果 \(l_{ed[r]}<r-l+1\) 那么答案就是 \(0\) 反之考虑当前的点的在 \([tl,tr]\) 中所有的 \(en ...
分类:其他好文   时间:2021-01-06 12:21:04    阅读次数:0
vs2019 常用数据结构 纯C语言 头文件实现 (持续更新改错中)单链表,
1.单链表: 1 #pragma once 2 #ifndef _List_H 3 #include<stdio.h> 4 #include<stdlib.h> 5 #define ElementType int 6 7 struct Node; 8 typedef struct Node* Ptr ...
分类:编程语言   时间:2021-01-06 12:20:27    阅读次数:0
B elephant
小象涂色 (elephant.pas/.c/.cpp) 时间限制:1s,空间限制 128MB 题目描述: 小象喜欢为箱子涂色。小象现在有 c 种颜色,编号为 0~c-1;还有 n 个箱子,编号为 1~n,最开始每个箱子的颜色为 1。小象涂色时喜欢遵循灵感:它将箱子按编号排成一排, 每次涂色时,它随机 ...
分类:其他好文   时间:2021-01-06 12:17:13    阅读次数:0
The Suspects POJ - 1611
原题链接 考察:并查集基础 在读入学生团体的时候,没必要用数组存储,直接将他们并入树中即可,注意:当我们计算人数的时候,已经在一个集合中的人不能重复计算 当时看y总犯了这个错误,结果自己写又错了233 1 #include <iostream> 2 #include <cstdio> 3 using ...
分类:其他好文   时间:2021-01-06 11:59:44    阅读次数:0
二分查找
二分查找可以理解为折纸,对半折。 主要:你需要主要是二分查找的数据是有序的。 它的时间复杂度:log2(n) 对应的算法师折半查找法: 代码: #include <stdio.h> #include <stdlib.h> #define keyType int typedef struct { ke ...
分类:其他好文   时间:2021-01-06 11:59:08    阅读次数:0
NXOpen遍历实体移除参数和改色
C++ //用户头文件#include <NXOpen/DisplayManager.hxx>#include <NXOpen/Body.hxx>#include <NXOpen/BodyCollection.hxx>#include <NXOpen/NXException.hxx>#include ...
分类:其他好文   时间:2021-01-06 11:56:36    阅读次数:0
84546条   上一页 1 ... 87 88 89 90 91 ... 8455 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!