首页 > 编程语言
SWIFT中数字格式
SWIFT中格式化数字比较常用的应该就是以下几种格式了。 var formatter = NSNumberFormatter() //formatter.numberStyle = NSNumberFormatterStyle.CurrencyStyle //$72,900 formatter.nu...
分类:编程语言   时间:2015-08-09 12:13:26    收藏:0  评论:0  赞:0  阅读:173
Spring定时任务配置
1. 编写处理定时任务的类:@Repositorypublic class QuartzScore { public void runScore(){ System.out.println("定时任务正在执行。。。。。。"); System.out.prin...
分类:编程语言   时间:2015-08-09 12:12:16    收藏:0  评论:0  赞:0  阅读:238
Java JDK5.0新特性
Java JDK5.0新特性
分类:编程语言   时间:2015-08-09 12:11:26    收藏:0  评论:0  赞:0  阅读:162
ABP(现代ASP.NET样板开发框架)系列之21、ABP展现层——Javascript函数库
点这里进入ABP系列文章总目录基于DDD的现代ASP.NET开发框架--ABP系列之21、ABP展现层——Javascript函数库ABP是“ASP.NET Boilerplate Project (ASP.NET样板项目)”的简称。ABP的官方网站:http://www.aspnetboilerp...
分类:编程语言   时间:2015-08-09 12:06:16    收藏:0  评论:0  赞:0  阅读:212
希尔排序算法
#include<stdio.h>#definemax100//数组大小voidshellsort(int*a,intn) { intdelta,i,j;for(delta=n/2;delta>0;delta/=2) { for(i=delta;i<n;i++) { inttemp=a[i];for(j=i-delta;j>=0;j-=delta) { if(temp<a[j])a[j+delta]=a[j];elsebreak; } a[j+delta]=temp..
分类:编程语言   时间:2015-08-09 10:59:27    收藏:0  评论:0  赞:0  阅读:232
python easy_install django 安装
一、easy_install安装1、下载ez_setup.pyhttps://pypi.python.org/pypi/setuptools2、安装easy_installpythonez_setup.py二、django安装1、下载djangohttps://www.djangoproject.com/download/2、安装django/usr/local/python/bin/easy_installdjango
分类:编程语言   时间:2015-08-09 10:59:06    收藏:0  评论:0  赞:0  阅读:137
scala的数组、列表、元组、集、映射
数组:数组的值可以改变但是数组的名不能改变:eg:scala>valgg=Array("ssss","ddddd")(数组的定义)scala>valgrre=Array(1,2,3)scala>grreres12:Array[Int]=Array(1,2,3)scala>grre=gg<console>:9:error:reassignmenttovalgrre=gg^scala>grreres13:Array..
分类:编程语言   时间:2015-08-09 10:56:37    收藏:0  评论:0  赞:0  阅读:132
迭代算法求平方根
#include<stdio.h>#include<math.h>voidmain() { doublea,x0,x1;printf("inputa:\n");scanf("%lf",&a);if(a<0)printf("ERROR!\n");else { x0=a/2; x1=(x0+a/x0)/2;do { x0=x1; x1=(x0+a/x0)/2; }while(fabs(x0-x1)>=1e-6); }printf("Result:\n");printf(..
分类:编程语言   时间:2015-08-09 10:56:16    收藏:0  评论:0  赞:0  阅读:207
迭代算法求平方根
#include<stdio.h> #include<math.h> voidmain() { doublea,x0,x1; printf("inputa:\n"); scanf("%lf",&a); if(a<0)printf("ERROR!\n"); else { x0=a/2; x1=(x0+a/x0)/2; do { x0=x1; x1=(x0+a/x0)/2; }while(fabs(x0-x1)>=1e-6); } printf("Result:\n")..
分类:编程语言   时间:2015-08-09 10:56:06    收藏:0  评论:0  赞:0  阅读:248
汇编语言中LEA与MOV指令小结
LEA指令的功能是取偏移地址,MOV指令的功能是传送数据LEAAX,[1000H],作用是将内存单元[1000H]的偏移地址1000H送至AX;MOVAX,[1000H],作用是将内存单元[1000H]的内容1234H送给AXLEAAX,[SI],作用是将寄存器SI的内容4567H当做数据传送给AX;MOVAX,[SI],作用是将寄存器SI的内容4..
分类:编程语言   时间:2015-08-09 10:55:57    收藏:0  评论:0  赞:0  阅读:1697
迭代算法求平方根
#include<stdio.h> #include<math.h> voidmain() { doublea,x0,x1; printf("inputa:\n"); scanf("%lf",&a); if(a<0)printf("ERROR!\n"); else { x0=a/2; x1=(x0+a/x0)/2; do { x0=x1; x1=(x0+a/x0)/2; }while(fabs(x0-x1)>=1e-6); } printf("Result:\n")..
分类:编程语言   时间:2015-08-09 10:55:16    收藏:0  评论:0  赞:0  阅读:215
希尔排序算法
#include<stdio.h>#definemax100//数组大小voidshellsort(int*a,intn) { intdelta,i,j;for(delta=n/2;delta>0;delta/=2) { for(i=delta;i<n;i++) { inttemp=a[i];for(j=i-delta;j>=0;j-=delta) { if(temp<a[j])a[j+delta]=a[j];elsebreak; } a[j+delta]=temp..
分类:编程语言   时间:2015-08-09 10:55:06    收藏:0  评论:0  赞:0  阅读:157
分数相加减(c++)
#include<iostream> usingnamespacestd; intgy(inta,intk1) {intmin; if(a>k1)min=k1; elsemin=a; while(min) {if(a%min==0&&k1%min==0) {if(k1/min==1)cout<<a/min<<endl; elsecout<<a/min<<‘/‘<<k1/min<<endl; break; ..
分类:编程语言   时间:2015-08-09 10:54:38    收藏:0  评论:0  赞:0  阅读:303
c++动态内存分配与释放
一般变量的分配与释放#include<iostream> usingnamespacestd; intmain() { int*p=newint(4); *p=10; cout<<*p<<endl; deletep; return0; }数组变量的分配与释放 #include#include<iostream> usingnamespacestd; intmain() { char*p=newchar[10]; p="he..
分类:编程语言   时间:2015-08-09 10:54:26    收藏:0  评论:0  赞:0  阅读:224
【Java】字符串模板替换
【Java】字符串模板替换 源代码下载地址:http://www.zuidaima.com/share/1593989887085568.htm...
分类:编程语言   时间:2015-08-09 10:48:46    收藏:0  评论:0  赞:0  阅读:410
Spring核心之Ioc容器走读笔记
其实说到Spring的核心,无非指的就是Ioc容器和AOP。 Spring降低了应用的负载和框架的侵入性,依靠的解决方案正是Ioc和AOP的支持。 学习Spring的Ioc和Aop的设计模式可以帮助我们在自己编写代码的时候如何优雅的设计和实现。 这里就只记录一下自己对Ioc容器设计和实现的走读和思考。 在查看Spring Ioc容器的设计文档和源代码后,发现其实只有2类主要的容器: ...
分类:编程语言   时间:2015-08-09 10:48:16    收藏:0  评论:0  赞:0  阅读:295
JAVA环境变量配置
前言 每次装完系统,都要查一下java环境变量配置,经过几次配置后,现在也熟悉了,这样也好自己配置。我们.net安装vs的时候自己就给我们path里面配置了,所以也不用我们操心了。虽然不是搞java的,但是还是要熟悉熟悉,把配置过程熟悉写一遍感觉会忘得慢些。正文 第一步:下周jdk文档,是做...
分类:编程语言   时间:2015-08-09 10:46:06    收藏:0  评论:0  赞:0  阅读:271
linux下一个C语言要求CPU采用
部分 从灾难中本来我想写一个小程序来测试CPU其他工具利用它可以检验类数据的性能。以后参考IPbench中间cpu_target_lukem插件实现我们的功能。原理非常简单:就是我们给程序设置了极低的优先级,假设有不论什么计算任务都会打断它,而假设没有计算任务,我们的程序就会占用cpu时间,所以我....
分类:编程语言   时间:2015-08-09 10:42:46    收藏:0  评论:0  赞:0  阅读:407
Spring整合Hibernate遇到的错误
Error creating bean with name 'transactionManager' defined in class path resource [applicationContext.xml]: Invocation of init method failed; ne...
分类:编程语言   时间:2015-08-09 10:42:06    收藏:0  评论:0  赞:0  阅读:599
一起talk C栗子吧(第三十三回:C语言实例--巧用移位)
各位看官们,大家好,上一回中咱们说的是最大公约数的例子,这一回咱们说的例子是:巧用移位。闲话 休提,言归正转。让我们一起talk C栗子吧! 我们在第十九回中说过位操作的内容,并且举了一些简单的例子。因此在这里就不多说了。如果哪位看官 忘记了位操作相关的内容,可以点击这里查找原文。 我们今天说的是位操作的另外一种巧妙用法:使用移位进行除法运算。其实我们在第十九回中也提...
分类:编程语言   时间:2015-08-09 09:32:06    收藏:0  评论:0  赞:0  阅读:251
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!