码迷,mamicode.com
首页 > 其他好文
转:假设有一个字符串aabcad,请编写一段程序,去掉字符串中不相邻的重复字符。
假设有一个字符串aabcad,请编写一段程序,去掉字符串中不相邻的重复字符。即上述字串处理之后结果是为:aabcd;分析,重点考查 char 与int 的隐式转换。程序如下:-(void) removeRepeat:(NSString *)aNum{NSMutableArray *mArr = [[...
分类:其他好文   时间:2015-07-15 20:36:33    阅读次数:136
字符串-----输入十个整数而后反序输出的两种实现方式
//输入十个整数而后反序输出的实现方式一(最直接式)#include"stdafx.h"#includeusing namespace std;void main(){int a1, a2, a3, a4, a5, a6, a7, a8, a9, a10;cout > a1 >> a2 >> a3 ...
分类:其他好文   时间:2015-07-15 20:36:18    阅读次数:96
鼠标滚轮事件
添加事件(有兼容性) /*注册事件*/ if(document.addEventListener){ document.addEventListener('DOMMouseScroll',scrollFunc,false); } window.onmousewheel=documen...
分类:其他好文   时间:2015-07-15 20:35:19    阅读次数:180
Selenium简介(二)--基于CORE/IDE的简单应用
参考 http://blog.csdn.net/iamqa/article/details/4398240Selenium简介(一)--总体介绍http://blog.csdn.net/iamqa/article/details/4395369跨平台测试框架--STAF介绍 http://blog....
分类:其他好文   时间:2015-07-15 20:37:37    阅读次数:88
同时闪烁多个要素代码(ArcEngine)
/// /// 根据查询条件构造/// /// 查询条件public void FilterLayer(string where){IFeatureLayer flyr = (IFeatureLayer)axMapControl1.get_Layer(0);IFeatureClass fcls = ...
分类:其他好文   时间:2015-07-15 20:35:22    阅读次数:156
CenterFactory
getFactory('Silver');//让白银工厂制造一个推荐商品$product = $factory->create('Commendatory');//得到白银会员的推荐商品echo $product->desc.'';//获得一个青铜工厂$factory2 = CenterFactor...
分类:其他好文   时间:2015-07-15 20:36:39    阅读次数:151
static_class
myMethod(); //2$instanc2 = new MyObject();$instanc2->myMethod(); //4
分类:其他好文   时间:2015-07-15 20:33:00    阅读次数:127
IImage--factory
_file = $file; $this->_parse(); } private function _parse() { //完成PNG格式的解析工作 //并填充$_width, $_height, $_data $this->_data = getimagesize($this->_f...
分类:其他好文   时间:2015-07-15 20:32:39    阅读次数:133
HDU 1171 Big Event in HDU
0-1背包#include#include#include#includeusing namespace std;const int maxn=55;int V[maxn],C[maxn];int dp[maxn*maxn*110];int main(){ int n,i,j,k,summ; ...
分类:其他好文   时间:2015-07-15 20:33:07    阅读次数:115
centos 6.5安装vncserver 并开启远程桌面
yum install tigervnc tigervnc-server -y VNCSERVERS="1:root 2:hinkey 3:wangliang"VNCSERVERSVNCSERVERARGS[1]="-geometry 1400x900 -nolisten tcp -localhos...
分类:其他好文   时间:2015-07-15 20:33:04    阅读次数:123
微蓝o2o域名限制机制
我们可以通过修改CommonAction.class.php 进行域名的限制assign('jumpUrl', 'http://vlo2o.com'); $this->error('您现在访问的域名不在系统允许访问域名范围内!有疑问请联系vlo2o!'); }*/...
分类:其他好文   时间:2015-07-15 20:32:08    阅读次数:115
simple -- abstract
_NumberA = $A; $this->_NumberB = $B; } public function clearResult(){ $this->_Result = 0; } abstract protected function getResult(); }class Operat...
分类:其他好文   时间:2015-07-15 20:32:53    阅读次数:85
Sonar介绍
网址:http://www.sonarqube.org/ Sonar是一个用于代码质量管理的开源平台,用于管理Java源代码的质量。通过插件机制,Sonar 可以集成不同的测试工具,代码分析工具,以及持续集成工具,比如pmd-cpd、checkstyle、...
分类:其他好文   时间:2015-07-15 19:28:20    阅读次数:422
Angular Directive: link vs compile vs controller
Compile : This is the phase where Angular actually compiles your directive. This compile function is called just once for each references to the given directive. For example, say you are using the ...
分类:其他好文   时间:2015-07-15 19:26:55    阅读次数:437
三枚Flash 0day漏洞曝光,Flash再次紧急更新
13日,Firefox开发人员在最新版火狐浏览器中将Flash Player插件列入屏蔽名单,这就意味着网站上所有Flash内容将被禁用,用户不得不自行手动开启Flash。Adobe在今天发布了最新的18.0.0.209版本,已修复了目前全部的...
分类:其他好文   时间:2015-07-15 19:29:34    阅读次数:318
如何给UINavigationBar添加按钮?
Mads Mobæk:给UINavigationBar添加按钮的示例代码 1 2 3 4 5 6 7 8 UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithTitle:@"Done"     style:UIBarButtonItemStyleDone target...
分类:其他好文   时间:2015-07-15 19:26:55    阅读次数:199
CTSC1999补丁VS错误题解
题目描述 Description 错误就是人们所说的Bug。用户在使用软件时总是希望其错误越少越好,最好是没有错误的。但是推出一个没有错误的软件几乎不可能,所以很多软件公司都在疯狂地发放补丁(有时这种补丁甚至是收费的)。T公司就是其中之一。 上个月,T公司推出了一个新的字处理软件,随后发放了一批补丁。最近T公司发现其发放的补丁有致命的问题,那就是一个补丁在排除某些错误的同时,往往会加入另一些错误...
分类:其他好文   时间:2015-07-15 19:27:05    阅读次数:265
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!