码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
Transformation HDU - 4578
简单线段树操作 咕咕咕 Transformation HDU - 4578 vj talk is cheap, chow the code. #include <iostream> #include <cstring> using namespace std; typedef long long l ...
分类:其他好文   时间:2020-12-23 12:30:38    阅读次数:0
实验二——动态规划·LCS
/*Hatsune Miku 4ever!*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _for(i,a,b) for(int i = (a);i < b;i ++) #define _r ...
分类:其他好文   时间:2020-12-23 11:47:45    阅读次数:0
实验三——贪心算法&#183;哈夫曼编码
/*Hatsune Miku 4ever!*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _for(i,a,b) for(int i = (a);i < b;i ++) #define _r ...
分类:编程语言   时间:2020-12-23 11:45:22    阅读次数:0
实验四——回溯法·n皇后
/*Hatsune Miku 4ever!*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define _for(i,a,b) for(int i = (a);i < b;i ++) #define _r ...
分类:其他好文   时间:2020-12-23 11:43:21    阅读次数:0
实验五
任务一 #include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", & ...
分类:其他好文   时间:2020-12-22 13:10:47    阅读次数:0
3n+1猜想
#include<stdio.h>intmain(){intn;/输入的正整数n/intstep=0;/计算步数/scanf("%d",&n);/*输入正整数n*/for(step=0;n>1;step++){if(n%2==0)/*如果n是偶数,则除以2*/n=n/2;else/*如果n是奇数,则用3n+1除以2*/n=(3*n+1)/2;}/*结束for循环*/pri
分类:其他好文   时间:2020-12-22 13:07:07    阅读次数:0
QT-QPushButton
# QT-QPushButton QPushButton Class | Header: | #include <QPushButton> || | || qmake:(模块) | QT += widgets || Inherits:(继承) | [QAbstractButton](qabstrac ...
分类:其他好文   时间:2020-12-22 12:34:05    阅读次数:0
ubuntu16.04环境下fatal error: lua.h: No such file or directory
1.apt-get install liblua5.1-0-dev 2.编辑hello.c #include "lua.h" #include "lauxlib.h" int main(int argc, char **argv) { lua_State *L = luaL_newstate(); ...
分类:系统相关   时间:2020-12-22 12:31:57    阅读次数:0
指针联系
前三题: #include<stdlib.h> #include<time.h> void bubble(int* px); void chioce(int* q); void del(int n, int len, int* py); int main() { int a[10], * p, b[ ...
分类:其他好文   时间:2020-12-22 11:53:06    阅读次数:0
例子2
#include<stdio.h>/当fahr=0,20,……,300时,分别打印华氏温度与摄氏温度对照表/intmain(){printf("摄氏温度-华氏温度对照表\n");intfahr;for(fahr=300;fahr>=0;fahr=fahr-20){printf("%3d%6.1f\n",fahr,(5.0/9.0)(fahr
分类:其他好文   时间:2020-12-22 11:43:41    阅读次数:0
84546条   上一页 1 ... 93 94 95 96 97 ... 8455 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!