码迷,mamicode.com
首页 >  
搜索关键字:float    ( 12549个结果
减速
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
阶段总结 2014-05-22
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行高——line-height
初入前端的时候觉得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
parse string once and convert it to float
一个小题目,模拟stof()功能,网上答案很多,但是感觉都不够简洁。主要是整数部分和小数部分实现由一定区别,这里尝试不区分整数和小数部分,先忽略小数点,然后最后在做一个除操作。比如输入:100.123,先转换为100123,然后除1000#include #include #include #inc...
分类:其他好文   时间:2014-05-22 14:45:04    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!