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
初入前端的时候觉得CSS知道display、position、float就可以在布局上游刃有余了,随着以后工作问题层出不穷,才逐渐了解到CSS并不是几个style属性那么简单,最近看了一些关于行高的知识,就此总结一下。所谓行高是指文本行基线间的垂直距离。要想理解这句话首先得了解几个基本知识:顶线、中...
分类:
Web程序 时间:
2014-05-24 07:56:37
阅读次数:
445
#includeusing namespace std;zong(float sum[100],int
i,int m,int j,float max[100],float x[100],float X[100],int g,int k);zong1(float
score[100][100],in...
分类:
其他好文 时间:
2014-05-23 04:14:42
阅读次数:
288
#include#includeusing namespace std;struct G{float
W;float V;char N[10];}g[100];void wenzi(int & m){cout>m;}int main(){int
M;wenzi(M);int i,j,k,p=0,A[...
分类:
其他好文 时间:
2014-05-23 04:08:15
阅读次数:
240
一:学生信息的录入二:学生信息的打印三:学生信息的增加四:学生信息的查询五:学生信息的修改及复位六:学生信息的删减#include#include#define
NULL 0#define STU struct studentusing namespace std;STU{int num;float...
分类:
其他好文 时间:
2014-05-23 03:52:30
阅读次数:
271
#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