码迷,mamicode.com
首页 >  
搜索关键字:pr    ( 3098个结果
Architecture.SOLID Principles
1. Single Responsibilityhttp://en.wikipedia.org/wiki/Single_responsibility_principle (ToRead)2. Open/Closedhttp://en.wikipedia.org/wiki/Open/closed_pr...
分类:其他好文   时间:2014-08-03 23:07:06    阅读次数:216
c++ 如何实现保留小数并 且 不进行四舍五入
以保留2位小数为例,代码如下:#include#includeusingnamespacestd;intmain(){doublea;cin>>a;coutc)&&((a+c)>b&&((b+c)>a))) { p=(a+b+c)/2; s=sqrt(p*(p-a)*(p-b)*(p-c)); pr...
分类:编程语言   时间:2014-08-02 20:43:54    阅读次数:1478
java类的基本运行顺序
作为程序员,应该对自己写的程序具备充分的掌控能力,应该清楚程序的基本运行过程,否则糊里糊涂的,不利于对程序的理解和控制,也不利于技术上的发展。 我们以下面的类来说明一个基本的 Java 类的运行顺序:1. public class Test {2. private String name;3. pr...
分类:编程语言   时间:2014-07-31 12:35:56    阅读次数:198
nova分析(9)—— nova-novncproxy
nova提供了novncproxy代理支持用户通过vnc来访问虚拟机,用户可以通过websocket、java客户端或者spicehtml5来访问。通过websket访问虚拟机的功能已经集成到horizon中,而通过java客户端则需要先安装相应的软件。为了方便用户访问虚拟机,nova通过有一个pr...
分类:其他好文   时间:2014-07-30 23:44:15    阅读次数:428
三维凸包模版 求三维凸包的表面积和体积
#include #include #include #include #include #include #include using namespace std; #define PR 1e-8 #define N 510 struct TPoint{ double x, y, z; TPoint(){} ...
分类:其他好文   时间:2014-07-30 20:55:34    阅读次数:241
shell中while循环引用ssh命令的坑
原理shell代码如下:#!/bin/sh cat../androidsrc|whilereadline do ip=$(echo$line|awk‘{print$1}‘) srcdir=$(echo$line|awk‘{print$2}‘) destdir=$(echo$line|awk‘{print$3}‘) user=$(echo$line|awk‘{print$4}‘) port=$(echo$line|awk‘{print$5}‘) build=$(echo$line|awk‘{pr..
分类:其他好文   时间:2014-07-30 12:30:44    阅读次数:337
UVA 11769 All Souls Night 三维凸包求表面积
题目链接:点击打开链接 求给定的3维坐标的凸包的表面积 三维凸包裸题。。 #include #include #include #include #include #include #include using namespace std; #define PR 1e-8 #define N 510 struct TPoint{ double x, y, z; TPoint...
分类:其他好文   时间:2014-07-29 13:21:47    阅读次数:205
[zz] be similar with和be similar to的区别
http://wenda.tianya.cn/question/4cb13da080ee34c9be similar to后边既可以加物主代词又可以加人,即:be similar to sth/sbbe similar with后边只可以加人 ,即be similar with sb例如:My pr...
分类:其他好文   时间:2014-07-27 23:13:29    阅读次数:239
手工冷备份
冷备一定先正常关库。cp就可以。查看控制文件:SQL>selectnamefromv$controlfileorderby1;NAME--------------------------------------------/u01/app/oracle/oradata/PROD/disk1/control01.ctl/u01/app/oracle/oradata/PROD/disk2/control01.ctl/u01/app/oracle/oradata/PR..
分类:其他好文   时间:2014-07-27 12:00:15    阅读次数:194
[XPath/Python] XPath 与 lxml (四)XPath 运算符
XPath 中支持的运算符# | 或: 返回所有 price 和 title 节点集合>>> root.xpath('//price|//title')[, , , ]# + 加法:返回所有 price 子元素前两个之和>>> root.xpath('//price[1]/text() + //pr...
分类:编程语言   时间:2014-07-27 10:56:12    阅读次数:323
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!