namespace 你的成绩及格吗?{ class Program { static void Main(string[] args) { double a; while (true ) { Console.WriteLine("请输入你的姓名"); Console.ReadLin...
分类:
其他好文 时间:
2015-03-27 23:49:34
阅读次数:
223
Lua有7种数据类型,分别是nil、boolean、number、string、table、function、userdata。这里我总结一下Lua的string类型和string库,复习一下,以便加深记忆。个人认为string是Lua编程使用数据结构的时候,重要性仅次于table的类型。十分重.....
分类:
其他好文 时间:
2015-03-27 23:49:28
阅读次数:
203
自JDK5之后,Java推出了一个并发包,java.util.concurrent,在Java开发中,我们接触到了好多池的技术,String类的对象池、Integer的共享池、连接数据库的连接池、Struts1.3的对象池等等,池的最终目的都是节约资源,以更小的开销做更多的事情,从而提高性能。 .....
分类:
编程语言 时间:
2015-03-27 23:48:55
阅读次数:
355
Interleaving String问题:Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2.思路: dfs肯定能解决 但是肯定会超时 动态规划方程dp[i][j] == true only dp[i-1][.....
分类:
其他好文 时间:
2015-03-27 23:47:06
阅读次数:
232
用((:?)如果-否则): namespace 男女体重测试 { class Program { static void Main(string[] args) { double a, b ,n,m; //做个简单的体重测试 while (true) { Console.WriteLin...
分类:
其他好文 时间:
2015-03-27 23:31:42
阅读次数:
172
LinkedBlockingQueue是由链表组成的阻塞队列,先来看demo
public class LinkedBlockingQueueDemo {
public static void main(String[] args) {
ExecutorService es = Executors.newCachedThreadPool();
BlockingQueue queue ...
分类:
数据库 时间:
2015-03-27 22:25:36
阅读次数:
196
【思路】:按照题意来就行。注意当p1=2时,字母串和数字串的区别。推荐使用string,采用replace函数替换就行,char[]移动大量数据。
【AC代码】:
#include
#include
#include
#include
#include
using namespace std;
#define MAX 10000+5
int isLower(char c)
{
...
分类:
其他好文 时间:
2015-03-27 22:20:17
阅读次数:
626
static void Main(string[] args) { while (true) { int m1 = 31; int m2 = 28; int m3 = 31; int m4 = 30; int m5 = 31; int m6 = 30; int m7 = 31; int m8 = 3...
分类:
其他好文 时间:
2015-03-27 22:11:15
阅读次数:
214
我们总是频繁的对数组和字符串进行操作,今天整理一下这些常用的方法。复习的时候写一写 不然会忘掉一些小细节==。 一,String对象 1.跟位置有关的 charAt() 返回在指定位置的字符 charAtCodeAt() 方法可返回指定位置的字符的 U...
分类:
Web程序 时间:
2015-03-27 22:11:05
阅读次数:
137
IO包中的其他类: 1.打印流:提供了打印方法,可以将各种数据类型的数据原样打印 字节打印流PrintStream 构造函数可以接受的参数类型: (1)File对象 File (2)字符串路径 String (3)字节输出流 OutputStream 字符打印流PrintWriter 构造函数可以接...
分类:
其他好文 时间:
2015-03-27 22:10:19
阅读次数:
253