摘要: // 对形如http://www.qq.com:80/index.html?key1=1&key2=2&key3=3#hcy的url字符串进行解析,并返回类似location对象的实体对象var parseUrl = function() { var pos1, // 保存":"字符的位置(注意是前半部分字符串里的":") pos2, // 保存"/"字符的位置 pos3, // 保存"?"字符的位置 pos4, // 保存"#"字符的位置 pos5, // 保存":& 阅读全文
posted @ 2013-05-25 20:08 aping.yellow 阅读(354) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <time.h>#define M 100000int main() { unsigned a[M]; //以无符号整形存,每100000为一进位,即数组每个元素最大9999 unsigned long k; //k用来保存每次乘积 int i,j,m,t,n=1,r; //n是数组长度,r是进位 time_t start, end; a[0]=1; while (1) { printf("\n输入m t(用万进制方法求m的t次方):");fflush(stdout); ... 阅读全文
posted @ 2013-05-25 19:25 aping.yellow 阅读(244) 评论(0) 推荐(0)