using UnityEngine;using System.Collections;public
class stopSpeed : MonoBehaviour { public bool canStop = false; public float
scrollSpeed = 5.0f...
分类:
其他好文 时间:
2014-05-27 00:15:25
阅读次数:
323
div{ height:200px; color:#F00;}.left{ float:left;
width:100px; background:#00f; _margin-right:-3px;}.right{ float:right;
width:100px; background:#0f0;...
分类:
其他好文 时间:
2014-05-26 23:51:20
阅读次数:
401
using UnityEngine;using System.Collections;public
class addSpeed : MonoBehaviour { public float scrollSpeed; float defaultScroll =
0.01f; flo...
分类:
其他好文 时间:
2014-05-26 22:17:04
阅读次数:
239
1:float保存2位小数:
f1.ToString("F2")2:datatable列求和:dt.Compute("sum([企业数量])",
"true")同时:如果字段为中文,取值用[中文字段] 方式。3:NPOI 导出EXCEL(需要手动导入NPOI文件)单Sheet: 1 //单Shee....
分类:
其他好文 时间:
2014-05-26 15:38:04
阅读次数:
210
//float与double的范围和精度 1. 范围
float和double的范围是由指数的位数来决定的。// float的指数位有8位,而double的指数位有11位,分布如下:// float: 1
bit(符号位) 8bits(指数位) 23bits(尾数位)// double:1 ...
分类:
其他好文 时间:
2014-05-26 14:12:25
阅读次数:
189
* weak(assign) :代理\UI控件* strong(retain)
:其他对象(除代理\UI控件\字符串以外的对象)* copy :字符串,block* assign
:非对象类型(基本数据类型int\float\BOOL\枚举\结构体)-UI控件也不一定是用weak的,要根据具体情况具...
分类:
其他好文 时间:
2014-05-26 13:11:02
阅读次数:
236
数据库中存储的信息主要有:数字、时间、文字、图片、唯一标示等。针对数字有:bit,tinyint,smallint,int,long,decimal,float。长度从一个位逐个字节(8位)的增加。时间:date,datetime.文字:char,varchar,nvarchar.唯一标示有:tim...
分类:
数据库 时间:
2014-05-26 09:12:53
阅读次数:
218
初入前端的时候觉得CSS知道display、position、float就可以在布局上游刃有余了,随着以后工作问题层出不穷,才逐渐了解到CSS并不是几个style属性那么简单,最近看了一些关于行高的知识,就此总结一下。所谓行高是指文本行基线间的垂直距离。要想理解这句话首先得了解几个基本知识:顶线、中...
分类:
Web程序 时间:
2014-05-24 07:56:37
阅读次数:
445
#includeusing namespace std;int main(){int
i,j,m,n,p[100],k[100],o;float
a[100][100],junfen[100],student[100];cout>m>>n;for(i=1;i>a[i][j];}cout>o;if(o...
分类:
其他好文 时间:
2014-05-23 03:17:20
阅读次数:
244
一个小题目,模拟stof()功能,网上答案很多,但是感觉都不够简洁。主要是整数部分和小数部分实现由一定区别,这里尝试不区分整数和小数部分,先忽略小数点,然后最后在做一个除操作。比如输入:100.123,先转换为100123,然后除1000#include
#include #include #inc...
分类:
其他好文 时间:
2014-05-22 14:45:04
阅读次数:
242