码迷,mamicode.com
首页 >  
搜索关键字:gets    ( 3597个结果
hdu 5344 MZL's xor(数学之异或)
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
C语言 gets()和scanf()函数的区别
scanf( )函数和gets( )函数都可用于输入字符串,但在功能上有区别。若想从键盘上输入字符串"hi hello",则应该使用__gets__函数。gets可以接收空格;而scanf遇到空格、回车和Tab键都会认为输入结束,所有它不能接收空格。char string[15]; gets(str...
分类:编程语言   时间:2015-09-10 10:49:27    阅读次数:133
System.Windows.Forms中的Message Structure
结构用途说明Implements a Windows message.Properties1.public IntPtr HWnd { get; set; }Gets or sets the window handle of the message.System.IntPtrA platform-s...
分类:Windows程序   时间:2015-09-07 12:52:10    阅读次数:200
查看buffer cache命中率
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
hdu 5344 MZL's xor
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
实现一个函数,把字符串中的每个空格替换成”%20”
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
fgets()和gets()函数的区别
1、fgets比gets安全!为了安全,gets少用,因为其没有指定输入字符的大小,限制输入缓冲区得大小,如果输入的字符大于定义的数组长度,会发生内存越界,堆栈溢出。后果非常严重!fgets会指定大小,如果超出数组大小,会自动根据定义数组的长度截断。2、用strlen检测两者的输入的字符串长度,结果...
分类:其他好文   时间:2015-09-01 01:25:27    阅读次数:210
HDU 2955 Robberies
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并发处理
memcached(十八)并发原语CAS与GETS操作 Memcached 并发控制 CAS 协议 memcache控制高并发问题 使用memcached进行并发控制 memcached的最佳实践方案
分类:系统相关   时间:2015-08-27 22:42:43    阅读次数:173
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!