码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
poj-1151-Atlantis-线段树求面积并
很裸的线段树求面积并。 坐标需要离散化一下。 #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000,1024000000") using namespace std; #define maxn 11000 #define...
分类:其他好文   时间:2014-06-10 19:23:46    阅读次数:200
【leetcode】Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is no...
分类:其他好文   时间:2014-06-10 18:36:29    阅读次数:193
Effective C++:条款12:复制对象时勿忘其每一个成分
(一) 一个继承体系的声明: class Date {...}; class Customer { public: ... private: string name; Date lastTransaction; }; class PriorityCustomer : public Customer { public: PriorityCustomer(const...
分类:编程语言   时间:2014-06-10 17:45:35    阅读次数:289
编程基础知识——java类加载
java类加载 先来看一段小程序: package com; public class Main1 { static { System.out.println("1111") ; } public static void main(String[] args) { System.out.println("2222") ; } } 输出结果为: 111...
分类:编程语言   时间:2014-06-10 17:27:38    阅读次数:272
【转】“正由另一进程使用,因此该进程无法访问该文件”的问题&解决方法
正在写一个手指画图的程序C# + WPF其中有一部分是加载外部某PNG文件,放入BitmapImage,再作为Image的Source显示在Canvas上画了几笔之后,再存回这个PNG文件================问题=================BitmapImage这个对象没有Disp...
分类:其他好文   时间:2014-06-10 16:42:15    阅读次数:276
[leetcode]Longest Common Prefix @ Python
原题地址:https://oj.leetcode.com/problems/longest-common-prefix/题意:Write a function to find the longest common prefix string amongst an array of strings.解...
分类:编程语言   时间:2014-06-10 16:31:52    阅读次数:261
Soket 连接发送与接收
///url:地址 data:数据 public static string GetContentFromUrl(string url, string data) { Socket socket = new Socket(AddressFamily.InterNetwor...
分类:其他好文   时间:2014-06-10 16:28:19    阅读次数:170
Http请求响应
// requestUrl:地址?xx=xx private string GetContentFromUrll(string requestUrl) { string _StrResponse = ""; HttpWebRequest...
分类:其他好文   时间:2014-06-10 16:22:14    阅读次数:129
java transient简单介绍
我们都知道一个对象仅仅要实现了Serilizable接口,这个对象就能够被序列化,java的这样的序列化模式为开发人员提供了非常多便利,我们能够不必关系详细序列化的过程,仅仅要这个类实现了Serilizable接口,这个的全部属性和方法都会自己主动序列化。 然而在实际开发过程中,我们经常会遇到这种问...
分类:编程语言   时间:2014-06-10 16:18:20    阅读次数:244
Leetcode: Integer to Roman
一次过 1 public class Solution { 2 public String intToRoman(int num) { 3 StringBuffer res = new StringBuffer(); 4 if (num > 3999 || n...
分类:其他好文   时间:2014-06-10 16:12:12    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!