码迷,mamicode.com
首页 >  
搜索关键字:open    ( 24465个结果
c++桥接模式
可以简记为pointer to implement:”指向实现的指针”。 [DP]书上定义:将抽象部分与它的实现部分分离,使它们都可以独立地变化。考虑装操作系统,有多种配置的计算机,同样也有多款操作系统。如何运用桥接模式呢?可以将操作系统和计算机分别抽象出来,让它们各自发展,减少它们的耦合度。当然了 ...
分类:编程语言   时间:2017-11-20 21:41:37    阅读次数:196
fill array, show arrary , reverse_array
#include <iostream> using namespace std; int Fill_array(double arr[], int n) { int count = 0; cout << "Enter your price: "<< endl; for(int i =0; i < n ...
分类:其他好文   时间:2017-11-20 20:16:40    阅读次数:143
Centos7 虚拟机复制后网卡问题 Job for network.service failed
在运行“/etc/init.d/network restart”命令时,出现错误“Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for deta”,运行“cat  ...
分类:Web程序   时间:2017-11-20 19:08:30    阅读次数:495
网站前端JS加密方法RAS加密可以PHP解密
有关数据加密解密问题,有很多钟加密方式。这里我就讲我最近使用到的其中的两种方法 一、首先第一种就是RAS的加密形式,我使用这种加密形式最要是看中他的16进制加密形式类似MD5的形式,机密以后的字符串没有特殊字符 1、首先我们看html部分,我们要先导入所需要的加密JS文件 2、接着我们就要注意到JS ...
分类:Web程序   时间:2017-11-20 19:01:12    阅读次数:468
托盘程序菜单位置 NotifyIcon menu position
.net framework4.5.2 环境下使用NotifyIcon 托盘 默认状态下弹出的右键菜单是在左边 别家的都是在右边。 使用ContextMenuStrip 在其opening事件中 m_NotifyIcon.ContextMenuStrip.Opening += ContextMenu ...
分类:其他好文   时间:2017-11-20 17:41:27    阅读次数:162
用随机投掷飞镖法计算Pi值(Randomness Throwing dart Pi Python)
画一个边长为r的正方形和半径为r的四分之一的圆(如下图所示),向上面随机投掷飞镖,通过计算落在星星区域和整体区域的飞镖比例,即可求出π值。 公式推导如下: 假设正方形的边长r为1,那么飞镖落在圆弧内的任意点(x, y),其坐标的平方相加值(x2+y2)必然小于1。 代码如下: 投掷1000000次飞 ...
分类:编程语言   时间:2017-11-20 17:41:20    阅读次数:194
[LeetCode] My Calendar I
Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking. Your class will have ...
分类:其他好文   时间:2017-11-20 16:39:52    阅读次数:158
kubernetes安装问题记录
一、pod-infrastructure:latest镜像下载失败报错一:p_w_picpathpullfailedforregistry.access.redhat.com/rhel7/pod-infrastructure:latest,thismaybebecausetherearenocredentialsonthisrequest.details:(open/etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt:..
分类:Web程序   时间:2017-11-20 15:41:00    阅读次数:214
正则截取两个字符串间的值
let str="sdfsdf:12545.sdafs.dfsdf:98794564.sdfdf:"; let getStr = str => { let reg = /:(.+?)\./g; let arr = str.match(reg); let newArr =[] f... ...
分类:其他好文   时间:2017-11-20 13:05:19    阅读次数:125
2017-2018-1 20155230 mypwd实现
mypwd实现 实现步骤: ...
分类:其他好文   时间:2017-11-19 22:21:09    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!