typedef long long ll;
typedef unsigned long long ull;
const int MAGIC = 131;
long long h[N], base[N];
long long MOD = (long long)1e9 + 7;
inline void Hash(char *s) {
int l = strlen(s);
h[0] = 1;
...
分类:
其他好文 时间:
2015-04-06 20:18:59
阅读次数:
128
#include
using namespace std;
int main(int argc, char* argv[])
{
char* str1 = "hello";
char* str2 = "china";
char* str3 = NULL;
str3 = new char[strlen(str1) + strlen(str2) + 1];
str3[0] = '\n...
分类:
其他好文 时间:
2015-04-06 18:50:09
阅读次数:
110
#include;
#include;
void huiwen( const char* str)
{
int i;
int flag;
int len=strlen(str);
char *ch=str;
while(*ch!='\0')
{
ch++;
}
ch--;
for(i=1;i<=len/2;i++)
{
if(*ch==*str)
{
fla...
分类:
编程语言 时间:
2015-04-06 17:22:12
阅读次数:
786
(11)获取文件夹信息文件夹没有修改操作。index.php:{$content}"; //高亮显示PHP代码 //高亮显示字符串中的PHP代码 if(strlen($content)){ $newContent=highlight_string($content,true)...
分类:
Web程序 时间:
2015-04-04 21:15:15
阅读次数:
468
#include #include #include int str_split(char *input, char *output, int *out){ char *p; int i,in_len,len,max,flag; in_len = strlen(input)...
分类:
其他好文 时间:
2015-04-04 18:01:30
阅读次数:
120
在测试自己制作的搜索页模板时,如果遇到搜索时提示"关键字不能小于2个字节!"!打开plus/search.php把if(($keyword=='' || strlen($keyword)<2) && empty($typeid)){ ShowMsg('关键字不能小于2个字节!','-1'); exi...
分类:
其他好文 时间:
2015-04-04 15:12:22
阅读次数:
102
unlink($filename) 删除文件index.php:{$content}"; //高亮显示PHP代码 //高亮显示字符串中的PHP代码 if(strlen($content)){ $newContent=highlight_string($content,true...
分类:
Web程序 时间:
2015-04-04 13:39:52
阅读次数:
194
① 普通形式的文件可以使用超链接形式下载点击下载② 如果下载图片、html 等类型的文件,使用header() 函数发送网页头信息实现文件下载{$content}"; //高亮显示PHP代码 //高亮显示字符串中的PHP代码 if(strlen($content)){ $ne...
分类:
Web程序 时间:
2015-04-04 13:30:05
阅读次数:
185
rename($oldname,$newname) 重命名文件或目录{$content}"; //高亮显示PHP代码 //高亮显示字符串中的PHP代码 if(strlen($content)){ $newContent=highlight_string($content,tr...
分类:
Web程序 时间:
2015-04-04 13:29:51
阅读次数:
202
//判断一个数是否为回文字符串
#include
int fun(char *str)
{
int len=strlen(str);
int i;
for(i=0;i<len;i++)
{
if(str[i]==(str[len-1]))
len--;
else
return -1;
}
return 1;
}
int main ()
{
char p[]="ab...
分类:
编程语言 时间:
2015-04-03 15:23:35
阅读次数:
133