--存储过程--pl/sqlcreate procedure div(a int,b int)asc float;begin c:=a*1.0/b; dbms_output.put_line(a||'/'||b||'='||c);Exception when others then dbms_o.....
分类:
其他好文 时间:
2015-10-27 19:24:24
阅读次数:
225
C语言:1.数据类型C的数据类型包括: 整型(int)、字符型(char)、浮点型(单(float)、双精度(double))、布尔型(bool)、枚举类型(enum)、数组类型(arr[])、结构体类型(struct)、指针类型(*p)和空类型。2.常量与变量(1) 常量其值不可改变,符...
分类:
移动开发 时间:
2015-10-27 19:14:35
阅读次数:
204
前言:C#的第二次课,依旧讲解C#的基础知识。内容: 1.GC:垃圾回收机制,可以回收托管模块中的垃圾。 2.值类型和引用类型: (1)值类型:所有的数值类型都是值类型,如int,byte,short,long,char,bool,float,double,枚举。计算机最小的信息单位是byt...
1.什么是模板假设现在我们完成这样的函数,给定两个数x和y求式子x^2 + y^2 + x * y的值 .考虑到x和y可能是 int , float 或者double类型,那么我们就要完成三个函数:int fun(int x,int y);float fun(float x,float y);dou...
分类:
编程语言 时间:
2015-10-27 17:41:33
阅读次数:
197
实现最小宽度的几种方法及CSS Expression[转]实现最小宽度的几种方法:css表达式尽量不用支持FF IE7IE6.test{background:blue;min-width:300px;width:auto !important;width:300px;float:left;width...
分类:
Web程序 时间:
2015-10-27 14:48:32
阅读次数:
1129
今天切图的时候发现了这个问题,样式是这样的:.check-btns-box .check-btn{float: left;-webkit-box-flex: 1;-moz-box-flex: 1;-ms-flex: 1;width: 100%;color: white;height: 100%;}虽...
分类:
Web程序 时间:
2015-10-26 18:34:21
阅读次数:
217
#include#includeint main(){ int n,i,num=0,t=0; float p[100],sum[100],k=0,d=0; char ch1[100]; char ch[100]; scanf("%d",&n); for(i=0;i...
分类:
其他好文 时间:
2015-10-26 13:44:23
阅读次数:
174
When you want to convert from float or real to character data, using the STR string function is usually more useful than CAST( ). This is because STR ...
分类:
其他好文 时间:
2015-10-26 13:42:38
阅读次数:
188
现在由于用到了,使用代码进行动态布局,所以需要进行px于dp之间的转换。现将其封装为方法,以便于调用。public int DpToPx(Context context,float dp){float scale=context.getResource().getDisplayMetrics().d...
分类:
移动开发 时间:
2015-10-26 13:27:37
阅读次数:
294
1. 代码 1 #include 2 #include 3 #include 4 using namespace std; 5 //将一个浮点数保留n位小数进行四舍五入 6 void main() 7 { 8 float a=55.3252,b=55.3248;//内部a=55.3219...
分类:
其他好文 时间:
2015-10-26 11:41:33
阅读次数:
115