Problem DescriptionMZL loves xor very much.Now he gets an array A.The length of A is n.He wants to know the xor of all (Ai+Aj)(1≤i,j≤n)The xor of an a...
分类:
其他好文 时间:
2015-09-10 22:26:22
阅读次数:
190
scanf( )函数和gets( )函数都可用于输入字符串,但在功能上有区别。若想从键盘上输入字符串"hi hello",则应该使用__gets__函数。gets可以接收空格;而scanf遇到空格、回车和Tab键都会认为输入结束,所有它不能接收空格。char string[15]; gets(str...
分类:
编程语言 时间:
2015-09-10 10:49:27
阅读次数:
133
结构用途说明Implements a Windows message.Properties1.public IntPtr HWnd { get; set; }Gets or sets the window handle of the message.System.IntPtrA platform-s...
SQL> select name,value from v$sysstat where name in('db block gets','consistent gets','physical reads');NAME VALUE------------------------------------...
分类:
系统相关 时间:
2015-09-07 10:56:04
阅读次数:
238
Problem DescriptionMZL loves xor very much.Now he gets an array A.The length of A is n.He wants to know the xor of all (Ai+Aj)(1≤i,j≤n) The xor of an ...
分类:
其他好文 时间:
2015-09-05 12:24:20
阅读次数:
169
1 #include 2 #include 3 4 void replaceBlank(char *str); 5 6 int main() 7 { 8 char str[32]; 9 gets_s(str,32);10 replaceBlank(str);11 ...
分类:
其他好文 时间:
2015-09-01 21:27:03
阅读次数:
142
1 #include 2 #include 3 #include 4 #include 5 6 void reverse(char *str); 7 8 int main() 9 {10 char str[128];11 while(gets_s(str,128) != NUL...
分类:
其他好文 时间:
2015-09-01 21:22:01
阅读次数:
221
1、fgets比gets安全!为了安全,gets少用,因为其没有指定输入字符的大小,限制输入缓冲区得大小,如果输入的字符大于定义的数组长度,会发生内存越界,堆栈溢出。后果非常严重!fgets会指定大小,如果超出数组大小,会自动根据定义数组的长度截断。2、用strlen检测两者的输入的字符串长度,结果...
分类:
其他好文 时间:
2015-09-01 01:25:27
阅读次数:
210
RobberiesProblem DescriptionThe aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end,...
分类:
其他好文 时间:
2015-08-29 12:32:20
阅读次数:
202
memcached(十八)并发原语CAS与GETS操作 Memcached 并发控制 CAS 协议 memcache控制高并发问题 使用memcached进行并发控制 memcached的最佳实践方案
分类:
系统相关 时间:
2015-08-27 22:42:43
阅读次数:
173