刚在stackoverflow看到一道很不错的问题,遂拿来分享之。
题目要求:我有一个很长的字符串:
String s1="This is my world. This has to be broken."
我要把上面的字符串打乱以固定的长度(例如10)使得输出为:
This is my
world. Thi
s has to b
e broken.
但是...
分类:
其他好文 时间:
2014-05-09 02:41:46
阅读次数:
266
/*
* uva575
* Date:2014/5/7
* State: AC
*/
#include
#include
#include
#include
#include
using namespace std;
const int MAXN=34;
char Arr[MAXN];
int main()
{
//cout << "Hello world!" << end...
分类:
其他好文 时间:
2014-05-09 02:25:56
阅读次数:
269
1, Nginx 安装,http://nginx.org/en/download.html.下载解压,configure,make ,make install.安装过程中确实包,需要先下载安装依赖包2,安装lighttpd的spawn-fastcgi 下载http://www.lighttpd.net/download/lighttpd-1.4.19.tar.gz ./configuremake...
分类:
其他好文 时间:
2014-05-09 01:46:02
阅读次数:
358
/*
* uva10879
* Date:2014/5/7
* State:AC
*/
#include
#include
using namespace std;
int main()
{
//cout << "Hello world!" <>N;
...
分类:
其他好文 时间:
2014-05-09 00:30:58
阅读次数:
287
Hello World驱动程序 1.头文件(必选) 2.模块参数(可选) 3.模块功能函数(可选)
4.其他(可选) 5.模块加载函数(必选) 6.模块卸载函数(必选) 7.模块许可声明(必选) 1.头文件(必选)#include #include
2.模块参数(可选)3.模块加载函数(必选)模块加...
分类:
其他好文 时间:
2014-05-08 13:25:07
阅读次数:
228
Struts2常用标签总结一 介绍1.Struts2的作用
Struts2标签库提供了主题、模板支持,极大地简化了视图页面的编写,而且,struts2的主题、模板都提供了很好的扩展性。实现了更好的代码复用。Struts2允许在页面中使用自定义组件,这完全能满足项目中页面显示复杂,多变的需求。
...
分类:
其他好文 时间:
2014-05-08 12:58:19
阅读次数:
389
编程思想: 更改图片的路径信息 代码如下: 点击灯泡来点亮或熄灭这盏灯——Money
makes the world go around.
分类:
Web程序 时间:
2014-05-08 12:25:12
阅读次数:
1114
1 2 New Document 3 21 22 23 hello,world?!24 25
上面是自己写的一个,然后我从网上看到了一个写的不错的,可以看出是个对JavaScript了解的比较深入细致的一个人(http://www.cnblogs.com/kuikui/ar...
分类:
编程语言 时间:
2014-05-08 11:57:39
阅读次数:
442
IDisplayTransformationDeviceFrameVisible extent
in device coordinates.FittedBoundsDevice frame in world
coordinates.ResolutionResolution of the device...
分类:
其他好文 时间:
2014-05-08 09:27:11
阅读次数:
695
公告滚动JS代码
·Hello World!·更多...·... ·如果有建议请提交给我们... ·非常感谢大家经常光顾·再次感谢大家,再见...
分类:
Web程序 时间:
2014-05-07 23:17:26
阅读次数:
477