1 class Solution { 2 public: 3 int romanToInt(string s) { 4 int i,len=s.size(); 5 int dig[20]; 6 for(i=0;i<len;i++) 7 ...
分类:
其他好文 时间:
2015-06-06 11:52:28
阅读次数:
114
java.lang: language java的核心包,Object System String Throwable jdk1.2版本后,该包中的类自动被导入。java.awt: 定义的都是用于java图形界面开发的对象。javax.swing: 提供所有的windows桌面应用程序包括的控...
分类:
编程语言 时间:
2015-06-06 11:52:10
阅读次数:
199
父类: class Person { public Person() { Console.WriteLine("========================"); } public Person(string n...
分类:
其他好文 时间:
2015-06-06 11:51:52
阅读次数:
129
准备工作一些比较有用的声明大小写转换: function ToLower: string; function ToLower(LocaleID: TLocaleID): string; function ToLowerInvariant: string; function ToUpper: stri...
分类:
移动开发 时间:
2015-06-06 11:51:20
阅读次数:
728
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:
其他好文 时间:
2015-06-06 11:49:30
阅读次数:
86
1?#include?<stdafx.h> ??2?#include?<stdio.h> ??3?#include?<string.h> ??4?#include?<math.h> ??5?#include?<windows.h> ??6?using?namespace?std; ??7? ??8? ??9?//将位图...
分类:
编程语言 时间:
2015-06-06 10:41:06
阅读次数:
175
Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, "helloworld"
can be printed as:
h d
e l
l r
lowo
That is, the characters must be ...
分类:
其他好文 时间:
2015-06-06 10:40:20
阅读次数:
135
编写函数int count_number_string(char str[])和函数int maxnum_string(char str[])。。。。。。。。。。。。。...
分类:
其他好文 时间:
2015-06-06 10:37:26
阅读次数:
132
Write a function to find the longest common prefix string amongst an array of strings.求最长公共前缀:以第一个字符串为模板比较之后的字符串即可。 1 public class Solution { 2 pu...
分类:
其他好文 时间:
2015-06-06 10:33:58
阅读次数:
102
import java.io.*;import java.net.*;public class TalkClient { public static void main(String args[]) { try { // 向本机的4700 端口发出客户请求 ...
分类:
其他好文 时间:
2015-06-06 10:30:39
阅读次数:
159