if (dgvResult.Rows.Count == 0) { MessageBox.Show("列表为空"); } //创建Excel对象 Microsoft.Office.I...
1、基础* : 简接寻址运算符& : 地址运算符int count = 10; //定义变量count,赋初始值10;int *intPtr; //*定义变量inPtr是int的指针类型intPtr = &count; //表达式&count表示变量count的指针,将它赋值给指针变量intP...
分类:
其他好文 时间:
2014-08-14 19:51:09
阅读次数:
161
1234$str_tag="";$s=$_POST['goods_server_name'];for($i=0;$i<count($s);$i++){ if($i==0){ $str_tag = $s[$i]; }else{ $str_tag = $str_tag .",".$s[$...
分类:
其他好文 时间:
2014-08-14 16:35:48
阅读次数:
166
Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones.
Your task is counting the segments of different colors you can see at last.
...
分类:
其他好文 时间:
2014-08-14 10:47:38
阅读次数:
222
In an attempt to remove duplicate elements from list, I go to the lengths to take advantage of methods in the java api. After investiagting the document of java api, the result is so satisfying that ...
分类:
编程语言 时间:
2014-08-14 01:30:17
阅读次数:
256
把数据写入到数据库的时,常常会碰到先要检测要插入的记录是否存在,然后决定是否要写入。我这里总结了判断记录是否存在的常用方法:sql语句:select count(*) from tablename;然后读取count(*)的值判断记录是否存在。对于这种方法性能上有些浪费,我们只是想判断记录记录是否存...
分类:
数据库 时间:
2014-08-14 01:15:07
阅读次数:
259
数组 push() 方法可以接收任意数量的参数,把它们逐个添加到数组末尾,并返回修改后数组的长度。而 pop() 方法则从数组末尾移除最后一项,减少数组的 length 值,然后返回移除的项。如下:var colors = []; //创建一个数组var count = colors.pu...
分类:
其他好文 时间:
2014-08-14 01:04:57
阅读次数:
170
Description
Problem G - Great Numbers
In this problem you have to count the number of great numbers of length n. Here a great number must have the following property:
the number must be divis...
分类:
其他好文 时间:
2014-08-13 22:35:27
阅读次数:
219
Description
Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem.
There is a very long board with length L...
分类:
其他好文 时间:
2014-08-13 22:28:57
阅读次数:
401
产品序号:${status.count}产品名称:${products.name}上面代码中的varStatus是关键,${status.count}即是我们要的数组的索引值。
分类:
Web程序 时间:
2014-08-13 18:31:36
阅读次数:
292