码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
指针的指针
示例 1 #include 2 using namespace std; 3 int main() 4 { 5 int a = 35; 6 int *b1 = &a; 7 int **b2 = &b1; 8 cout using namespace std;int ...
分类:其他好文   时间:2015-07-01 09:54:33    阅读次数:134
7月1日 cf总结
7月1日 cf总结A题:水题,题意看半天,30分钟才A。#include#include#include#include#include#include#include#include#include#include#include#include#include#define ll long lo...
分类:其他好文   时间:2015-07-01 08:35:49    阅读次数:153
HackerRank - "Stock Maximize"
First I thought it should be solved using DP, and I gave a standard O(n^2) solution:#include #include #include #include using namespace std;#define RE...
分类:其他好文   时间:2015-07-01 07:31:05    阅读次数:158
树莓派滚动显示
使用实验板实现lcd(或者七段数码管)的滚动显示,基本要求:编程控制Lcd(或者七段数码管)能滚动显示程序 中自定义的字符串,并且能够用按钮停止/开始滚动设计电路:实物连接:代码:#include #include #include #define DIGIT1 9#define DIGIT2 13...
分类:其他好文   时间:2015-07-01 06:09:24    阅读次数:180
利用树莓派实现简单的计算器
在实验板上实现一个简单的计算器,要求在实验板的命令行运行程序,输入两个100以内的数字以及运算符 (+,-,*,/),然后计算结果并在数码管上显示计算结果。电路设计如下:实物连接:代码如下:#include #include #include #define DIGIT1 9#define DIGI...
分类:其他好文   时间:2015-07-01 06:07:37    阅读次数:223
Codeforces Round #311 (Div. 2)A Ilya and Diplomas
【比赛链接】click here~~ 【题目大意】 n个人,获取一到三等文凭,每门文凭有大小范围,求最后文凭各颁发多少 【解题思路】直接枚举了, 看完题,赶紧写了一发代码,发现居然错过注册时间,系统提示不能提交代码,真是醉了~~,以后还是得提前注册: A题,比较简单: 代码: #include #include using namespace std; int main() { ...
分类:其他好文   时间:2015-07-01 01:05:34    阅读次数:308
poj 3154 Graveyard 贪心
//poj 3154 //sep9 #include #include using namespace std; double a[2048]; double b[2048]; int main() { int n,m; while(scanf("%d%d",&n,&m)==2){ for(int i=0;i<n;++i) a[i]=i*(10000.0/n); for(i...
分类:其他好文   时间:2015-07-01 01:04:31    阅读次数:125
单链表
"Slist.h" #pragma once #define __Slist_H__ #ifdef __Slist_H__ #include #include #include typedef int DataType; typedef struct Node { DataType data; struct Node* next; }Node, *PLinkList; voi...
分类:其他好文   时间:2015-07-01 01:04:28    阅读次数:146
错误检测
#include void exit(int status); ///检测文件打开失败 std::ifstream in(file); if(in.fail()){ std::cerr<<"Can't open"<<file<<std::endl; exit(1); }...
分类:其他好文   时间:2015-06-30 23:45:40    阅读次数:253
数据结构-中序转后序
#include#include#include#include#includeusing namespace std;void print(vector &);void transform(vector&,vector&);int main(){ cout _in_vec; char tmp; s...
分类:其他好文   时间:2015-06-30 23:33:51    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!