码迷,mamicode.com
首页 >  
搜索关键字:op    ( 1662个结果
hdu 2141 Can you find it? 二分
#include #include using namespace std; #define ll __int64 int a[600]; int c[600]; int main() { int i,l,m,r,flag,op,tem,j; setmy; int cas=1; while(scanf("%d%d%d",&l,&m,&r)!=EOF) { my.clear(); for(i=0;i<l;i++) { scanf("%d",&a...
分类:其他好文   时间:2014-09-04 14:56:19    阅读次数:205
HDU 4707 水DFS
所有房子组成一颗树,求出离根节点0的距离大于d的节点数目 DFS+vector存边 水过 #include "stdio.h" #include "string.h" #include "vector" using namespace std; vectormapp[100010]; int ans,d; void dfs(int cur,int pre,int op) { ...
分类:其他好文   时间:2014-09-03 21:21:39    阅读次数:344
qt使用std::cout 打印信息
场景:在Qt里,不能使用std::cout,所以使用下面的函数就可以打印cout的内容了 #include #include static void OpenConsole() { AllocConsole(); HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE); int hCrt = _op...
分类:其他好文   时间:2014-09-02 19:58:05    阅读次数:298
Median-求中位数,文件中数字升序排列
Median-求中位数,文件中数字升序排列://Median-求中位数,文件中数字升序排列 #include<iostream> #include<fstream> #include<cstdlib> intmain() { usingnamespacestd; ifstreamfin; ofstreamfout; doublemedian,tem1,tem2; intcount=1; fin.op..
分类:其他好文   时间:2014-09-02 12:34:15    阅读次数:196
回调函数
回调函数在看LWIP时,见到用回调函数,再看某老外公司OPC源码时,见到用回调函数。看我国内某些代码(我公司软件等)时没用到。于是,我对回调函数产生了非常大的好奇。曾经,我写VC程序时用到过回调函数,可是没实用C语言来使用。近期,看到国外大量的经典代码中广泛使用了回调函数(LWIP、某两个公司的OP...
分类:其他好文   时间:2014-08-30 22:58:10    阅读次数:190
Linux -- cp
CP(1) User Commands CP(1)NAME cp - copy files and directoriesSYNOPSIS复制一个文件到另一个地方,注意要加上文件名 cp [OPTION]... [-T] SOURCE DEST 复制多个文件到另一个目录中 cp [OP...
分类:系统相关   时间:2014-08-30 11:11:09    阅读次数:273
Android应用开发:图形绘制之硬件加速
引言 在Android3.0后,Android的2D渲染通道开始支持硬件加速,也就是说所有View的Canvas绘画动作都会使用GPU,同时也代表着应用程序会损耗更多的内存。而在Android4.0(API14)之后硬件加速功能就被默认开启了。如果你的应用程序是由各种标准View和Drawable组成的,那么硬件加速并不会引起任何不适。众所周知,使用硬件加速会调用到OpenGL,但是Op...
分类:移动开发   时间:2014-08-29 16:08:38    阅读次数:199
ubuntu下git安装及使用
ubuntu下git安装及使用 其实,好几个月前,就已经安装好了,可是一直搁置在那儿,所以密码等一些其它细节都忘的差不多了,所以今天就重新部署了一下,并开始积极使用。。。。。。。。。1,git 安装: sudo apt-get install git-core openssh-server op.....
分类:其他好文   时间:2014-08-28 19:39:35    阅读次数:223
【技术】Media Queries移动设备样式
Viewpoint设置适应移动设备屏幕大小 (1)viewpoint虚拟窗口的主要作用是允许开发者创建一个虚拟的窗口(viewpoint),并自定义其窗口的大小和缩放功能。 Mobilesafari虚拟窗口默认大小是980像素,androidbrowser默认是800像素,IE默认是974像素,op...
分类:移动开发   时间:2014-08-27 12:45:07    阅读次数:152
linux查看系统的硬件信息
1.cpulscpu命令,查看的是cpu的统计信息.blue@blue-pc:~$ lscpuArchitecture: i686 #cpu架构CPU op-mode(s): 32-bit, 64-bitByte Order: ...
分类:系统相关   时间:2014-08-26 19:22:36    阅读次数:229
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!