码迷,mamicode.com
首页 >  
搜索关键字:count    ( 18169个结果
scull_p_read()函数分析
1 /* 2 * Data management: read and write 3 */ 4 5 static ssize_t scull_p_read (struct file *filp, char __user *buf, size_t count, 6 ...
分类:其他好文   时间:2016-01-17 20:07:42    阅读次数:151
一大波库函数的模拟实现
#include<stdio.h> #include<assert.h> //指针streln //intmy_strlen(constchar*src) //{ // intcount=0; // while(*src++) // count++; // returncount; //} //数组strlen //intmy_strlen(constcharsrc[]) //{ // intcount=0; // while(src[count]) // count..
分类:其他好文   时间:2016-01-17 16:20:29    阅读次数:132
数据库 聚合函数与分组
聚合函数与分组第一部分:1.对一组数据统计分析师使用聚合函数来实现的A.count:返回结果集中行的数目B.sum:和C.avg:平均值(某列)D.max:最大值(某列)E.min:最小值(某列)a:执行行和列计数语法:select count(计数规范) from ;*:所有选择行,包括null ...
分类:数据库   时间:2016-01-17 16:03:04    阅读次数:156
huffman编码压缩和解压
#include #include #include #include #include typedef struct huffman_node_tag{ unsigned char isLeaf; unsigned long count; stru...
分类:其他好文   时间:2016-01-17 11:01:17    阅读次数:295
[UVALive 6663 Count the Regions] (dfs + 离散化)
链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4675题目大意:在一个平面上有 n (1#include#include#includ...
分类:其他好文   时间:2016-01-16 22:32:58    阅读次数:354
Count Primes leetcode
Description:Count the number of prime numbers less than a non-negative number,n.Credits:Special thanks to@mithmattfor adding this problem and creating...
分类:其他好文   时间:2016-01-16 21:07:46    阅读次数:186
购物车单击加号减号按钮可以实现数量加减
final TextView count_shopCar=viewHolder.textView_count_shopCar;viewHolder.textView_jia.setOnClickListener(new OnClickListener() {@Overridepublic void ...
分类:其他好文   时间:2016-01-16 16:40:08    阅读次数:172
String转换成float并且保留两位小数,购物车计算价格
方法1:用DecimalFormat 返回的是String格式的.该类对十进制进行全面的封装.像%号,千分位,小数精度.科学计算. float perPrice=Float.parseFloat(textView_price_shopCar.getText().toString()) * count...
分类:其他好文   时间:2016-01-16 16:32:28    阅读次数:171
Delphi DBGrid实现多选
DBGrid1.Options:= DBGrid1.Options+[dgMultiSelect]; //先设置DBGrid1的多选属性为Trueif DBGrid1.SelectedRows.Count>0 thenbegin with DBGrid1.DataSource.DataSet do ...
分类:数据库   时间:2016-01-16 16:22:25    阅读次数:178
Sql case when 小例
SELECT I.uname, C.consume, O.name,O.dis_count,O.memberType, D.name,D.dis_count,D.up,D.down, CASE WHEN D.dis_count IS ...
分类:数据库   时间:2016-01-16 12:03:28    阅读次数:220
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!