码迷,mamicode.com
首页 > 其他好文
判断是否是闰年
int b = int.Parse(Console.ReadLine()); if (b % 4 == 0 && b % 100 != 0) { Console.WriteLine("是闰年"); } ...
分类:其他好文   时间:2014-12-13 21:42:40    阅读次数:232
Struts2 为Action 的属性注入值&& 处理请求后缀
在Struts2中的配置文件中,我们可以很方面的为Action中的属性注入值。注意:属性必须提供set()若在页面中显示 必须提供get() /strutsDemo /employee.jsp?username=${username} 若对某ac...
分类:其他好文   时间:2014-12-13 21:42:40    阅读次数:289
CK竞技之王武器插件-练手版
Weapon.inc 1 new const m_flNextAttack = 83 2 new const m_flVelocityModifier = 108 3 new const m_iTeam = 114 4 new const m_iAccount = 115 5 new co...
分类:其他好文   时间:2014-12-13 21:41:33    阅读次数:232
拉丁方阵问题
问题描述: 拉丁方阵是一种n×n的方阵,方阵中恰有n中不同的元素,每种元素恰有n个,并且每种元素在一行和一列中恰好出现一次。著名数学家和物理学家欧拉使用拉丁字母来做为方阵里元素的符号,拉丁方阵因此而得名。问题分析: 用循环链表来实现实现代码(c):#include#includetypedef .....
分类:其他好文   时间:2014-12-13 21:41:08    阅读次数:194
Exercise 2.1 Convert inches to yards, feet, and inches
Exercise 2-1. Write a program that prompts the user to enter a distance in inches andthen outputs that distance in yards, feet, and inches. (For those...
分类:其他好文   时间:2014-12-13 21:43:26    阅读次数:368
100元买铅笔,笔盒。每样至少买一支,有多少种可能。
for (int a = 1; a <= 50; a++) { for (int b = 1; b <= 20; b++) { if (2 * a ...
分类:其他好文   时间:2014-12-13 21:43:33    阅读次数:260
PAT (Basic Level) Practise (中文) 1005
1005. 继续(3n+1)猜想 (25)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, Yue卡拉兹(Callatz)猜想已经在1001中给出了描述。在这个题目里,情况稍微有些复杂。当我们验证卡拉兹猜想的时候,为了避免重复计算,可以记录下...
分类:其他好文   时间:2014-12-13 21:41:04    阅读次数:150
服务器搭建篇
以下服务器均在Ubuntu下搭建:==================TFTP服务器篇======================tftp服务器1、安装:sudo apt-get install tftpd tftp xinetd2、修改配置文件:sudo vim /etc/xinetd.d/tft...
分类:其他好文   时间:2014-12-13 21:41:43    阅读次数:185
Lintcode: First Bad Version 解题报告
First Bad Version http://lintcode.com/en/problem/first-bad-versionThe code base version is an integer and start from 1 to n. One day, someone commit.....
分类:其他好文   时间:2014-12-13 21:42:22    阅读次数:398
hello struts2 ( 一 )
1.struts2的国际化 struts.xml中配置以下代码,要求src下有message_XX_xx.properties资源文件。(有关struts2的国际化见 struts2国际化)1 2 3 4 若不能成功加载,在struts.properties中加入以下属性。(有关pro...
分类:其他好文   时间:2014-12-13 21:40:22    阅读次数:175
STL——内存基本处理工具
STL定义有五个全局函数,作用于未初始化空间上,这样的功能对于容器的实现很有帮助。前两个函数是用于构造的construct()和用于析构的destroy(),另三个函数是uninitialized_copy(),uninitialized_fill(),uninitialized_fill_n,分别...
分类:其他好文   时间:2014-12-13 21:42:01    阅读次数:226
青少年必读书籍
1.《务虚笔记》2.《活着》3.《基督山伯爵》4.《羊皮卷》5.《富兰克林自传》6.《依靠自我》7.《自己拯救自己》8.《伟大的励志书》9.《致加西亚的信》10.《巴比伦富翁的秘密》11.《思考致富》12.《一生的计划》13.《积极思考的力量》14.《人人都能成功》15.《世界上最伟大的推销员》16...
分类:其他好文   时间:2014-12-13 21:42:08    阅读次数:249
Editor
Editor目前已开源在github上。参考了霏霏的OgreSE,在此深表感谢。
分类:其他好文   时间:2014-12-13 21:41:46    阅读次数:137
参数传递问题
一直没有好好研究C语言参数传递,只是从书上看,知道有传值和传地址两种方式,有时候一知半解真的不行,看似懂了,遇到问题后就乱了手脚,他们内部发生什么变化并不清楚,现在写下来。C语言的参数传递有传值和传地址两种方式。传值的过程:(1)行参与实参各占一个独立的存储空间。(2)行参的存储空间是函数被调用时才...
分类:其他好文   时间:2014-12-13 21:40:46    阅读次数:189
Word 2010 入门教程【初步认识Word 2010】
(一)默认功能区介绍 默认功能区包括开始、插入、页面布局和引用等分组。 (二)自定义功能区 通常在功能区中我们看到开始、插入、页面布局、引用、邮件、审阅和视图,那么如何再添加一些其他的功能区呢? 1. 文件 -----> 选项 ----- > 自定义功能区 2. 在“自定义功能区”中...
分类:其他好文   时间:2014-12-13 21:40:36    阅读次数:326
Programming Question - 6
Question 1Download the text filehere. (Right click and save link as).The goal of this problem is to implement a variant of the 2-SUM algorithm (covere...
分类:其他好文   时间:2014-12-13 21:41:15    阅读次数:1587
Leetcode Reorder List
实现链表如下所示:Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…一开始想到一个n方的,就是每次找最后一个回调到相应位置,然后倒数第二个的next置为NULL,依次类推。果然超时。/**...
分类:其他好文   时间:2014-12-13 21:39:04    阅读次数:218
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!