You should initialize most fields normally, not
lazily. If you must initialize a field lazily in order to achieve your
performance goals, or to break ...
分类:
编程语言 时间:
2014-05-09 18:32:56
阅读次数:
497
#include #ifdef __cplusplusextern "C"
{#endif#include #include //#include #ifdef _MSC_VERint strcasecmp(const char
*s1, const char *s2){ while ((*s...
分类:
其他好文 时间:
2014-05-05 11:09:37
阅读次数:
382
Leetcode Word Break, DP 算法
分类:
其他好文 时间:
2014-05-05 09:36:49
阅读次数:
567
1.字母数字自动换行:wcline.wcline {word-break:
break-all;word-wrap: break-word;}2.内容长度自动截取并添加... overflow:
hidden;text-overflow: ellipsis;white-space: nowrap;
分类:
其他好文 时间:
2014-05-04 19:14:15
阅读次数:
302
行编辑程序、括号匹配检验程序都是利用的栈的数据结构。而这两个
小程序也非常好的显示了栈先进后出的思想。由于程序本身很简短、清晰,所
以也就不做多的解释了,直接上代码了。
行编辑程序:
#include
#include
using namespace std;
int main()
{
stack sta;
char ch = getchar();
while(ch!=EOF)
...
分类:
其他好文 时间:
2014-05-04 18:55:11
阅读次数:
423
#include
#include
int main()
{
double k,m;
int T;
scanf("%d",&T);
while(T--)
{
scanf("%lf%lf",&k,&m);
int a=pow(10,log10(m)/k);
while(pow(a+1,k)<=m)
++a;
printf("%d\n",a);
}
return 0;
}...
分类:
其他好文 时间:
2014-05-04 18:44:58
阅读次数:
296
严重: Exception loading sessions from persistent storage
java.io.EOFException
删除Tomcat里面的work/Catalina/localhost下的内容即可解决
Tomcat在启动时出现如下异常问题:
严重: IOException while loading persisted sessions...
分类:
其他好文 时间:
2014-05-04 17:58:54
阅读次数:
313
Actions 是由下列指令(statement)所组成: 1 表达式 (
函数调用,赋值...) 2 print 表达式列表 3 printf( 格式化字符串, 表达式列表) 4 if( 表达式 ) 语句 [else 语句] 5
while( 表达式 ) 语句 6 do 语句 while( 表.....
分类:
其他好文 时间:
2014-05-04 11:26:31
阅读次数:
486
switch...case的基本用法:
switch(表达式)
{
case 常量表达式1:
语句1;(可包含多个语句,可不加大括号)
break;
case 常量表达式2:
语句2;(可包含多个语句,可不加大括号)
...
default:
语句;(可包含多个语句,可不加大括号)
}
书上会这么说:
注意case后面的常量表达式是冒号。
注意default是所有cas...
分类:
其他好文 时间:
2014-05-04 09:10:54
阅读次数:
333
So many days passed since the last C tutorial about the flowchart, this chapter we will go on the flowchart and while loops...
分类:
其他好文 时间:
2014-05-04 09:01:20
阅读次数:
307