摘要: ‘document.getElementById('id').setAttribute('value',result)’ has different performance between IE and Firefox. IE don’t get the value in the controller use Request(‘id’) when result is an array. Solution: use ‘document.getElementById('id').value=result’ instead. 2. Hidden url 阅读全文
posted @ 2013-08-13 14:56 Tbeck 阅读(227) 评论(0) 推荐(0) 编辑
摘要: //********************************************************// 模块:数字转换为中文大写// 编写:黄建雄 2003-09-02//********************************************************#include "stdafx.h"static char *unit1[] = { "拾", "佰", "仟" };static char *unit2[] = { "万", "亿&q 阅读全文
posted @ 2011-10-14 10:52 Tbeck 阅读(242) 评论(0) 推荐(0) 编辑
摘要: ///////////////////////////////////////////////////////////////////////////////// Convert a TCHAR string to WCHAR string. // Caller must release the memory of pwszOutput by calling delete[] pwszOutput.///////////////////////////////////////////////////////////////////////////////HRESULT ConvertTChar 阅读全文
posted @ 2011-10-14 10:49 Tbeck 阅读(359) 评论(0) 推荐(0) 编辑
摘要: [转]判断单链表是否存在环,判断两个链表是否相交问题详解 有一个单链表,其中可能有一个环,也就是某个节点的next指向的是链表中在它之前的节点,这样在链表的尾部形成一环。问题:1、如何判断一个链表是不是这类链表?2、如果链表为存在环,如何找到环的入口点?解答:一、判断链表是否存在环,办法为:设置两个指针(fast, slow),初始值都指向头,slow每次前进一步,fast每次前进二步,如果链表存在环,则fast必定先进入环,而slow后进入环,两个指针必定相遇。(当然,fast先行头到尾部为NULL,则为无环链表)程序如下:Code highlighting produced by Acti 阅读全文
posted @ 2011-10-08 15:01 Tbeck 阅读(160) 评论(0) 推荐(0) 编辑