会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
松手丶明晃晃
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2018年10月10日
git
摘要: 1、打开谷歌浏览器登录git https://github.com/yangweishuo2、在git上创建版本库 demo3、在我的电脑E盘下创建打开xiangmu文件夹 4、右键选择 git Bash Here 执行上传命令操作5、$ git init 初始化文件6、$ git status 查
阅读全文
posted @ 2018-10-10 12:43 松手丶明晃晃
阅读(118)
评论(0)
推荐(0)
2018年6月13日
JavaScript获取时间
摘要: var myDate = new Date(); console.log(myDate.getFullYear()); //获取完整的年份(4位,1970-????) console.log(myDate.getMonth()); //获取当前月份(0-11,0代表1月) console.log(m
阅读全文
posted @ 2018-06-13 18:17 松手丶明晃晃
阅读(164)
评论(0)
推荐(0)
2018年6月6日
screenX clientX pageX的区别
摘要: screenX:鼠标位置相对于用户屏幕水平偏移量,而screenY也就是垂直方向的,此时的参照点也就是原点是屏幕的左上角。 clientX:跟screenX相比就是将参照点改成了浏览器内容区域的左上角,该参照点会随之滚动条的移动而移动。 pageX:参照点也是浏览器内容区域的左上角,但它不会随着滚动
阅读全文
posted @ 2018-06-06 19:10 松手丶明晃晃
阅读(164)
评论(0)
推荐(0)
2018年5月18日
Apache 多端口配置方法
摘要: 首先修改httpd.conf配置文件。 添加8080端口 打开虚拟配置文件 编辑虚拟配置文件conf/extra/httpd-vhosts.conf 添加 /*如果虚拟配置文件中没有80的配置会出现80端口404的情况 解决方法 添加一个同样的80端口配置,同时删除原有的80端口配置。
阅读全文
posted @ 2018-05-18 17:44 松手丶明晃晃
阅读(734)
评论(0)
推荐(0)
2018年4月28日
插入排序
摘要: #include #include #include #include #include using namespace std; int a[1000],n; void CRpx(){ for(int i=1;i>n){ for(int i=1;i>a[i]; } CRpx(); for(int i=1;i<=n;i++){ cout<<a[i]<<endl; ...
阅读全文
posted @ 2018-04-28 20:06 松手丶明晃晃
阅读(97)
评论(0)
推荐(0)
堆排序
摘要: #include #include #include using namespace std; int a[100]; int n,m; void sdown(int i){ if(i==n) return ; int flag=0; while(i*2n){ if(a[i*2]=1;i--){ sdown(i); } } void ssort(){ while...
阅读全文
posted @ 2018-04-28 17:01 松手丶明晃晃
阅读(103)
评论(0)
推荐(0)
2018年4月25日
冒泡排序
摘要: #include #include #include #include using namespace std; void bubsort(int *a){ for(int i=1;ia[j+1]) swap(a[j+1],a[j]); } } return ; } int main(){ int a[6]={0,9,5,1,3,7}; bubsort(a); for(...
阅读全文
posted @ 2018-04-25 14:56 松手丶明晃晃
阅读(102)
评论(0)
推荐(0)
选择排序
摘要: #include #include #include #include using namespace std; void Choicesort(int *a){ for(int i=1;ia[j]) swap(a[i],a[j]); } } return ; } int main(){ int a[6]={0,4,5,1,3,7}; Choicesort(a); fo...
阅读全文
posted @ 2018-04-25 14:54 松手丶明晃晃
阅读(104)
评论(0)
推荐(0)
2018年4月24日
sedgewick增量序列的希尔排序
摘要: #include using namespace std; int s[3]={1,5,19}; void shellsort(int *a,int n){ for(int i=2;i>=0;i--){ if(s[i]>n) continue; for(int j=s[i];j<=n;j+=s[i]){ for(int k=1;k<=j;k+=s[i]){ if(a[...
阅读全文
posted @ 2018-04-24 15:02 松手丶明晃晃
阅读(1199)
评论(0)
推荐(0)
2018年4月23日
归并排序模板
摘要: #include using namespace std; void merge(int *arr,int l,int m,int r){ int ls=m-l,lr=r-m+1; int la[ls],ra[lr]; for(int i=l;i<=m-1;i++) la[i-l+1]=arr[i]; for(int j=m;j<=r;j++) ra[j-m+1]=...
阅读全文
posted @ 2018-04-23 16:44 松手丶明晃晃
阅读(85)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告