今天在开发过程中因为要用到合并单元格,在程序里实现了以后,查出来的数据太长,都把格式撑大了,后来想想可以在sql语句查询的时候就截取,就去网上找了一下,挺好用,就转了过来:合并单元格:/// /// 合并GridView中某列相同信息的行(单元格)/// /// GridView/// 第几列pri...
分类:
数据库 时间:
2015-01-29 22:18:22
阅读次数:
238
要想超神,就要什么都精!知识准备:1. 输出浮点数的十六进制形式?(利用指针输出)将浮点数指针-转换成-整型指针,以十六进制的格式输出指针内容。示例程序:#includeint main(){ float *var; scanf("%f",var); pri...
分类:
编程语言 时间:
2015-01-28 21:06:38
阅读次数:
400
echo '';
exec('ls -la', $result);
print_r($result);
echo '';
$result = passthru('ls -la');
echo '';
$result = system('ls -la');
echo '';
echo $result = `ls -la`;
echo '';
pri...
分类:
其他好文 时间:
2015-01-28 11:13:28
阅读次数:
145
需要相关权限 在界面中,存在一个按钮,单击按钮的情况下,判断当前的网络连接状态,分别在连接网络状态和未连接网络状态下,提示相关信息。代码如下: public class MainActivity extends Activity { private Button button;//对应的按钮 pri...
分类:
移动开发 时间:
2015-01-20 23:42:18
阅读次数:
324
/** * JavaScript escape/unescape 编码的 Java 实现 * author jackyz * keep this copyright info while using this method by free */public class Escape { pri...
分类:
编程语言 时间:
2015-01-20 17:34:19
阅读次数:
305
角标越界异常,空指针异常 1 public class Array_Question { 2 public static void main(String[] args) { 3 int[] arr5={3,3,4,5,5}; 4 System.out.pri...
分类:
编程语言 时间:
2015-01-20 00:44:42
阅读次数:
259
给一个区间,求该区间内 质因子个数等于k的数 的个数。
暴力预处理一下啦
#include
#include
using namespace std;
const int maxn=10000010;
bool pri[maxn];
int cnt[maxn];
void init()
{
memset(pri,1,sizeof pri);
memset(cnt,0,s...
分类:
其他好文 时间:
2015-01-19 15:47:37
阅读次数:
179
相信很多同行深受面试之苦,本人也是。刚来北京面试那会,被虐的很惨。可能这辈子都用不到的东西到面试的时候会通通呈现在你面前。现在正好抽空整理一下自己面试时遇到的问题,可以供大家参考,这些只是OC部分,后续会总结UI和高级多线程部分,希望能对大家有帮助
1.main()
{int a[5]={1,2,3,4,5};
int *ptr=(int *)(&a+1);
pri...
分类:
移动开发 时间:
2015-01-19 12:54:10
阅读次数:
224
一次shell中seq的处理背景:用要shell 提取 文件中内容,文件名是用序列号如下生成,文件差不多有将近400多w个 如下: www.ahlinux.com 原始脚本#! /bin/sh#str1=""#filecount=`ls-l /root/gjj | wc -l | awk '{pri...
分类:
系统相关 时间:
2015-01-15 12:17:30
阅读次数:
230