码迷,mamicode.com
首页 > 其他好文
贪心/poj 1922 Ride to School
1 #include 2 #include 3 using namespace std; 4 int n,ans,v,t; 5 int main() 6 { 7 scanf("%d",&n); 8 while (n!=0) 9 {10 ans=0x7ffff...
分类:其他好文   时间:2014-12-11 23:41:22    阅读次数:199
贪心/Hdu 1050 Moving Tables
#include#includeusing namespace std;int a[220];int cmax(int a,int b){return a>b?a:b;}int main(){ int T; scanf("%d",&T); for (int t=1;tyy) ...
分类:其他好文   时间:2014-12-11 23:39:22    阅读次数:191
leetcode. Best Time to Buy and Sell Stock
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:其他好文   时间:2014-12-11 23:39:11    阅读次数:212
贪心/hdu 1052 Tian Ji -- The Horse Racing
1 #include 2 #include 3 #include 4 using namespace std; 5 int n; 6 int tian[1010],king[1010]; 7 bool cmp(int x,int y) 8 { 9 return x>y;10 }11 int...
分类:其他好文   时间:2014-12-11 23:41:12    阅读次数:146
Duilib学习三 响应按钮
1 #pragma once 2 #include 3 using namespace DuiLib; 4 5 #ifdef _DEBUG 6 # ifdef _UNICODE 7 # pragma comment(lib, "DuiLib_ud.lib") 8 # els...
分类:其他好文   时间:2014-12-11 23:40:51    阅读次数:289
自己动手写游戏:坦克撕逼大战
START:最近在公交车上无聊,于是用平板看了看下载的坦克大战的开发教程,于是在晚上回家后花了两天模仿了一个,现在来总结一下。一、关于坦克大战 《坦克大战》(Battle City)是1985年日本南梦宫Namco游戏公司开发并且在任天堂FC平台上,推出的一款多方位平面射击游戏。游戏以坦克战斗及保....
分类:其他好文   时间:2014-12-11 23:40:50    阅读次数:422
贪心/poj 1323 Game Prediction
1 #include 2 #include 3 #include 4 using namespace std; 5 int m,n,lose,x; 6 bool flag[1010],v[1010]; 7 bool cmp(int a,int b) 8 { 9 return a>b;10 ...
分类:其他好文   时间:2014-12-11 23:39:39    阅读次数:182
贪心/poj 1018 Communication System
1 #include 2 #include 3 #include 4 using namespace std; 5 const int INF=0xfffffff; 6 struct node 7 { 8 int b,p; 9 };10 node a[110][110];11 int m[...
分类:其他好文   时间:2014-12-11 23:38:57    阅读次数:222
贪心/poj 2437 Muddy roads
1 #include 2 #include 3 #include 4 using namespace std; 5 struct node 6 { 7 int st,ed; 8 }; 9 node a[10010];10 11 int n,L,ans,pre;12 13 bool cmp(...
分类:其他好文   时间:2014-12-11 23:38:53    阅读次数:250
结构体struct和typedef后面接指针的含义
typedef struct file{...}FileInfo, *FileP;上述程序中定义了一个结构体,结构体的名字为file,并且给其指针 取个别名为FileP,所以后续程序中出现FileP就相当于是struct file *
分类:其他好文   时间:2014-12-11 23:37:47    阅读次数:264
GNU Autotools的使用方法
手工写Makefile是一件很有趣的事情,对于比较大型的项目,如果有工具可以代劳,自然是一件好事。在Linux系统开发环境中,GNU Autotools 无疑就充当了这个重要角色。(在Windows系统的开发环境中,IDE工具,诸如Vis...
分类:其他好文   时间:2014-12-11 22:36:06    阅读次数:402
easyui视频教程
视频目录: sypro示例程序(springMvc+hibernate4+easyui) sshe示例程序(struts2+spring3+hibernate4+easyui)(Maven构建) easyui1.2.6整站文件.zip jquery1.7.2中文API修正版.chm jquery.easyui-1.2.5源码未压缩版...
分类:其他好文   时间:2014-12-11 22:36:42    阅读次数:428
包一定要引对啊
好吧,我承认我今天弱智了。连续N天的持续熬夜,终于反应变迟钝了。 今天指导一个小弟错误,由于小弟是新手,压根没注意他引的包,结果一直纠结,明明注解什么的都没问题,字段名也没问题,但就是报低级的 org.sp...
分类:其他好文   时间:2014-12-11 22:37:10    阅读次数:202
用 Github、Markdown 和 GitBook 写开源书
原文同步至:http://www.waylau.com/using-github-markdown-gitbook-write-open-source-books/ 之前一直是在 Github 上写开源书(见:[http://www.waylau.com/books/](http://www.waylau.com/books/))但,由于 ...
分类:其他好文   时间:2014-12-11 22:34:58    阅读次数:339
Bean的自动装配Autowiring
例:有两个类AutoWiringDao和AutoWiringService两个类,AutoWiringDao是AutoWiringService的一个属性.在没用自动装配之前是这样配置的: <?xml version="1.0" encoding="UTF-8" ?> <beans ........> <bean id="...
分类:其他好文   时间:2014-12-11 22:34:09    阅读次数:251
compose安装
安装 - Windows 使用安装程序 这是将 Composer 安装在你机器上的最简单的方法。 下载并且运行?Composer-Setup.exe,它将安装最新版本的 Composer ,并设置好系统的环境变量,因此你可以在任何目录下直接使用?c...
分类:其他好文   时间:2014-12-11 22:36:20    阅读次数:187
【软件工程】面向对象的设计
面向对象分析是获取和认识用户需求,对问题领域进行分析、确认并建立问题域概念模型的一个过程。而面向对象设计(OOD)则是从计算机技术的角度,将分析阶段得到的概念模型转换成软件系统的技术实现方案,并在功能、性能及成本方面满足用户和质量要求的过程。是一个将问题空间中的面向对象模型转换为求解空间中的技术实现模型的过程。     分析是提取和整理用户需求,并建立问题域精确模型的过程。设计则是把分析阶段得到...
分类:其他好文   时间:2014-12-11 22:32:41    阅读次数:287
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!