#include
#include
using namespace std;
int main()
{
int ncase,num;
char str;
cin>>ncase;
while(ncase--)
{
cin>>num;
stack st;
for(int i=0;i<num;i++)
...
分类:
其他好文 时间:
2015-03-09 14:33:17
阅读次数:
101
1、安装Apache:yum install httpd2、安装php: yum install php3、安装mysql客户端:yum install mysql4、安装mysql服务端:yum install mysql-server启动mysql服务: service mysqld st...
分类:
其他好文 时间:
2015-03-09 12:41:48
阅读次数:
174
11.String转int,即atoi函数实现。
主要考虑以下几种情况:
1. String为空
2. String中存在非数字字符,如空白字符,abcd等
3. String的正负
Code:
public class test {
public static int atoi(String str) {
if (str == null || st...
分类:
编程语言 时间:
2015-03-09 11:00:42
阅读次数:
175
顺序: for(Node x = first; x !=null,x=x.next){ if(key.equals(x.key)) { return x.val;(x.val = val;) } ...
分类:
其他好文 时间:
2015-03-09 01:39:55
阅读次数:
130
结构体操作中.和->的区别: 1 struct student { 2 char name[60]; 3 int age; 4 } 5 6 struct student stu1; 7 struct student *stu2; 8 9 stu2 = &stu1;10 st...
分类:
其他好文 时间:
2015-03-08 18:35:20
阅读次数:
116
将一个无向图分成许多回路,回路点交集为空,点幷集为V。幷最小化回路边权和。 1 #include 2 #include 3 #include 4 #include 5 #define maxn 2010 6 #define oo 0x3f3f3f3f 7 using namespace st...
分类:
其他好文 时间:
2015-03-08 14:12:50
阅读次数:
123
修改Cas Server的其它配置
1.1 修改host.name
host.name是定义在cas.properties文件中的一个属性。该属性将被定义在uniqueIdGenerators.xml文件中的各种UniqueTicketIdGenerator用来生成TGT、ST等ticket。默认在生成这些ticket时会将host.name作为对应ticket的后...
分类:
其他好文 时间:
2015-03-08 10:32:20
阅读次数:
188
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
ARPCHECK=no /sbin/ifup eth1 2> /dev/null
Stdout from the command:
Device eth1 does not seem to be present, delaying initialization.
St...
分类:
Windows程序 时间:
2015-03-07 20:05:43
阅读次数:
1240
1.若只支持3.0及以上 若miniSdkVersion设置11及以上 eg:则默认的主题为Theme.Holo此主题下所有activity都包含action bar. (也可在Application或单独activity标签下明确设置主题样式: android:theme="@android:st...
分类:
移动开发 时间:
2015-03-07 20:00:18
阅读次数:
166
1.若只支持3.0及以上 若miniSdkVersion设置11及以上 eg:则默认的主题为Theme.Holo此主题下所有activity都包含action bar. (也可在Application或单独activity标签下明确设置主题样式: android:theme="@android:st...
分类:
移动开发 时间:
2015-03-07 19:57:03
阅读次数:
201