摘要:
1、打开谷歌浏览器登录git https://github.com/yangweishuo2、在git上创建版本库 demo3、在我的电脑E盘下创建打开xiangmu文件夹 4、右键选择 git Bash Here 执行上传命令操作5、$ git init 初始化文件6、$ git status 查 阅读全文
摘要:
var myDate = new Date(); console.log(myDate.getFullYear()); //获取完整的年份(4位,1970-????) console.log(myDate.getMonth()); //获取当前月份(0-11,0代表1月) console.log(m 阅读全文
摘要:
screenX:鼠标位置相对于用户屏幕水平偏移量,而screenY也就是垂直方向的,此时的参照点也就是原点是屏幕的左上角。 clientX:跟screenX相比就是将参照点改成了浏览器内容区域的左上角,该参照点会随之滚动条的移动而移动。 pageX:参照点也是浏览器内容区域的左上角,但它不会随着滚动 阅读全文
摘要:
首先修改httpd.conf配置文件。 添加8080端口 打开虚拟配置文件 编辑虚拟配置文件conf/extra/httpd-vhosts.conf 添加 /*如果虚拟配置文件中没有80的配置会出现80端口404的情况 解决方法 添加一个同样的80端口配置,同时删除原有的80端口配置。 阅读全文
摘要:
#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; ... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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(... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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[... 阅读全文
摘要:
#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]=... 阅读全文