摘要: main.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include "list.h"typedef struct girl { char name[30]; int bra; int beautiful;} girl_t ;void input_girl( girl_t * girl ){ printf("Input girl name: "); gets( girl->name ); printf("Input gril bra 阅读全文
posted @ 2011-06-09 21:32 wangkangluo1 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 双链表 c teacher-double-nohead-noloopmain.c#include <stdio.h>#include <stdlib.h>#include <string.h>#include "list.h"typedef struct girl { char name[30]; int bra; int beautiful;} girl_t ;void input_girl( girl_t * girl ){ printf("Input girl name: "); gets( girl->n 阅读全文
posted @ 2011-06-09 21:29 wangkangluo1 阅读(372) 评论(0) 推荐(0) 编辑
摘要: asp 静态生成:杂谈: 用ASP生成静态Html文件http://www.sina.com.cn 2007年04月05日 11:04 pconline太平洋电脑网作者:aspid 网页生成静态Html文件有许多好处,比如生成html网页有利于被搜索引擎收录,不仅被收录的快还收录的全。前台脱离了数据访问,减轻对数据库访问的压力,加快网页打开速度。 1.下面这个例子直接利用FSO把html代码写入到文件中然后生成.html格式的文件 <% filename="test.htm" if request("body")<>"&quo 阅读全文
posted @ 2011-06-09 21:13 wangkangluo1 阅读(394) 评论(0) 推荐(0) 编辑
摘要: asp sql数据库不在乎大小写删除:<%Dim numbernumber=1connstr="driver={SQL Server};server=(local);uid=sa;pwd=1234;database=b2bb2b" Set conn = Server.CreateObject("ADODB.Connection") conn.open connstrconn.execute "delete from buzaiyu_productshow where id>20131" conn.close Set rs= 阅读全文
posted @ 2011-06-09 21:11 wangkangluo1 阅读(433) 评论(0) 推荐(0) 编辑
摘要: asp 组建上传:AspUpload.dll注册组件 regsvr32 e:/aspupload.dll<HTML> <BODY> <% Set Upload = Server.CreateObject("Persits.Upload.1") Count = Upload.Save("\") %> <% = Count %> files uploaded. </BODY> </HTML><HTML> <BODY BGCOLOR="#FFFFFF" 阅读全文
posted @ 2011-06-09 21:07 wangkangluo1 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 1.php<?php$xmlStr =file_get_contents("1.xml");$dom = new DOMDocument('1.0');$dom ->loadXML($xmlStr);$xml = simplexml_import_dom($dom);$xpath = new DOMXPath($dom);$emps=$xpath->query("/root/members/member/name");echo $emps->item(0)->nodeValue;$emps->item( 阅读全文
posted @ 2011-06-09 21:04 wangkangluo1 阅读(240) 评论(0) 推荐(0) 编辑
摘要: javascript 文件操作目录:javascript读取本地文件javascript新建文件字符串spilt函数程序javascript读取本地文件<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title> New Document </title> <meta name="Generato 阅读全文
posted @ 2011-06-09 21:02 wangkangluo1 阅读(739) 评论(0) 推荐(0) 编辑
摘要: z-index html:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; 阅读全文
posted @ 2011-06-09 20:59 wangkangluo1 阅读(530) 评论(0) 推荐(0) 编辑
摘要: css + div 定位<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 0 Transitional//EN""http://www.worg/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.worg/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charse 阅读全文
posted @ 2011-06-09 20:55 wangkangluo1 阅读(407) 评论(0) 推荐(0) 编辑
摘要: sql :/*MySQL Data TransferSource Host: localhostSource Database: demoTarget Host: localhostTarget Database: demoDate: 2010-9-28 18:43:29*/SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structure for think_access-- ----------------------------CREATE TABLE `think_access` ( `role_id` 阅读全文
posted @ 2011-06-09 20:47 wangkangluo1 阅读(544) 评论(0) 推荐(0) 编辑
摘要: php rewrite启用rewrite# LoadModule rewrite_module modules/mod_rewrite.so去除前面的 #LoadModule rewrite_module modules/mod_rewrite.so启用.htaccessAllowOverride None 修改为: AllowOverride All<Directory />Options FollowSymLinksAllowOverride None</Directory>改为<Directory />Options FollowSymLinksAll 阅读全文
posted @ 2011-06-09 20:44 wangkangluo1 阅读(4027) 评论(0) 推荐(0) 编辑
摘要: tar 命令使用 tar命令使用压缩:tar cvfz 目标文档 源文档1 [源文档2...]例如:tar cvfz m.tar.gz hello.cpp hello.h //m.tar.gz是目标文档,hello.cpp和hello.h是源文档解压:tar xvfz 目标文档例如:tar xvfz m.tar.gz //在当前目录下将压缩包文档m.tar.gz解压缩上面的简单用法基本够用了,以下是从别的地方转来的其他一些用法,但我从来没用过,暂时存放一下。1.文档或目录打包:tar -cvf /u0/temp2.tar /usr/lib将/usr/lib目录下的文档和子目录打包成一个文档库为 阅读全文
posted @ 2011-06-09 20:18 wangkangluo1 阅读(1582) 评论(0) 推荐(0) 编辑
摘要: 原文链接vim ide 配置:写在前面Linux下编程一直被诟病的一点是: 没有一个好用的IDE, 但是听说Linux牛人, 黑客之类的也都不用IDE. 但是对我等从Windows平台转移过来的Coder来说, 一个好用的IDE是何等的重要啊, 估计很多人就是卡在这个门槛上了, "工欲善其事, 必先利其器"嘛, 我想如果有一个很好用的IDE, 那些Linux牛人也会欢迎的. 这都是劳动人民的美好愿望罢了, 我今天教大家把gvim改装成一个简易IDE, 说它"简易"是界面上看起来"简易", 但功能绝对不比一个好的IDE差, 该有的功能都 阅读全文
posted @ 2011-06-09 19:03 wangkangluo1 阅读(2737) 评论(2) 推荐(1) 编辑
摘要: .vimrc 配置""""""""""""""""""""""""""""""""""""""""""""""""&qu 阅读全文
posted @ 2011-06-09 19:01 wangkangluo1 阅读(806) 评论(0) 推荐(0) 编辑