码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
第六周项目三-人数不定的工资类
【项目3-人数不定的工资类】 设计一个工资类(Salary),其中的数据成员包括职工人数(number,人数不定)和number个职工的工资salary,要求输入职工工资并逐个输出。 提示:用固定大小的数组存储number个职工的工资,可能造成空间的浪费,也可能会由于空间不够而不能处理职工人数过多的应用。将salary声明为指针类型的成员,通过动态分配空间,分配正好大小的空间存储数据。...
分类:其他好文   时间:2015-04-22 09:35:44    阅读次数:118
PL/SQL-01
createorreplacefunctionchange_sal(p_jobvarchar2)returnnumberasv_resultnumber(7,2);beginifp_job=‘CLERK‘thenv_result:=0.1;elsifp_job=‘SALESMAN‘thenv_result:=0.15;elsifp_job=‘MANAGER‘thenv_result:=0.2;endif;returnv_result;end;declareresultnumber(7,2):=0;beginr..
分类:数据库   时间:2015-04-22 02:06:11    阅读次数:158
UVA 12063 Zeros and Ones (数位dp)
Binary numbers and their pattern of bits are always very interesting to computer programmers. In this problem you need to count the number of positive...
分类:其他好文   时间:2015-04-22 00:13:50    阅读次数:287
LeetCode-152 Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:其他好文   时间:2015-04-21 23:59:29    阅读次数:343
LightOJ - 1245
Harmonic Number (II)Time Limit: 3000MSMemory Limit: 32768KB64bit IO Format: %lld & %llu Submit Status DescriptionI was trying to solve problem '1234 -...
分类:其他好文   时间:2015-04-21 22:16:54    阅读次数:160
UVA 10539 Almost Prime Numbers( 素数因子)
Problem AAlmost Prime NumbersTime Limit: 1 secondAlmost prime numbers are the non-prime numbers which are divisible by only a single prime number. In ...
分类:其他好文   时间:2015-04-21 20:42:15    阅读次数:104
Common SQL for Oracle---(1)AWR Generator
AWRGenerator---------------querysnapidSELECTdbid,instance_number,MIN(snap_id)begin_snap_id,MAX(snap_id)end_snap_idFROMdba_hist_snapshotWHEREend_interval_time>=to_date(‘2014/06/2907:00:00‘,‘yyyy/mm/ddhh24:mi:ss‘)andend_interval_time<=to_date(‘2014/06/2..
分类:数据库   时间:2015-04-21 18:31:59    阅读次数:157
Common SQL for Oracle---(3)Check Execution Plan
---CheckExecutionPlan-------sql_plan@awrselectplan_table_outputfromtable(dbms_xplan.display_awr(‘&sql_id‘,null,null,‘ADVANCED+PEEKED_BINDS‘));---allsql_plan@awrSELECTA.INSTANCE_NUMBER,A.SNAP_ID,A.SQL_ID,A.PLAN_HASH_VALUE,to_char(b.begin_interval_time,‘y..
分类:数据库   时间:2015-04-21 18:30:02    阅读次数:181
获取iPhone或者iPad的UDID
1.连接iPhone或者iPad到电脑。 2. 打开iTunes。 3. 在Summary(概要)右边点击序列号,Serial Number会变成UDID(如果不是UDID,请继续点击)。 4. command+c(MAC) 或者 Ctrl+c(Windows)复制UDID。 5. 粘贴到你需要的地方。 (比如到Member Center的device里。) 参考...
分类:其他好文   时间:2015-04-21 18:11:16    阅读次数:155
[LeetCode]Rank Scores,解题报告
题目Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking number should be the next consecutive integer value....
分类:其他好文   时间:2015-04-21 18:05:04    阅读次数:182
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!