#include #include #include using namespace std;int main(){ ifstream in("in.txt"); string line; while (getline(in, line)) { stringstream ss(line); stri...
分类:
编程语言 时间:
2015-06-21 18:22:28
阅读次数:
110
Description:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a...
分类:
其他好文 时间:
2015-06-21 17:14:49
阅读次数:
93
(1) os.system# 仅仅在一个子终端运行系统命令,而不能获取命令执行后的返回信息system(command) -> exit_statusExecute the command (a string) in a subshell.# 如果再命令行下执行,结果直接打印出来1 >>> os.s...
分类:
编程语言 时间:
2015-06-21 17:07:09
阅读次数:
150
c# 操作txt文件 # 操作txt文件 c#创建文本private const string FILE_NAME = "ErroLog.txt"; public static void WriteFile(string str) ...{ S...
首先得说一下,我是个菜逼,这个问题今天才发现,才理解是什么意思;;;;
编程大牛请忽略此文章,,,,给初学者交流一下经验吧;;;;;
临近期末考试了,又拿出之前做的水体浏览一下,大喜,,发现问题了;;;;
在之前的C语言中,我们会经常用 char定义一个字符或字符串,,,
当时在处理字符串长度,字符串比较的时候通常会加一个头文件 #include 对...
分类:
编程语言 时间:
2015-06-21 15:54:44
阅读次数:
149
1.关于EL表达式的运算我不想多想,直接上例子吧....
empty 运算符:判断一个对象是否为null或者字符串是否为空或集合是否为空或域中是否没有任何属性
<%
String str="aaa";
pageContext.setAttribute("str", str);
Lis...
分类:
其他好文 时间:
2015-06-21 15:50:08
阅读次数:
147
原题链接:https://leetcode.com/problems/longest-palindromic-substring/
Given a string S,
find the longest palindromic substring inS.
You may assume that the maximum length of S is
1000, and ther...
分类:
其他好文 时间:
2015-06-21 14:33:22
阅读次数:
119
题目链接:https://leetcode.com/problems/string-to-integer-atoi/
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, ple...
分类:
其他好文 时间:
2015-06-21 14:30:06
阅读次数:
142
class Annoyance extends Exception {}
class Sneeze extends Annoyance {}
class Human {
public static void main(String[] args)
throws Exception {
try {
try {
throw new Sneeze();
}
c...
分类:
编程语言 时间:
2015-06-21 14:29:52
阅读次数:
149
原题链接:https://leetcode.com/problems/zigzag-conversion/
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like
this: (you may want to display this pattern i...
分类:
其他好文 时间:
2015-06-21 14:28:48
阅读次数:
153