03 2012 档案
摘要:<scripttype="text/javascript">functioncreateShow(win){varshadowDiv1=window.document.createElement("div");shadowDiv1.id="shadowDiv1";shadowDiv1.style.zIndex="9998";shadowDiv1.style.position="absolute";shadowDiv1.style.top="0px";shadowD
阅读全文
摘要:View Code #include"stdafx.h"#include<fstream>#include<iostream>usingnamespacestd;int_tmain(intargc,_TCHAR*argv[]){//文件写入操作/*ints=0;ofstreamfileout("a.doc");if(!fileout){cout<<"文件打开失败"<<endl;}while(s<=10){fileout<<s<<"+1="
阅读全文
摘要:View Code #include"stdafx.h"#include<iostream>#include<ctime>usingnamespacestd;voidMakecode(char*pstr,int*pkey);voidCutecode(char*pstr,int*pkey);int_tmain(intargc,_TCHAR*argv[]){intkey[]={1,2,3,4,5};//加密字符chars[]="www.xiaozhuanggushi.com";char*p=s;cout<<"加密
阅读全文
摘要:View Code #include"stdafx.h"#include<iostream>#include<ctime>usingnamespacestd;int_tmain(intargc,_TCHAR*argv[]){inta[20];srand((unsigned)time(0));//新版本的是64位,srand是32为for(inti=0;i<20;i++){a[i]=rand()%100+1;}//选择法排序(循环n-1次)思路:每一次找出适合的元素放在正确的位置上/*for(inti=0;i<19;i++){for(int
阅读全文
摘要:前些文章用写过,省市县三级联动,但是感觉选择的时候不够直观,现在改进了下,效果如下图 View Code <%@PageLanguage="C#"AutoEventWireup="true"CodeFile="City.aspx.cs"Inherits="System_Select_City"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DT
阅读全文
摘要:#include"stdafx.h"#include<iostream>usingnamespacestd;voidarith(inta){if(a%10!=0){arith(a/10);cout<<a%10;}}int_tmain(intargc,_TCHAR*argv[]){inta=486862;arith(a);intm;cin>>m;}
阅读全文
摘要:最近在学习c++,从最基础的联系这也是很常见的问题View Code #include"stdafx.h"#include<iostream>usingnamespacestd;int_tmain(intargc,_TCHAR*argv[]){intj,i;intnums=0;//质数计数ints=0;//质数之和for(i=2;i<=100;i++){boolisSushuo=true;for(j=2;j<i;j++){if(i%j==0)break;}if(j==i){//说明比i小的都循环完了nums++;s+=i;if(nums%7==0){
阅读全文
摘要:一、准备文件文档资料根据 客户提供文档《CHINAPAY商户控制台使用手册 》登陆 http://console.chinapay.com/newgms (需要客户提供 商户号,操作员号及密码)下载解压文件后得到如下文件还需要2个key(MerPrK.key和PgPubk.key)文件,分别是商户私匙和公匙,需要客户签订合同后银联才提供。二、安装部署1. 将ChinaPay.dll、CPNPC.dll及netpay.dll复制bin下2. 注册Chinapay.dll和CPNPC.dll(指令regsvr32 )例如 regsvr32 F:\工作\MySolution\Web\bin\Chin
阅读全文