问题:1.反转字符串,比如str=“hello world!!!",反转后ret=“!!!dlrow olleh";代码如下:#include #include char* reverse(char inp[],int size){ if(size<0) return NULL; /...
分类:
其他好文 时间:
2014-08-18 23:17:23
阅读次数:
242
Swordfish
Time Limit: 2 Seconds Memory Limit: 65536 KB
There exists a world within our world
A world beneath what we call cyberspace.
A world protected by firewalls,
passwords and the mo...
分类:
其他好文 时间:
2014-08-18 20:32:12
阅读次数:
334
We all know the Super Powers ofthis world and how they manage to get advantages in political warfare or evenin other sectors. But this is not a political platform and so we will talkabout a different ...
分类:
其他好文 时间:
2014-08-18 18:42:02
阅读次数:
191
有选择地更新特定的类别/软件包并且忽略其他类别/软件包通过让emerge--sync在执行rsync的时候排除个别类别/软件包你需要在/etc/make.conf中赋予--exclude-from变量一个文件名,该文件应包含你想要排除的软件包。在/etc/portage/make.conf中指定包含排除软件包条目的文件:PORTAG..
分类:
其他好文 时间:
2014-08-18 16:34:13
阅读次数:
225
看了几天的Windows Internals, 觉得挺烦的,看不进去。作者讲Windows的各种机制讲得有些枯燥,毕竟Windows不是开源的,很多内部的实现都只能用概念来讲解,有些抽象。
转到了Linux阵营,经典的LDD(Linux Driver Develop)读起来顺畅无比,相见恨晚。
驱动的Hello World,也是好几天,今天才弄好。其间编译安装自己的内核差点把整个系统搞挂,格式...
分类:
系统相关 时间:
2014-08-18 02:49:33
阅读次数:
279
输入一个字符串和一个非负整数N,要求将字符串循环左移N次。输入格式: 输入在第1行中给出一个不超过100个字符长度的、以回车结束的非空字符串;第2行给出非负整数N。输出格式: 在一行中输出循环左移N次后的字符串。输入样例:Hello World!2输出样例:llo World!He#include#...
分类:
其他好文 时间:
2014-08-18 02:48:53
阅读次数:
293
输入一个字符串,对该字符串进行逆序,输出逆序后的字符串。输入格式: 输入在一行中给出一个不超过80个字符长度的、以回车结束的非空字符串。输出格式: 在一行中输出逆序后的字符串。输入样例:Hello World!输出样例:!dlroW olleH#includeint main(){ char s[....
分类:
其他好文 时间:
2014-08-18 02:47:23
阅读次数:
174
hdu 3257 Hello World!(位运算 & 模拟)...
分类:
其他好文 时间:
2014-08-17 17:05:52
阅读次数:
259
string str("hello world");string *pstr = &str;cout << pstr[0] << endl;cout << *pstr << endl;本来以为psr[0]输出来的值是'h' 没有想到输出来的而是 hello world ,而且 *pstr输出的也是同...
分类:
其他好文 时间:
2014-08-17 15:32:32
阅读次数:
336
接触JS一段时间了,但总感觉不得要领,技术得不到提升,翻来覆去,决定对基础知识做一次系统的整理,要坚持每一天都有新的收获变量,即通过一个名字将一个值关联起来,以后通过变量就可以引用到该值,比如:var str = "Hello, World";当我们下一次要引用”Hello, Wrold”这个串.....
分类:
其他好文 时间:
2014-08-17 15:27:42
阅读次数:
120