If we execute these assignment statements: We know that a and b both refer to a string, but we don’t know whether they refer to the same str...
分类:
其他好文 时间:
2014-07-15 23:20:09
阅读次数:
208
1,HTML页头部注册:控件摆放位置: 2,C#后台 /// /// 根据事项和分类决定显示用户控件中哪些要素 /// /// /// private void setUserControlVisible(string strFL,string str...
分类:
Web程序 时间:
2014-07-14 20:52:01
阅读次数:
263
//将字符串反转,但单词不倒置。Right here waiting for you! -> you! for waiting here Right#define _CRT_SECURE_NO_WARNINGS#include #include int main() { char str[25...
分类:
其他好文 时间:
2014-07-14 19:42:46
阅读次数:
278
ecshop的浏览历史的样式,例如我修改的是只让浏览历史显示浏览历史的商品名称 而不显示浏览历史的商品的价格和图片首先找到要修改 的文件includes\lib_insert.php找到函数function insert_history()函数里面的$str.=''.$goods['short_n....
分类:
其他好文 时间:
2014-07-14 19:42:09
阅读次数:
200
在iOS开发中,为了数据的安全经常对内容进行加密,在这儿我们对常用的加密算法进行了总结:
1、MD5
+ (NSString *)md5Hash:(NSString *)str {
const char *cStr = [str UTF8String];
unsigned char result[16];
CC_MD5( cStr, strlen(cStr), re...
分类:
移动开发 时间:
2014-07-14 18:17:16
阅读次数:
265
#!/usr/bin/pythonimportredefbuffer_line():buf=open("/etc/sae/buffer_1").read()ifnotbuf:return0else:returnint(re.findall("^\d*",buf)[0])defset_last_pos(pos):open("/etc/sae/buffer_1","w").write(str(pos))if__name__==‘__main__‘:appname={}fh=open("/data0/l7.acce..
分类:
编程语言 时间:
2014-07-14 16:41:57
阅读次数:
319
非常简单,就当练个手吧 1 //单链表逆序问题,其实很容易的,就是把指针指向给变一下,注意的几个问题 2 //(1)如果就一个元素,不算头结点,直接返回 3 //(2)注意头结点最后要单独处理问题 4 #include 5 using namespace std; 6 7 typedef str.....
分类:
其他好文 时间:
2014-07-14 16:05:19
阅读次数:
192
//判断文件是否存在
bool FileExistsW(const wstring &fn)
{
WIN32_FIND_DATAW fd;
HANDLE hFile = FindFirstFileW(fn.c_str(),&fd);
if (hFile != INVALID_HANDLE_VALUE)
{
::FindClose(hFile);...
<?php//验证码类classp_w_picpath{protected$im;protected$img_width;protected$img_height;protected$img_type;//生成随机数staticpublicfunctionrandStr($n=4){if($n<=0){return‘‘;}$str=‘abcdefghijkmnpqrstuvwxyzABCDEFGHIJKMNPQRSTUVWXYZ0123456789‘;$str=substr(st..
分类:
Web程序 时间:
2014-07-14 12:16:07
阅读次数:
287
C#中Graphics的画图代码【转】架上图片了你就可以在画板上涂改了啊我要写多几个字上去string str = "Baidu"; //写什么字?Font font = Font("宋体",30f); //字是什么样子的?Brush brush = Brushes.Red; //用红色涂上我的字吧...
分类:
其他好文 时间:
2014-07-13 19:45:20
阅读次数:
298