码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
项目3-人数不定的工资类
【项目3-人数不定的工资类】 设计一个工资类(Salary),其中的数据成员包括职工人数(number,人数不定)和number个职工的工资salary,要求输入职工工资并逐个输出。 提示:用固定大小的数组存储number个职工的工资,可能造成空间的浪费,也可能会由于空间不够而不能处理职工人数过多的应用。将salary声明为指针类型的成员,通过动态分配空间,分配正好大小的空间存储数据。 ...
分类:其他好文   时间:2015-04-15 11:32:25    阅读次数:134
【山东省第四节ACM省赛】Boring Counting(二分+划分树)
算是一道模板题了,可惜弱的一B的我并不会划分树,花了点时间学了下,回头A了这道题 3s的限时跑了2.8s也是醉了。。。 Description In this problem you are given a number sequence P consisting of N integer and Pi is the ith element in the sequence. Now ...
分类:其他好文   时间:2015-04-15 11:19:51    阅读次数:151
freemarker 数字,字符的操作
1. 数据类型转换:Javascript代码${xx?string}//字符串${xx?number}//整数${xx?currency}//小数${xx?percent}//百分比2. 截取字符串长度有的时候我们在页面中不需要显示那么长的字符串,比如新闻标题,这样用下面的列子就可以自定义显示的长度...
分类:其他好文   时间:2015-04-15 11:18:37    阅读次数:144
Sicily 7693. Cards
7693. Cards Constraints Time Limit: 15 secs, Memory Limit: 256 MB Description There are many blue cards and red cards on the table. For each card, an integer number greater than 1 is...
分类:其他好文   时间:2015-04-15 09:47:29    阅读次数:233
HDU 3555 Bomb [数位]
Description The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence of the time bomb counts from 1 to N. If the current numb...
分类:其他好文   时间:2015-04-15 09:45:42    阅读次数:162
人数不定的工资类
输入代码: /* * Copyright (c) 2014, 烟台大学计算机学院 * All rights reserved. * 文件名称:sum123.cpp * 作 者:林海云 * 完成日期:2015年4月15日 * 版 本 号:v2.0 * * 问题描述:设计一个工资类(Salary),其中的数据成员包括职工人数(number,人数不...
分类:其他好文   时间:2015-04-15 09:38:24    阅读次数:100
第六周项目三——人数不定的工资类
设计一个工资类(Salary),其中的数据成员包括职工人数(number,人数不定)和number个职工的工资salary,要求输入职工工资并逐个输出。 提示:用固定大小的数组存储number个职工的工资,可能造成空间的浪费,也可能会由于空间不够而不能处理职工人数过多的应用。将salary声明为指针类型的成员,通过动态分配空间,分配正好大小的空间存储数据。 class Salary { p...
分类:其他好文   时间:2015-04-15 09:36:16    阅读次数:115
leetcode Letter Combinations of a Phone Number
代码: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 vector cs = {"","","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"}; 8 vector *r.....
分类:其他好文   时间:2015-04-15 00:58:16    阅读次数:106
ORACLE NUMBER类型Scale为0引发的问题
今天遇到了一个很有意思的NUMBER类型Scale引发的问题,我用一个简单的测试用例来展示一下这个案例。假如有个TEST的表,有个字段类型为NUMBER,我插入下面两条数据 CREATE TABLE TEST( Category VARCHAR(12), QTY NUMBER) INSERT INT...
分类:数据库   时间:2015-04-15 00:51:19    阅读次数:196
C++中动态申请数组
动态申请一维数组 申请使用new,释放使用delete[] 可以通过数组名[下标]和*(数组名+下标)的方式访问数组int main() { int number = 10; int *array = new int[number]; //数组初始化 for (int i = 0; i < number; ++i) { array[i] =...
分类:编程语言   时间:2015-04-14 21:42:34    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!