码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
C# 堆栈(Stack)
堆栈(Stack)代表了一个后进先出的对象集合。 using System; using System.Collections; namespace CollectionsApplication { class Program { static void Main(string[] args) { Stack st =...
分类:Windows程序   时间:2015-05-06 23:03:44    阅读次数:254
C# 队列(Queue)
队列(Queue)代表了一个先进先出的对象集合。 using System; using System.Collections; namespace CollectionsApplication { class Program { static void Main(string[] args) { Queue q = ...
分类:Windows程序   时间:2015-05-06 23:02:02    阅读次数:408
java File类
package pack;import java.io.File; import java.io.FilenameFilter;public class Main { public static void sys(Object obj) { System.out.println(obj); } public static void main(String[] ar...
分类:编程语言   时间:2015-05-06 23:01:56    阅读次数:267
Python中字符串查找效率比较
Python中字符串查找方式有多种,常见的有re.match/search or str.find 用一个例子来说明各种方式的效率如下: from timeit import timeit import re def find(string, text): if string.find(text) > -1: pass def re_find(string, t...
分类:编程语言   时间:2015-05-06 22:59:55    阅读次数:247
C#数组的使用
//计算数组中最大值,最小值,平均值和总和 //类中main最先执行 static void Main(string[] args) { //声明一个数组,数组长度一定固定就不能更改了 int[] nums = {...
分类:编程语言   时间:2015-05-06 22:39:47    阅读次数:134
C#冒泡排序
static void Main(string[] arr) { int[] names = {4,2,5,7,6,8,9,1,3,0};//Array.Sort(names)数组排序 for (int i = 0; i n...
分类:编程语言   时间:2015-05-06 22:39:00    阅读次数:128
感受C#6.0新语法
作为一门专为程(yu)序(fa)员(tang)考虑的语言,感受一下来自微软的满满的恶意...1. 字符串内联在之前的版本中,常用的格式化字符串:var s = String.Format("{0} is {1} year{{s}} old", p.Name, p.Age);在 C# 6 中://无格...
分类:Windows程序   时间:2015-05-06 22:34:02    阅读次数:273
DAO JDBC 学生成绩管理系统
1:student、course类package JDBCU;public class Student { private String no; private String name; public String getNo() { return no; ...
分类:数据库   时间:2015-05-06 22:30:55    阅读次数:380
C#数组反转
static void Main(string[] arr) { string[] names = { "老杨1", "老李2", "老王3", "老牛4", "老虎5", "老磁6" }; for (int i = 0; i < names...
分类:编程语言   时间:2015-05-06 22:26:02    阅读次数:148
[LeetCode] Multiply Strings
Multiply Strings Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. 解题思路: 按照小学的做法,每位...
分类:其他好文   时间:2015-05-06 21:16:09    阅读次数:118
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!