偶遇一奇怪的bug,型如$("tt").html(""+0||Math.floor(Math.random()*100))+"")这个东西出现一个截取问题,看起来挺长的,实际上结果只有$("tt").html(""+0)的结果,后面被截取了,想了半天有点云里雾里的,其实这就是一个细节的问题,或运算有...
分类:
其他好文 时间:
2014-06-29 00:58:20
阅读次数:
317
1显示程序执行的窗口一闪即逝。可以添加如下语句:getchar()作用是获取键盘输入。2 inf 和 nanfloat toobig = 3.4e38 * 100.0f; float not_a_number = asin(1.2);//math.h printf("%e \t %e\n",...
分类:
其他好文 时间:
2014-06-28 21:57:22
阅读次数:
305
What?在计算中涉及不同数值类型的computation,这时候,C++会按照以下顺序进行转换order:long double>double>float>unsigned long>long>unsigned int>integ. (1) 1/2=0(当1和2都是int时),结果也肯定是int;...
分类:
编程语言 时间:
2014-06-21 10:09:58
阅读次数:
240
WHAT?在写程序的时候我们会遇到很多种根据得出的数值就行不同处理的conditional statements,我们可以选用switch写法,以免使用太多的nested if会让程序difficult to read.syntax:switch(value){ case value1: ...;....
分类:
编程语言 时间:
2014-06-21 09:30:28
阅读次数:
252
1,su - db2inst2,db2 connect to ids3,db2stop force4,db2 list db directory5,db2 list tables for all6,db2 describe table tablename7,db2 "restore db JVC f...
分类:
其他好文 时间:
2014-06-21 09:29:14
阅读次数:
247
1.官方网站下载:instantclient-basic-win32-11.2.0.1.0.zipinstantclient-sqlplus-win32-11.2.0.1.0.zipinstantclient-odbc-win32-11.2.0.1.0.zipinstantclient-jdbc-w...
分类:
数据库 时间:
2014-06-18 10:05:54
阅读次数:
218
方法1:用Math.round计算,这里返回的数字格式的.float price=89.89;int itemNum=3;float totalPrice=price*itemNum;float num=(float)(Math.round(totalPrice*100)/100);//如果要求精确...
分类:
编程语言 时间:
2014-06-18 09:06:22
阅读次数:
203
Mahout源码目录说明mahout项目是由多个子项目组成的,各子项目分别位于源码的不同目录下,下面对mahout的组成进行介绍:1、mahout-core:核心程序模块,位于/core目录下;2、mahout-math:在核心程序中使用的一些数据通用计算模块,位于/math目录下;3、mahout...
分类:
其他好文 时间:
2014-06-18 08:41:11
阅读次数:
192
[WinError 2] 系统找不到指定的文件。
[cmd: ['g++', 'D:\\source-code\\sublime\\test.cpp', '-o', 'D:\\source-code\\sublime/test']]
[dir: D:\source-code\sublime]
[path: D:\program\basic\python3.4.0;C:\Windows\sys...
分类:
Windows程序 时间:
2014-06-18 00:56:24
阅读次数:
7280
3.1 实例描述 对输入文件中数据进行就算学生平均成绩。输入文件中的每行内容均为一个学生的姓名和他相应的成绩,如果有多门学科,则每门学科为一个文件。要求在输出中每行有两个间隔的数据,其中,第一个代表学生的姓名,第二个代表其平均成绩。 样本输入: 1)math: 张三 88李四 99王五 66赵六 ....
分类:
其他好文 时间:
2014-06-18 00:11:31
阅读次数:
438