码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
C/C++结构体
结构变量的声明和初始化 #include <cstdio> int main() { struct { int age; int height; } x, y = {29, 180}; // 结构的成员在内存中按照声明的顺序存储 x.age = 30; x.height = 170; return ...
分类:编程语言   时间:2021-02-27 13:32:58    阅读次数:0
树状数组
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; typedef ...
分类:编程语言   时间:2021-02-27 13:27:43    阅读次数:0
dev-c++ 中写完源文件生成exe程序怎么避免运行闪退?
打开c语言生成exe文件,出现闪退的解决方法1.在代码段末尾加上getch();就可以了。(代码段末尾指你程序要执行完之前, 一般在return 0;之前) 2.加个头文件windows.h(#include<windows.h>),然后在代码段末尾加个 system("pause"); ...
分类:编程语言   时间:2021-02-26 13:26:07    阅读次数:0
windows驱动开发-HelloWorld驱动
#include <ntddk.h> extern "C" VOID DriverUnload(IN PDRIVER_OBJECT pDriverObject); extern "C" NTSTATUS DispatchRoutine(PDEVICE_OBJECT pDevObj, PIRP pIr ...
分类:Windows程序   时间:2021-02-26 13:22:41    阅读次数:0
用栈+循环实现走迷宫及演示c++
main.cpp 1 #include <stdio.h> 2 #include "mystack.h" 3 #include <stdlib.h> 4 #include <string.h> 5 #include <windows.h> 6 using namespace std; 7 #defi ...
分类:编程语言   时间:2021-02-26 13:21:08    阅读次数:0
爱因斯坦的数学题
题目: 爱因斯坦出了一道这样的数学题:有一条长阶梯,若每步跨2阶,则最最后剩一阶,若每步跨3 阶,则最后剩2阶,若每步跨5阶,则最后剩4阶,若每步跨6阶则最后剩5阶。只有每次跨7阶,最后才正好一阶不剩。请问这条阶梯共有多少阶? 问题分析与算法设计: 根据题意,阶梯数满足下面一组同余式: x≡1 (m ...
分类:其他好文   时间:2021-02-25 12:03:57    阅读次数:0
AcWing 1210. 连号区间数
原题链接 考察:枚举 错误思路: 三层for循环暴力. 做多了区间dp...枚举区间只能想到按长度枚举区间,但这道题不能这么枚举..... 正确思路: 按区间端点来枚举区间,连号区间的特点是最大值-最小值 = 右端点-左端点.随着区间向右边延长,而动态记录最值. 1 #include <iostre ...
分类:Windows程序   时间:2021-02-25 12:00:58    阅读次数:0
修改默认gcc版本
background 在以5.3为内核的ubuntu中编译3.10的内核时,出现: include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc5.h错误 尝试了网上说的将当前内核(5.3)的compiler-gcc.h复制 ...
分类:其他好文   时间:2021-02-24 13:28:44    阅读次数:0
求1到20的阶乘之和
1 #include<stdio.h> 2 #include<math.h> 3 int main() 4 { 5 long long int jiecheng(int a); 6 long long int sum=jiecheng(20); 7 printf("%lld",sum); 8 ret ...
分类:其他好文   时间:2021-02-24 13:27:15    阅读次数:0
Codeforces Round #697 (Div. 3) A. Odd Divisor
Aimee 只要不能写成$2N N \subseteq N*$就肯定有 #include<iostream> #include<cstdio> #include<cmath> #define int long long using namespace std; int n,m; int prime[ ...
分类:其他好文   时间:2021-02-24 13:26:00    阅读次数:0
84546条   上一页 1 ... 64 65 66 67 68 ... 8455 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!