摘要: 能够使颜色动画的方式渐变主要参考的http://www.bitstorm.org/jquery/color-animation/去Github上找也行 不过Github上的例子运行不通...https://github.com/jquery/jquery-color<!DOCTYPE html><html> <head> <style> div { background-color: #bada55; width: 100px; border: 1px solid... 阅读全文
posted @ 2013-04-16 12:43 cart55free99 阅读(274) 评论(0) 推荐(0) 编辑
摘要: FROM: http://blog.csdn.net/niushuai666/article/details/6672808<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><?php/******************************************************************************参数说明:$max_file_size : 上传文件大小限制, 单位BYTE$destination_folde 阅读全文
posted @ 2013-04-13 14:00 cart55free99 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 先是百度地图(百度地图有问题 获取的位置有偏差)但是Baidu有很多Demo官方文档:http://developer.baidu.com/map/jsdevelop-1.htm#.E9.9D.A2.E5.90.91.E7.9A.84.E8.AF.BB.E8.80.85DEMO在这里:http://developer.baidu.com/map/jsdemo.htm不同的功能实际上就是JS语句调用多少...很方便噜现在地图做的可好了!还有 开发者 和 小白 的选择。。。选Web开发就好噜...下面就来一个 滚轮缩放+点击显示经纬度(第一行表示HTML5)<!DOCTYPE html> 阅读全文
posted @ 2013-04-08 18:41 cart55free99 阅读(247) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>int main(){ int s=0; int *p=&s; printf("%d\n",p); *p++;//增加的是指针// ++ 和取值的* 是同一级别 单目运算从右边向左边结合 printf("%d\n",s); printf("%d\n",p);//比前一个指针多了4字节 也就是int的长度 p=&s; (*p)++;//指针指向的空间内容自加1 printf("%d\n",s); s++; 阅读全文
posted @ 2013-03-28 20:43 cart55free99 阅读(306) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>void toChars(char str[],int num);int isHui(char str[]);int isSquare(int num);void main(){ int num=100; while((num++)<1000) { char str[20]; int i=0; //初始化 for(; i<20; i++) { str[i]=0; ... 阅读全文
posted @ 2013-03-28 19:50 cart55free99 阅读(220) 评论(0) 推荐(0) 编辑
摘要: // SS.cpp : Defines the entry point for the console application.//#include "stdio.h"#include "string.h"#define N 10int findStr(char str[],char pat[]);void allSubPat(char str[],char pat[]);void clrFind(char str[]);int main(){ char s1[10]="12abc78"; char s2[10]="7abc 阅读全文
posted @ 2013-03-27 22:48 cart55free99 阅读(164) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#define N 7int main(){ //求阶乘和 int sum=0; int item=1;//每一项的值 int i=1; for(;i<N;i++){ int j=1; item=1; for( ;j<=i;j++ ){ item=item*j;// 想想阶乘的由来:第三项是 1*2*3 } printf("%d ",item); sum+=item; } //求Fibonacci的前... 阅读全文
posted @ 2013-03-27 14:05 cart55free99 阅读(276) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <string.h>#include <stdlib.h> //stdlib.h 包括了malloc.h#define N 17typedef struct Node{ int data; struct Node * next;}Node;Node * add21Node(Node * first);Node * delNode(Node * start);int main(){ Node *first=(Node *)malloc(sizeof(Node)); first->data=1; fir 阅读全文
posted @ 2013-03-27 08:10 cart55free99 阅读(187) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#define N 8void toBin(int n,int dec);void toBin2(int n,int dec);int main(){ //十进制转2进制 //toBin(6,2);//ok //十进制转8进制 //toBin(26,8);//ok toBin2(31,16);}/**看一个例子6转2进制6%2=06/2=3 ---> 非0 可以继续算 ----> 3%2=13/2=1 ---> 非0 可以继续算 ----> 1%2=11/2=0 ---&g 阅读全文
posted @ 2013-03-26 21:03 cart55free99 阅读(422) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include<math.h>int selectQi(int n);void selectChange(char str[]);int main(){ int i=123456789; printf("%d",selectQi(i)); char str[]="kuahgrhbf"; selectChange(str); printf(str); }//取出奇数位置的数字 组成一个新的int数值并返回int selectQi(int n){ int nums[10]={0};//第一个元素初 阅读全文
posted @ 2013-03-26 17:07 cart55free99 阅读(296) 评论(0) 推荐(0) 编辑