#include #include int f[1001][1001];int c[1001];int w[1001];int N,V;int main(){ int t; int i,j; scanf("%d",&t); while(t--) { mem...
分类:
其他好文 时间:
2014-07-30 14:43:03
阅读次数:
209
int a[3];
a 和 &a 的地址一样的。
a+1 == a + 1*sizeof(int);跳跃是一个数组元素大小
&a+1 == a + 3*sizeof(int);跳跃是整个数组大小
#include
int
main()
{
char * a[] = {"hello","the","world"};
char ** pa = a;
pa ++;
/* 获取数组中第二个元素 */
printf("*pa = %s\n",*pa);
printf("*(a+...
分类:
其他好文 时间:
2014-07-30 12:27:03
阅读次数:
252
1.打开一个SharedPreferences的数据Map SharedPreferences preference = getSharedPreferences("数据Map的名称", 打开模式 ); 打开模式有多种,一般用可读和可写两种,MODE_WORLD_WRITEABLE,MODE_WORLD_READABLE...
分类:
移动开发 时间:
2014-07-30 10:15:13
阅读次数:
191
strcasecmp strcasecmp(忽略大小写比较字符串) 相关函数 bcmp,memcmp,strcmp,strcoll,strncmp 表头文件 #include 定义函数 int strcasecmp (const char *s1, const char *s2); 函数...
分类:
其他好文 时间:
2014-07-30 09:50:03
阅读次数:
365
一 Words 1 foible 小缺点,小癖好 e.g. You could do Ebay,or dating or indulge 纵容,沉溺于another foible of choice.你可以上eBay购物,或者约会,或者纵容另外一个弱点。 2 obnoxious 讨厌的 eg. My...
分类:
其他好文 时间:
2014-07-30 07:39:03
阅读次数:
274
create table tbl_table ( id integer not null auto_increment, fname varchar(255), lname varchar(255), CONSTRAINT tbl_table PRIMARY KEY (id), un...
分类:
数据库 时间:
2014-07-30 03:17:52
阅读次数:
356
NSNumber生成:NSNumber *number1 = [[NSNumber alloc] initWithInt:1000];转成NSNumber型:// short型→NSNumber型NSNumber *num = [NSNumber numberWithShort:32767];// ...
分类:
其他好文 时间:
2014-07-30 00:37:02
阅读次数:
204
导致COSMIC报告"segment .ubsct overflow"错误的根本原因是内存溢出, 相关原因分析如下:1、变量存储空间结构STM8S105系列CPU的RAM地址范围为0~0x7FF的2K空间,其中默认将高512字节分配给堆栈,剩下0~0x5FF字节为变量存储空间 。在0~0x5FF的空...
分类:
其他好文 时间:
2014-07-30 00:28:12
阅读次数:
1390
执行一条查询语句,结果一直显示的是查询状态,没有出来结果。原来是在执行的一个存储过程里加了事务,但是这个执行存储过程出了错。于是想到,肯定是这个表被锁住了。接下来就好办了。select request_session_id spid,OBJECT_NAME(resource_associated.....
分类:
其他好文 时间:
2014-07-30 00:21:42
阅读次数:
248
这道题的坑在----过程中即使使用long long 也会超出范围
自己看了很久读了很多遍题还是没想到
记得当时的想法是----反正我用了long long 已经是最大的范围了,肯定没法用更大的类型--即使unsigned也只是 比long long 大一倍,现在回头看,这种想法太唯心,不是理性分析的结果啊,,
代码:
//1005
#include
#include
#in...
分类:
其他好文 时间:
2014-07-29 21:57:52
阅读次数:
290