码迷,mamicode.com
首页 >  
搜索关键字:float    ( 12549个结果)
基本数据类型的包装类
//集合中,不能存储基本数据类型,如果你想要把基本数据类型存储到数组,集合中,就必须把它转换成基本数据类型的包装类 @autoreleasepool { //int float double char int a = 10;// [NSString str...
分类:其他好文   时间:2014-12-28 16:48:09    阅读次数:147
Python 函数的参数
# coding=gbk# python 函数的参数:包括必选参数,默认参数,可变参数,关键字参数# 1 必选参数,就是每次必选要输入的参数def abs1(num): #计算绝对值 if isinstance(num,[int,float]): ...
分类:编程语言   时间:2014-12-28 15:23:45    阅读次数:275
等比压缩截图代码
+(UIImage *)compressImageWith:(UIImage *)image width:(float)width height:(float)height{ float imageWidth = image.size.width; float imageHeight = image...
分类:其他好文   时间:2014-12-27 23:06:15    阅读次数:239
k-Exercise 5.3 Handling monetary values as integers
Exercise 5-3. Write a program that will read five values from the keyboard and storethem in an array of type float with the name amounts. Create two a...
分类:Web程序   时间:2014-12-27 17:18:48    阅读次数:162
函数指针
/*Author:Choas?Lee *Date:2012-02-28 */ #include<stdio.h> #include<stdlib.h> #include<string.h> float?add(float?a,float?b){return?a+b;} float?minus(float?a,float?b){return?a-b;} fl...
分类:其他好文   时间:2014-12-27 11:32:04    阅读次数:183
NSData,NSImage,NSDictionary,NSString,NSInteger,Float,NSURL 等等互相转换
NSData,NSImage,NSDictionary,NSString,NSInteger,Float,NSURL 等等互相转换一:NSString和NSURL 转换[cpp]view plaincopyprint?//NSString->NSURLNSString*urlString=[@"ht...
分类:Web程序   时间:2014-12-27 11:23:17    阅读次数:184
margin重叠问题记录
margin:10pxmargin:10pxmargin:10pxmargin:10px现代浏览器效果:ie6效果:div增加float:left后现代浏览器效果:
分类:其他好文   时间:2014-12-26 22:49:30    阅读次数:116
struct结构会增加程序的开销
struct结构一方面能够加强对变量的管理,增加程序的可读性,但是另一方面,结构体也会加大程序的开销。 看下面一段代码: struct TEST_S { int a; int b; float c; }; int _tmain(int argc, _TCHAR* argv[]) { TEST_S ts; int a; int b; int c; ts.a = 100; ts....
分类:其他好文   时间:2014-12-26 20:24:18    阅读次数:307
datatables 参数详细说明
JQuery Datatables?参数详细说明? Data Tables:?http://datatables.net/ Version: 1.10.0 ? Dom说明 ? ? ?示例:?‘dom‘:?‘<"float_left"f>r<"float_right"l>tip‘, ? 定义表格控件在页面的显示顺序。 每...
分类:其他好文   时间:2014-12-26 18:58:52    阅读次数:252
python type演示
理论就不讲了,我感觉只有亲自敲代码,才能感觉到代码的神奇。代码:#!/usr/pin/envpythondefdisplayNumType(num):printnum,‘is‘,ifisinstance(num,(int,long,float,complex)):print‘anumberoftype:‘,type(num).__name__else:print‘notanumberatall!‘displayNumType(68)display..
分类:编程语言   时间:2014-12-26 18:54:26    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!