/** * @author Direction *//** * JALJA 命名空间 namespace */var JALJA= {} ;/** * Interface Class * 接口类需要2个参数 * 参数1: 接口的名字 (string) * 参数2: 接受方法名称的集合(数组) (.....
分类:
Web程序 时间:
2015-04-16 23:40:41
阅读次数:
211
之前的答案错误问题已经解决了,现在还有运行超时的问题,先贴上之前的代码 1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int count, renum; 8 string add; 9 ...
分类:
编程语言 时间:
2015-04-16 23:40:30
阅读次数:
267
1 public class Cat { 2 private static int sid = 0; 3 private String name; 4 int id; 5 Cat(String name) { 6 this.name = name;...
分类:
编程语言 时间:
2015-04-16 23:37:11
阅读次数:
226
while (true) { Console.Write("请输入一个时间(24小时制):"); //string s = Console.ReadLine(); int hour = Convert.ToInt32(Console .ReadLine ()); if(hour >= 0 && h....
分类:
其他好文 时间:
2015-04-16 23:27:42
阅读次数:
187
简要的说, String 类型和 StringBuffer 类型的主要性能区别其实在于 String 是不可变的对象, 因此在每次对 String 类型进行改变的时候其实都等同于生成了一个新的 String 对象,然后将指针指向新的 String 对象,所以经常改变内容的字符串最好不要用 Strin...
分类:
其他好文 时间:
2015-04-16 23:27:35
阅读次数:
194
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.class Solution {public: string intToRoman...
分类:
其他好文 时间:
2015-04-16 23:25:42
阅读次数:
117
class Program { struct student //定义一个student的结构体 { public string name; //基本格式 public int code; public int age; public int fenshu; } static void Main(....
分类:
编程语言 时间:
2015-04-16 23:22:09
阅读次数:
129
import sun.misc.BASE64Encoder;import sun.misc.BASE64Decoder;public class Base64encoder { public static void main(String[] args) throws Exception { BA....
分类:
编程语言 时间:
2015-04-16 23:19:23
阅读次数:
164
正则表达式语法结构图:Java正则表达式类库结构图:Java典型例子1、String类 matches()方法判断字符串是否符合特定正则表达式@Test public void testRegex(){ String regex = ".*\\d{3}.*"; String str1 = "11te...
分类:
编程语言 时间:
2015-04-16 23:16:54
阅读次数:
218
static void Main(string[] args) { // 本月的成兔=上月的小兔+上月的成兔 // 本月的小兔=上月的小兔 // 本月的幼兔=本月的成兔 Console.WriteLine("请输入月数:"); int m = Convert.ToInt32(Console.R...
分类:
其他好文 时间:
2015-04-16 23:14:39
阅读次数:
154