#region 过滤HTML代码 //替换掉html字符,只显示文字信息。 public string replaceHtmlCode(string Htmlstring) { Htmlstring = Regex.Replace(Htmlstring, @"",...
Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to c...
分类:
其他好文 时间:
2015-02-14 16:11:18
阅读次数:
107
Program.cs using System; namespace HelloWorld
{ class Program { [STAThread] static void Main(string[] args) { App app = new App(); Bootstrappe...
分类:
其他好文 时间:
2015-02-14 16:08:30
阅读次数:
183
vector是同一种类型的对 象的集合,每个对象都有一个对应的整数索引值。和string对象一样,标准库负责管理存储元素的相关内存。我们把vector称为容器,是因为它可以包 含其他对象。一个容器中的所有对象都必须是同一种类型的。使用vector之前,必须包含相应的头文件。本书给出的例子,都是假设已...
分类:
其他好文 时间:
2015-02-14 14:57:39
阅读次数:
284
1. vector对象的sizeempty和size操作类似于string类型的相关操作(3.2.3节)。成员函数size返回相应vector类定义的size_type的值。使用size_type类型时,必须指出该类型是在哪里定义的。vector类型总是包括vector的元素类型:vector::s...
分类:
编程语言 时间:
2015-02-14 14:52:16
阅读次数:
432
/**
* 求奇数的乘积
*/
import java.util.*;
public class acm2006 {
/**
* @param args
*/
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
while(in.hasNextInt()){
int...
分类:
其他好文 时间:
2015-02-14 13:48:49
阅读次数:
142
import java.util.*;
public class 字母图形 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int m = in.nextInt();
for (int i = 0; i
for (int...
分类:
其他好文 时间:
2015-02-14 13:48:27
阅读次数:
202
App.config1.添加引用 => .NET 组件 => System.Configuration2.读取配置文件 string name = ConfigurationManager.AppSettings["name"];3.获取配置...
分类:
移动开发 时间:
2015-02-14 12:37:49
阅读次数:
194
内容来自StackoverFlow.可能对一些大神来讲太简单,但是这里好多用法我真的第一次用,学习了.
0.定义一个数组
String[] aArray = new String[5];
String[] bArray = {"a", "b", "c", "d", "e"};
String[] cArray = new String{"a", "b", "c", "d", "e"}...
分类:
编程语言 时间:
2015-02-14 11:09:07
阅读次数:
184
1.1. 栈的数据结构
栈是一种先进后出的数据结果,只能在一端(称为栈顶(top))对数据项进行插入和删除。
1.2. Java实现
StackTest
package ch04;
public class StackTest {
public static void main(String[] args) {
Arra...
分类:
编程语言 时间:
2015-02-14 11:06:28
阅读次数:
143