摘要: google proto(php版)http://files.cnblogs.com/solq/testproto(php%E7%89%88).rar 阅读全文
posted @ 2012-04-16 11:56 solq 阅读(184) 评论(0) 推荐(0) 编辑
摘要: <a href="#" onmouseOut="alert('onmouseOut')" onclick="alert('click')" id="test" >test</a><script> var comment = document.getElementById('test'); if (document.all) // For IE { comment.click(); }else if (document.createE 阅读全文
posted @ 2012-04-16 11:41 solq 阅读(1040) 评论(0) 推荐(0) 编辑
摘要: 什么都不用说,直接 demohttp://files.cnblogs.com/solq/touch2.rar 阅读全文
posted @ 2012-04-16 11:39 solq 阅读(633) 评论(0) 推荐(0) 编辑
摘要: c++ WebBrowser 控件http://files.cnblogs.com/solq/TestWebBrowser.rar 阅读全文
posted @ 2012-04-11 17:22 solq 阅读(1971) 评论(0) 推荐(0) 编辑
摘要: 程序员装B指南 一、准备工作“工欲善其事必先利其器。”1.电脑不一定要配置高,但是双屏是必须的,越大越好,能一个横屏一个竖屏更好。一个用来查资料,一个用来写代码。总之要显得信息量很大,效率很高。2.椅子不一定要舒服,但是一定要可以半躺着。3.大量的便签,各种的颜色的,用来记录每天要完成的事务,多多益善。沿着电脑屏幕的边框,尽量贴满,显出有很多事情的样子。4.工具书,orelly的,机械工业,电子工业什么的都可以,能英文就英文,不行影印版的也可以,反正越厚越好,而且千万不要放在书架上,一定要堆在桌上,半打开状。二、从进门开始1.着装!着装!不管你是去实验室,或者去公司的大楼... 阅读全文
posted @ 2011-08-30 09:06 solq 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 在参加完CSDN组织的TUP对话大师系列演讲活动后,27岁的jQuery之父John Resig接受了本刊总编刘江的深度访谈,这篇对话文章,让我们一窥这位著名程序员的人生及技术感悟。编程初体验《程序员》:你是如何开始编程的?John Resig:第一次编程大概是在初中,14、15岁,当时有个朋友带来张软盘,里面有QBASIC。在DOS系统下他向我展示了他自己的程序,我觉得非常有意思。从那时起我就开始想编程了,先后借了很多相关的书。最初是学习编写HTML,之后又转向CGI。《程序员》:你编写的第一个有意思的程序是什么,还有印象吗?John Resig认为,JavaScript和HTML一样会长久 阅读全文
posted @ 2011-08-16 20:16 solq 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 这里归纳了C API可使用的函数,并在下一节详细介绍了它们。函数描述mysql_affected_rows()返 回上次UPDATE、DELETE或INSERT查询更改/删除/插入的行数。mysql_autocommit()切换 autocommit模式,ON/OFFmysql_change_user()更改打开连接上的用户和数据库。mysql_charset_name()返 回用于连接的默认字符集的名称。mysql_close()关闭服务器连接。mysql_commit()提 交事务。mysql_connect()连接到MySQL服务器。该函数已不再被重视,使用 mysql_real_con 阅读全文
posted @ 2011-08-16 00:22 solq 阅读(1919) 评论(0) 推荐(1) 编辑
摘要: 首先安装mysql,点完全安装,才能在在安装目录include找到相应的头文件,注意,是完全安装。我装的是5.1版本,需要的头文件有把需要的文件添加进去,然后再把libmysql.lib放到项目目录里,文件在mysql安装目录lib 下面.#include "stdafx.h"#include <iostream>#include <winsock2.h>#include "mysql.h"//#pragma comment(lib, "ws2_32.lib")#pragma comment(lib," 阅读全文
posted @ 2011-08-16 00:20 solq 阅读(9626) 评论(3) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>struct test{ char* name; int age; int qq;} date[]={ { "solq",18,33333 }, { "wei cheng",20,444444 }, { "hong",55,5555555 }};int sreach(struct test* ar,char* name);int main(int argc, char* argv[]){ 阅读全文
posted @ 2011-08-15 01:42 solq 阅读(386) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>void qsort(int s[], int l, int r){ int i, j, x; if (l < r) { i = l; j = r; x = s[i]; while (i < j) { while(i < j && s[j] > x) j--; /* 从右向左找第一个小于x的数 */ if(i < j) s[i++] = s[j]; while(i < j && s[i] < x) i++; /* 从左向右找第一个大于x的数 */ if(i < j) 阅读全文
posted @ 2011-08-15 00:29 solq 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 用PHP来书写吧 $ar=array(1,2,3,4,5,......);$n=count($ar);for($i=0;$i<$n;$i++) for($j=0;$j<$n-1;$j++) //每次循环取 最大值或者最 小值 { $next=$j+1; if($ar[$j]>$ar[$next]){ //当前元素值 大于 下一个元素值,则替换 $t=$ar[$j]; $ar[$j]=$ar[$next]; $ar[$next]=$t; } }print_r($ar);//忧化算法for($i=0;$i<$n;$i++) for($j=$n-1;$j>=$i;$j- 阅读全文
posted @ 2011-08-14 21:22 solq 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdafx.h" 2 #include <stdlib.h> 3 struct tree{ 4 char info; 5 struct tree* left; 6 struct tree* right; 7 }; 8 struct tree* root; 9 struct tree* construct(struct tree* root,struct tree* insert,char info);10 void print(struct tree* root,int n);11 12 int main(int argc, char* 阅读全文
posted @ 2011-08-14 21:00 solq 阅读(295) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include <stdlib.h>int a,b,MAX;int* p;int *top,*foot;int push(int n) //压栈操作{ if(p>foot) { printf("overflow max"); return -1; } *p=n; p++; return 1;}int pop() //出栈操作{ p--; if(p<top) { printf("overflow min\n"); return -1; } return *p;}int ma 阅读全文
posted @ 2011-08-14 19:14 solq 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #include <stdlib.h>#include <stdio.h>struct test{ int value; struct test *next;};struct test* create(){ //创建create 函数,返回 struct test* 结构指针 返回的是头部指针 test *head,*tail,*p; head=tail=NULL; //head 是保存头部指针,p是当前指针,tail是临时替换的指针,是用来过度的 int i; for(int j=0;j<4;j++) { scanf("%d",&i) 阅读全文
posted @ 2011-08-14 18:22 solq 阅读(336) 评论(0) 推荐(0) 编辑
摘要: #include <stdlib.h>#include <stdio.h>struct test{ int value; struct test *next;};struct test* create(){ //创建create 函数,返回 struct test* 结构指针 返回的是头部指针 test *head,*tail,*p; head=tail=NULL; //head 是保存头部指针,p是当前指针,tail是临时替换的指针,是用来过度的 int i; while(scanf("%d",&i)==1) { //(数据类型)mallo 阅读全文
posted @ 2011-08-14 16:51 solq 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 测试<a href="http://www.microsofttranslator.com/bv.aspx?a=http%3a%2f%2fsolq.cnblogs.com%2f">翻译此页</a> <br />提供商 <a href="http://www.microsofttranslator.com">Microsoft? Translator</a> 阅读全文
posted @ 2011-07-16 21:38 solq 阅读(192) 评论(0) 推荐(0) 编辑