码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
JS工具
/** * @author Direction *//** * JALJA 命名空间 namespace */var JALJA= {} ;/** * Interface Class * 接口类需要2个参数 * 参数1: 接口的名字 (string) * 参数2: 接受方法名称的集合(数组) (.....
分类:Web程序   时间:2015-04-16 23:40:41    阅读次数:211
PAT 链表倒序的算法优化
之前的答案错误问题已经解决了,现在还有运行超时的问题,先贴上之前的代码 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
JAVA_static关键字
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
例题:请输入一个时间,判断是一天中的哪个时间。逻辑思维比较强的一个题。主要复习一下if else语句
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 类型和 StringBuffer 类型的主要性能区别其实在于 String 是不可变的对象, 因此在每次对 String 类型进行改变的时候其实都等同于生成了一个新的 String 对象,然后将指针指向新的 String 对象,所以经常改变内容的字符串最好不要用 Strin...
分类:其他好文   时间:2015-04-16 23:27:35    阅读次数:194
#12 Integer to Roman
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
例题:输入学生的各项资料,然后根据学生的分数,重新排序。重新复习结构体,集合,数组,for循环,冒泡排序,水平符的使用。
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
java BASE64解码 加密
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
4.熟悉Java基本类库系列——Java 正则表达式类库
正则表达式语法结构图:Java正则表达式类库结构图:Java典型例子1、String类 matches()方法判断字符串是否符合特定正则表达式@Test public void testRegex(){ String regex = ".*\\d{3}.*"; String str1 = "11te...
分类:编程语言   时间:2015-04-16 23:16:54    阅读次数:218
例题:一对幼兔,一个月后长成小兔,小兔一个月后长成成兔并生下一对幼兔,问n个月后有多少对兔子。这个题主要是学习计算机思维,我们只需要把条件告诉计算机,让计算机算结果
static void Main(string[] args) { // 本月的成兔=上月的小兔+上月的成兔 // 本月的小兔=上月的小兔 // 本月的幼兔=本月的成兔 Console.WriteLine("请输入月数:"); int m = Convert.ToInt32(Console.R...
分类:其他好文   时间:2015-04-16 23:14:39    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!