当前位置:首页 » 操作系统 » aj源码

aj源码

发布时间: 2022-09-08 18:02:20

❶ 谁有免费的电影网站源代码

《源代码》网络网盘高清资源免费在线观看

链接:

提取码: btzc

在阿富汗执行任务的美国空军飞行员科特史蒂文斯上尉(杰克·吉伦哈尔JakeGyllenhaal饰)突然惊醒,发现自己在一辆高速行驶的列车上,而他的身边坐着一个素不相识的女子克里斯蒂安(米歇尔·莫娜汉MichelleMonaghan饰)正在与自己讲话。科尔不知自己为什么会在这辆车上,而且他发现自己居然是以另一个人的身份存在,正当他迷惑不解的时候,列车上忽然发生爆炸……

❷ 网络游戏怎么改源码

放弃吧,单单从客户端是没法看到其代码的,网游的代码都市封装好的,对外公布的都是封装好的客户端,根本无法解析,除非内部源码泄露,于是就出现了私服……

❸ <input type="hidden" name="uid" value="2362453" />

可以实现,用Ajxa 实现点击后数据自动POST.

只能这样了,因为你目前的数据是POST方式的,而你想通过提交地址来实现一样的效果,那么你所谓的通关浏览器提交地址是GET格式的。 只要这个程序限制了不接受GET,那么你就只能通过Ajxa 实现点击后数据自动POST.

不知道你是不是这个站的管理员,不是的话Ajxa 程序你还得自己找空间模拟。

❹ 请问国内有没有用nodejs开发的微商城源码,比较完备的

可以去H5e看看,HTML5课程融合了HTML5开发基础课程、CSS3基础课程和移动前端交互javaScript+JQuery+Ajex,还有微信开发课程

❺ 求一个用c++编写的时钟程序的源代码

/*******************************/
/* 时钟源程序 */
/* 仿WINDOWS界面设计 */
/* Turboc3下调试通过 */
/* 包含两个源文件: */
/* clock.cpp win.cpp */
/*******************************/
#include"stdio.h"
#include"stdlib.h"
#include"conio.h"
#include"time.h"
#include"string.h"
#include"math.h"
#include"dos.h"
#include"bios.h"
#include"win.cpp" //调用窗体显示
#define TRUE 1
#define FALSE 0
#define PI 3.1415926
void cursor(int x,int y) //光标
{
int count=0;
while(count<=10){
delay(20);
count++;
if(count<=5)
setcolor(9);
else
setcolor(7);
line(x,y,x,y+12);
line(x+1,y,x+1,y+12);
}
}
int keyscancode() //检测按键
{
int key;
while(bioskey(1)==0) return 0;
key=bioskey(0);
key=key&0xff ? key&0xff:key;
return(key);
}
void message(int x,int y,int n) //状态栏信息
{
char *msg[6]={"Press ESC to quit clock.",
"Press T or t to set time.",
"Press D or d to set date.",
"Press ESC to cancel set.",
"Press Enter to confirm set.",
"Press BackSpace to delete a number."};
setfillstyle(SOLID_FILL,LIGHTGRAY);
bar(x,y,x+50*8,y+12);
setcolor(10);
outtextxy(x,y+2,msg[n]);
}

class CLOCK:public WIN //定义CLOCK为WIN的继承类
{
int hour,min,sec;
int year,mon,day;
int x,y,radio;
float ak,aj,ai;
int xs,ys,xm,ym,xh,yh;
public:
CLOCK(char *,int,int,int,int);
int isleapyear(int);
int isweek(int,int);
void showclock();
void runclock();
void setclock();
void inittodaydate();
void initnowtime();
void showdate();
void hidedate();
void pip();
void showtime();
void setdates();
};
//构造函数
CLOCK::CLOCK(char *n,int a,int b,int c,int d):WIN(n,a,b,c,d){
x=a+130;
y=b+155;
radio=120;
}
int CLOCK::isleapyear(int year) //判断是否闰年
{
if(year%100!=0&&year%4==0)
return TRUE;
if(year%400==0)
return TRUE;
return FALSE;
}
int CLOCK::isweek(int year,int mon) //计算year年mon月1号的星期数
{
int days=0,week=0;
int month[12]={31,28,31,30,31,30,31,31,30,31,30,31};
if(isleapyear(year)) month[1]=29;
else month[1]=28;
for(int i=1;i<year;i++)
{
days=365;
if(isleapyear(i)) days=366;
week=(days+week)%7;
}
for(i=0;i<mon-1;i++)
week=(month[i]+week)%7;
return week;
}
void CLOCK::setdates() //设置曰期
{
struct date set;
int key=0,count=0,index=0;
int textx=x+140,texty=y+42,tcnt=0;
char text[2];
int dateset[10];
setfillstyle(SOLID_FILL,LIGHTGRAY);
bar(textx,texty,textx+150,texty+12);
do{
message(80+6,380-12,index+3);
count++;
index=count/10;
if(count==29) count=0;
runclock();
key=keyscancode();
cursor(textx,texty);
if((key>='0'&&key<='9')&&tcnt!=10)
{ //限制按键,防止误操作
if(tcnt<4||(tcnt==5&&key<='1')||((tcnt==6&&dateset[tcnt-1]==1&&key<='2')||(tcnt==6&&dateset[tcnt-1]==0))||(tcnt==8&&key<='3')||(tcnt==9))
{
sprintf(text,"%c",key);
text[1]='\0';
setcolor(LIGHTBLUE);
outtextxy(textx,texty+2,text);
dateset[tcnt]=key-'0';
textx+=10;
tcnt++;
if((tcnt==4||tcnt==7)&tcnt!=10){
outtextxy(textx,texty+2,"-");
textx+=10;
tcnt++;
}
}
}
if(key==8&&tcnt>0){
if(tcnt==5||tcnt==8)
{
tcnt-=2;
textx-=20;
}
else{
tcnt--;
textx-=10; }
setfillstyle(SOLID_FILL,LIGHTGRAY);
bar(textx,texty,textx+8,texty+12);
}
}while(key!=13&&key!=27);
if(key==27) return; //如果是ESC键,则退出设置
if(key==13) //如果ENTER键,则设置曰期
{
set.da_year=dateset[0]*1000+dateset[1]*100+dateset[2]*10+dateset[3];
set.da_mon=dateset[5]*10+dateset[6];
set.da_day=dateset[8]*10+dateset[9];
setdate(&set);
}
}
void CLOCK::setclock() //设置时间
{
struct time set;
int key=0,count=0,index=0;
int textx=x+140,texty=y+6,tcnt=0;
char text[2];
int timeset[8];
setfillstyle(SOLID_FILL,LIGHTGRAY);
bar(textx,texty,textx+150,texty+12);
do{
message(80+6,380-12,index+3);
count++;
index=count/10;
if(count==29) count=0;
key=keyscancode();
cursor(textx,texty);
if((key>='0'&&key<='9')&&tcnt!=8)
{ //限制按键,防止误操作
if((tcnt==0&&key<='2')||((tcnt==1&&key<='3'&×et[tcnt-1]==2)||(tcnt==1&×et[tcnt-1]!=2))||(tcnt==3&&key<='5')||(tcnt==6&&key<='5')||tcnt==4||tcnt==7)
{
sprintf(text,"%c",key);
text[1]='\0';
setcolor(9);
outtextxy(textx,texty+2,text);
timeset[tcnt]=key-'0';
textx+=10;
tcnt++;
if((tcnt==2||tcnt==5)&&tcnt!=8) {
outtextxy(textx,texty+2,":");
textx+=10;
tcnt++;
}
}
}
if(key==8&&tcnt>0){
if(tcnt==3||tcnt==6){
tcnt-=2;
textx-=20;
}
else{
tcnt--;
textx-=10;
}
setfillstyle(SOLID_FILL,LIGHTGRAY);
bar(textx,texty,textx+8,texty+12);
}
}while(key!=13&&key!=27);
if(key==27) return;
if(key==13)
{
set.ti_hour=timeset[0]*10+timeset[1];
set.ti_min=timeset[3]*10+timeset[4];
set.ti_sec=timeset[6]*10+timeset[7];
settime(&set);
}
}
void CLOCK::showdate() //在窗体上显示曰期
{
char nowdate[15];
char days[4];
char *week[7]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"};
int month[12]={31,28,31,30,31,30,31,31,30,31,30,31};
int dayx=x+135,dayy=y-88,todayweek=0,control;
struct date d;
getdate(&d);
setcolor(12);
for(int i=0;i<7;i++)
outtextxy(x+i*8*4+135,y-100,week[i]);
todayweek=isweek(d.da_year,d.da_mon); // 得到本月1号的星期数
if(todayweek+1!=7)
for(i=1;i<=todayweek+1;i++) dayx=dayx+4*8;
control=todayweek+1;
if(isleapyear(d.da_year)) month[1]=29;
else month[1]=28;
setcolor(11);
for(i=1;i<=month[d.da_mon-1];i++)
{
control++;
sprintf(days,"%3d",i);
if(i==d.da_day) setcolor(LIGHTMAGENTA);
outtextxy(dayx,dayy,days);
setcolor(11);
dayx=dayx+4*8;
if(control%7==0) { dayx=x+135; dayy=dayy+12; }
}
todayweek=(todayweek+day)%7; //得到今天的星期数
sprintf(nowdate,"%04d-%02d-%02d %s",d.da_year,d.da_mon,d.da_day,week[todayweek]);
nowdate[14]='\0';
setcolor(LIGHTBLUE);
outtextxy(x+185,y-120,nowdate);
if(d.da_year!=year||d.da_mon!=mon||d.da_day!=day) //如果曰期改变了,则先隐藏曰期,再显示
hidedate();
}
void CLOCK::hidedate() //隐藏曰期
{
inittodaydate();
setfillstyle(SOLID_FILL,LIGHTGRAY); //抹去曰期,如果曰期改变了
bar(x+135,y-90,x+135+6*8*4+3*8,y-90+12*6);
bar(x+165,y-122,x+170+16*8+10,y-112);
}
void CLOCK::showtime() //显示时间
{
char nowtime[9];
sprintf(nowtime,"%02d:%02d:%02d",hour,min,sec);
nowtime[8]='\0';
setcolor(14);
outtextxy(x-30,y+82,nowtime);
ak=(90+30*(12-hour)-min*5/60.*6)*PI/180; //时针角度
aj=(90+6*(60-min))*PI/180; //分针角度
ai=(90+6*(60-sec))*PI/180; //秒针角度
xs=x+cos(ai)*(radio-10);
ys=y-sin(ai)*(radio-10);
xm=x+cos(aj)*(radio-25);
ym=y-sin(aj)*(radio-25);
xh=x+cos(ak)*(radio-45);
yh=y-sin(ak)*(radio-45);
setcolor(RED); //画时针
setlinestyle(0,0,THICK_WIDTH);
line(x-cos(ak)*(radio-118),y+sin(ak)*(radio-118),xh,yh);
setlinestyle(0,0,NORM_WIDTH); //画时针在钟面上指示位置
circle(x+cos(ak)*radio,y-sin(ak)*radio,2);
setcolor(LIGHTGREEN);
circle(x+cos(aj)*radio,y-sin(aj)*radio,2); //画分针在钟面上的指示位置
line(x-cos(aj)*(radio-115),y+sin(aj)*(radio-115),xm,ym); //画分针
setcolor(LIGHTBLUE);
line(x-cos(ai)*(radio-110),y+sin(ai)*(radio-110),xs,ys); //画秒针
circle(x+cos(ai)*radio,y-sin(ai)*radio,2); //画秒针在钟面上的指示位置
}
void CLOCK::runclock() //运行时钟
{
int h,m,s;
float ah;
struct time tim;
gettime(&tim);
s=tim.ti_sec;
m=tim.ti_min;
h=tim.ti_hour;
ah=(90+30*(12-h)-m*5/60.*6)*PI/180;
showdate();
showtime();
delay(200);
nosound();
if(ah!=ak) {
setcolor(LIGHTGRAY);
setlinestyle(0,0,THICK_WIDTH);
line(x-cos(ak)*(radio-118),y+sin(ak)*(radio-118),xh,yh);
setlinestyle(0,0,NORM_WIDTH);
if(hour%5==0) setcolor(YELLOW);
circle(x+cos(ak)*radio,y-sin(ak)*radio,2);
setcolor(LIGHTGRAY);
hour=h;
}
if(m!=min) {
setcolor(LIGHTGRAY);
line(x-cos(aj)*(radio-115),y+sin(aj)*(radio-115),xm,ym);
if(min%5==0) setcolor(YELLOW);
circle(x+cos(aj)*radio,y-sin(aj)*radio,2);
min=m;
}
if(s!=sec) {
setfillstyle(SOLID_FILL,LIGHTGRAY);
bar(x-30,y+80,x-30+8*8,y+80+8);
setcolor(LIGHTGRAY);
if(sec%5==0) setcolor(YELLOW);
circle(x+cos(ai)*radio,y-sin(ai)*radio,2);
setcolor(LIGHTGRAY);
line(x-cos(ai)*(radio-110),y+sin(ai)*(radio-110),xs,ys);
sec=s;
if(hour>=12) //整点报时
h=hour-12;
else
h=hour;
if(min==59&&sec>=60-h)
sound(392);
if(min==00&&sec==00)
sound(784);
}
showclock();
}
void CLOCK::inittodaydate() //初始化今天的曰期
{
struct date initdate;
getdate(&initdate);
year=initdate.da_year;
mon=initdate.da_mon;
day=initdate.da_day;
}
void CLOCK::initnowtime() //初始化时间
{
struct time inittime;
gettime(&inittime);
hour=inittime.ti_hour;
min=inittime.ti_min;
sec=inittime.ti_sec;
}
void CLOCK::showclock() //显示时钟
{
float alpha;
int x0,y0,i;
char s[3];
for(i=60;i>=1;i--) //显示钟面上数字
{
alpha=(90+6*(60-i))*PI/180;
x0=x+cos(alpha)*radio;
y0=y-sin(alpha)*radio;
setcolor(14);
if(i%5==0){
circle(x0,y0,2);
sprintf(s,"%d",i/5);
outtextxy(x+cos(alpha)*(radio-10)-4,y-sin(alpha)*(radio-10)-2,s);
}
else
circle(x0,y0,1);
}
}

void about(int x,int y,int index) //关于与帮助信息
{
int i=0,t=0;
char *abouttext[]={"You can get message from",
" the status bar at the ",
"bottom.",
"When you set time,you just",
"input like this:080819.",
"The symbol ':' isn't needed.",
"Set date is the same.",
"This clock is designed by",
" Nie Shiqiu.(C99102-07)",
"I'm very interested in C/C++",
"This is my course design."};
setfillstyle(SOLID_FILL,LIGHTGRAY);
bar(x,y,x+27*8+6,y+4*12);
t=index-3;
if(index<4){
y=y+(3-index)*12;
t=0;
}
for(i=t;i<=index;i++)
{
if(i<11){
if(i==8) setcolor(RED); //名字着重显示
else setcolor(LIGHTBLUE);
outtextxy(x+2,y+2,abouttext[i]);
}
y+=12;
}
}
void main() //主程序
{
int driver=DETECT,mode;
int exitflag=FALSE,key,index=0,count=0,aboutindex=0,acnt=0;
WIN winCLK("Clock",80,80,570,385); //创建窗体
CLOCK c1("Clock",80,80,570,385);
initgraph(&driver,&mode,"");
winCLK.Form(FALSE);
c1.showclock();
c1.initnowtime();
do{
about(342,80+185+44,aboutindex);
acnt++;
aboutindex=acnt/10;
if(acnt==139) acnt=0;
message(80+6,380-12,index);
count++;
index=count/10;
if(count==29) count=0;
key=keyscancode();
c1.runclock();
if(key==27) exitflag=TRUE; //按ESC退出
if(key=='T'||key=='t') {
c1.showtime();
c1.setclock();
}
if(key=='D'||key=='d') {
c1.setdates();
}
}while(exitflag==FALSE);
winCLK.draw_closebutton(570-18,80+4,BLACK,TRUE);
delay(300);
closegraph();
}
/*******************/
/* 窗体文件 win.cpp*/
/*******************/
#include"graphics.h"
#define TRUE 1
#define FALSE 0
class WIN
{
char title[20];
protected:
int left,top,right,bottom;
public:
WIN(char *n,int a,int b,int c,int d){strcpy(title,n);left=a;top=b;right=c;bottom=d;}
void draw_minbutton(int left,int top,int color,int state);
void draw_maxbutton(int left,int top,int color,int state);
void draw_closebutton(int left,int top,int color,int state);
void Form(int);
void Button(int,int,int,int,int);
void line3d(int,int,int,int,int);
void Frame(int,int,int,int,char *);
};
void WIN::Frame(int left,int top,int right,int bottom,char *s)
{
line3d(left,top+2,right,top+2,FALSE);
line3d(left,top+3,left,bottom,FALSE);
line3d(left,bottom,right,bottom,FALSE);
line3d(right,top+2,right,bottom,FALSE);
bar(left+4,top,left+4+8*strlen(s)+4,top+8);
setcolor(10);
outtextxy(left+5,top,s);
}
void WIN::line3d(int left,int top,int right,int bottom,int state) /*画有凹凸感的线条函数*/
{
if(state==FALSE){
setcolor(0);
line(left,top,right,bottom);
setcolor(15);
if(top==bottom){
line(left,top+1,right,bottom+1);
}
if(left==right){
line(left+1,top,right+1,bottom);
} }
else
{ setcolor(15);
line(left,top,right,bottom);
setcolor(0);
if(top==bottom){
line(left,top+1,right,bottom+1);
}
if(left==right){
line(left+1,top,right+1,bottom);
} }
}
void WIN::Form(int state)
{
Button(left,top,right,bottom,state);
setfillstyle(1,1);
bar(left+2,top+2,right-2,top+20);
setcolor(YELLOW);
circle(left+12,top+12,8);
line(left+12,top+12,left+12,top+4);
line(left+12,top+12,left+16,top+12);
outtextxy(left+16+10,top+8,title);
draw_minbutton(right-16*3-4,top+4,BLACK,FALSE);
draw_maxbutton(right-16*2-3,top+4,BLACK,FALSE);
draw_closebutton(right-18,top+4,BLACK,FALSE);
Frame(left+5,top+25,left+255,top+278,"Time");
Frame(left+260,top+25,right-5,top+25+20*6,"Date");
line3d(left+280,top+25+20,right-25,top+25+20,FALSE);
Frame(left+260,top+150,right-5,top+150+30,"SetTime(T)");
Button(left+265,top+160,right-8,top+150+25,TRUE);
Frame(left+260,top+185,right-5,top+185+30,"SetDate(D)");
Button(left+265,top+195,right-8,top+185+25,TRUE);
Button(left+4,bottom-20,right-4,bottom-4,TRUE);
Frame(left+260,top+185+35,right-5,bottom-27,"About");
}
void WIN::Button(int left,int top,int right,int bottom,int state)
{
if(state==-1){
setfillstyle(1,7);
bar(left,top,right,bottom);}
setfillstyle(1,7);
bar(left,top,right,bottom);
if(state==FALSE)
{
setcolor(15);
line(left,top,right,top);
line(left,top,left,bottom);
setcolor(0);
line(left,bottom,right,bottom);
line(right,top,right,bottom);
setcolor(8);
line(left+1,bottom-1,right-1,bottom-1);
line(right-1,top+1,right-1,bottom-1);
}
if(state==TRUE)
{
setcolor(8);
line(left,top,right,top);
line(left,top,left,bottom);
setcolor(15);
line(left,bottom,right,bottom);
line(right,top,right,bottom);
}
}
void WIN::draw_minbutton(int left,int top,int color,int state)
{
if(state==FALSE)
{
Button(left,top,left+15,top+15,FALSE);
setcolor(color);
line(left+3,top+11,left+12,top+11);
line(left+3,top+12,left+12,top+12);
}
else
{
Button(left,top,left+15,top+15,TRUE);
setcolor(color);
line(left+3,top+13,left+12,top+13);
line(left+3,top+12,left+12,top+12);
}
}
void WIN::draw_maxbutton(int left,int top,int color,int state)
{

if(state==FALSE)
{
Button(left,top,left+15,top+15,FALSE);
setcolor(color);
rectangle(left+4,top+4,left+12,top+12);
rectangle(left+4,top+5,left+12,top+12);
}
else
{
Button(left,top,left+15,top+15,TRUE);
setcolor(color);
rectangle(left+4,top+4,left+12,top+14);
rectangle(left+4,top+3,left+12,top+14);
}
}
void WIN::draw_closebutton(int left,int top,int color,int state)
{
if(state==FALSE)
{
Button(left,top,left+15,top+15,FALSE);
setcolor(color);
line(left+4,top+4,left+12,top+12);
line(left+5,top+4,left+13,top+12);
line(left+4,top+12,left+12,top+4);
line(left+5,top+12,left+13,top+4);
}
else
{
Button(left,top,left+15,top+15,TRUE);
setcolor(color);
line(left+4,top+4,left+12,top+12);
line(left+5,top+4,left+13,top+12);
line(left+4,top+12,left+12,top+4);
line(left+5,top+12,left+13,top+4);
}
}

❻ 悬赏100元钱。注释一个java扫雷游戏源代码,就是把每行的意思写到后面就可以了!在线等。

import java.awt.*;
import javax.swing.*;
import java.util.Random;
import java.awt.event.*;

class Min extends JPanel //雷的类
{
//备注:鼠标的左键 = 1;右键 = 3;中键 = 2
private int flag = 0,statu = 0; //定义雷的属性 0:没有打开 1:打开 2:标示为雷 3:不确定
//flag = 0 不是雷 ; flag = 1是雷
private int but,count = 0; //but:哪一个鼠标键被按下去了 count:这个区域周围有多少个雷
private int mx = 0,my = 0,mw = 10; //定义雷的坐标和宽度

public Min() //构造函数
{
statu = 0;
}
public Min(int f,int x,int y,int w)
//构造函数
{
flag = f;
mx = x;
my = y;
mw = w;
}
public int getFlag(){return flag;}
public int getStatu(){return statu;}
public int getMx(){return mx;}
public int getMy(){return my;}
public int getMw(){return mw;}
public int getCount(){return count;}
public void setFlag(int f){flag = f;}
public void setCount(int c){count = c;}
public void setData(int f,int x,int y,int w,int s)
//传递值
{
flag = f;
mx = (x-1)*w;
my = (y-1)*w;
mw = w-1;
statu = s;
}
//根据你点击鼠标的不同来改变雷的属性
public int sendKey(int key)
{
//返回值,如果游戏结束则返回-1
int rtn = 1;
if(key == 3)
{
switch(statu)
{
case 1:
break;
case 2:
statu = 3;
break;
case 3:
statu = 0;
break;
case 0:
statu = 2;
break;
}
rtn = 1;
}
if(key == 1 && statu == 0)
{
switch(flag)
{
case 0:
statu = 1;
rtn = 2;
break;
case 1:
statu = 1;
rtn = -1;
break;
}
}
return rtn;
}
}

class DrawPanel extends JPanel
{
private int i,j;
private int f = 0; //if f = 1 then game over ,if f =2 then win
private int chx = 0,chy = 0; //专门记录坐标x,y的值
private int msum = 6,ksum = 0; //msum:雷的个数,ksum:标示雷的个数
private int bx = 10,by = 10,bw = 40; //bx,by:棋盘的大小,bw:棋子的大小
public Min board[][] = {
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
{new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min(),new Min()},
};
// 画坐标为ax,ay区域的雷的状态
public void draw(Graphics g,int ax,int ay)
{
int x,y,w; // 坐标x,y;和宽度:w
int s,c,flag; //状态;雷的个数;
int cx = bw/2 - 4;
int cy = bw/2 + 4;
x = board[ax][ay].getMx();
y = board[ax][ay].getMy();
w = board[ax][ay].getMw();
s = board[ax][ay].getStatu();
c = board[ax][ay].getCount();
flag= board[ax][ay].getFlag();

switch(s)
{
case 0: //没有打开状态
{
g.setColor(Color.black);
g.fillRect(x,y,w,w);
break;
}
case 1: //打开状态
{
g.setColor(Color.blue);
g.fillRect(x,y,w,w);
if(c != 0 && flag == 0) //此处没有雷
{
g.setColor(Color.red);
g.drawString(String.valueOf(c),x + cx,y + cy);
}
if(flag == 1) //此处有雷
{
g.setColor(Color.red);
g.fillRect(x,y,w,w);
g.setColor(Color.blue);
g.drawString(" 雷",x + cx,y + cy);
}
break;
}
case 2: //标雷状态
{
g.setColor(Color.green);
g.fillRect(x,y,w,w);
g.setColor(Color.blue);
g.drawString(" 旗",x + cx,y + cy);
break;
}
case 3: //不确定状态
{
g.setColor(Color.black);
g.fillRect(x,y,w,w);
g.setColor(Color.red);
g.drawString("?",x + cx,y + cy);
break;
}
default:
break;
}
}
// 没有图形器的绘图函数:画出坐标ax,ay的雷的状态和图形
public void draw(int ax,int ay)
{
Graphics g;
g = this.getGraphics();
draw(g,ax,ay);
}

//打开周围没有雷的地方,并且绘画所在区域点击左键触发
public int openNoMin(int ax,int ay)
{
int i,j;

if(ax<1||ay<1||ax>bx||ay>by) return 0; //鼠标点击的区域出界了
if(board[ax][ay].getStatu() != 0) return 0; //如果此区域打开了,返回
board[ax][ay].sendKey(1); //如果返回值等于-1,就说明游戏结束
draw(ax,ay);
if(board[ax][ay].getFlag() == 1)
//如果游戏结束,把所有的雷都显示出来
{
for(i = 1;i<=bx;i++)
{
for(j = 1;j <= by;j++)
{
if(board[i][j].getFlag() == 1)
{
board[i][j].sendKey(1);
draw(i,j);
}
}
}
return -1;
}
//如果游戏没有结束
if(board[ax][ay].getCount() > 0)
{
ksum ++;
return 1; //周围有雷,就不用打开周围地区
}
if(board[ax][ay].getCount() == 0 && board[ax][ay].getFlag() == 0)
//周围没有雷,打开周围地区,直到有雷的地区
{
openNoMin(ax-1,ay-1);openNoMin(ax,ay-1);openNoMin(ax+1,ay-1);
openNoMin(ax-1,ay ); openNoMin(ax+1,ay );
openNoMin(ax-1,ay+1);openNoMin(ax,ay+1);openNoMin(ax+1,ay+1);
}
ksum ++;
return 1;
}

//计算坐标x,y的周围雷的个数
public int getCount(int ai,int aj)
{
int sum = 0;
if(board[ai][aj].getFlag() == 1)
{
return sum;
}

if(ai>1&&aj>1&&ai<bx&&aj<by)
{
sum = board[ai-1][aj-1].getFlag()+ board[ai][aj-1].getFlag()+ board[ai+1][aj-1].getFlag()+
board[ai-1][aj ].getFlag()+ board[ai+1][aj ].getFlag()+
board[ai-1][aj+1].getFlag()+ board[ai][aj+1].getFlag()+ board[ai+1][aj+1].getFlag();
}
if(ai==1&&aj==1)
{
sum = board[ai+1][aj ].getFlag()+
board[ai][aj+1].getFlag()+ board[ai+1][aj+1].getFlag();
}
if(ai==1&&aj==by)
{
sum = board[ai][aj-1].getFlag()+ board[ai+1][aj-1].getFlag()+
board[ai+1][aj ].getFlag();
}
if(ai==bx&&aj==1)
{
sum = board[ai-1][aj ].getFlag()+
board[ai-1][aj+1].getFlag()+ board[ai][aj+1].getFlag();
}
if(ai==bx&&aj==by)
{
sum = board[ai-1][aj-1].getFlag()+ board[ai][aj-1].getFlag()+
board[ai-1][aj ].getFlag();
}
if(ai==1&&aj>1&&aj<by)
{
sum = board[ai][aj-1].getFlag()+ board[ai+1][aj-1].getFlag()+
board[ai+1][aj ].getFlag()+
board[ai][aj+1].getFlag()+ board[ai+1][aj+1].getFlag();
}
if(ai==bx&&aj>1&&aj<by)
{
sum = board[ai-1][aj-1].getFlag()+ board[ai][aj-1].getFlag()+
board[ai-1][aj ].getFlag()+
board[ai-1][aj+1].getFlag()+ board[ai][aj+1].getFlag();
}
if(ai>1&&ai<bx&&aj==1)
{
sum = board[ai-1][aj ].getFlag()+ board[ai+1][aj ].getFlag()+
board[ai-1][aj+1].getFlag()+ board[ai][aj+1].getFlag()+ board[ai+1][aj+1].getFlag();
}
if(ai>1&&ai<bx&&aj==by)
{
sum = board[ai-1][aj-1].getFlag()+ board[ai][aj-1].getFlag()+ board[ai+1][aj-1].getFlag()+
board[ai-1][aj ].getFlag()+ board[ai+1][aj ].getFlag();
}
return sum;
}

// 传入参数:几列,几行,宽度,雷数
public void initMin(int ax,int ay,int aw,int as)
{
int k = 1; //表明产生的第几个雷
Random r; //随机数

f = 0; //f=0表示游戏还没有结束
ksum = 0;
bx = ax;
by = ay;
bw = aw;
msum = as;
r = new Random();
//初始化底盘的值
for(i = 1;i <= bx;i++)
{
for(j=1;j<=by;j++)
{
board[i][j].setData(0,i,j,bw,0);
}
}
// 随机产生雷
while(k <= msum)
{
i = r.nextInt(bx)+1;
j = r.nextInt(by)+1;
if(board[i][j].getFlag() != 1)
{
board[i][j].setFlag(1);
k++;
}
}
// 非雷区的周围有几个雷,初始化其值
for(i = 1;i <= bx;i++)
{
for(j=1;j<=by;j++)
{
board[i][j].setCount(getCount(i,j));
}
}

setBackground(Color.white);
repaint();
}
// 构造函数
public DrawPanel(int ax,int ay,int aw,int as)
{
initMin(ax,ay,aw,as);
addMouseListener(new MouseAdapter()
{
public void mousePressed(MouseEvent me)
{
int r;
if(f != 0) return; //如果游戏结束,返回
chx = me.getX();
chy = me.getY();
if(me.getButton() != 1)
{
board[chx/bw+1][chy/bw+1].sendKey(me.getButton());
draw(chx/bw+1,chy/bw+1);
}
else if(me.getButton() == 1)
{
if(openNoMin(chx/bw+1,chy/bw+1) == -1)
{
f = 1;
repaint();
}
else if ( ksum + msum == bx*by )
{
f = 2;
repaint();
}
}
}
}
);
}
// 重画所有的图形,包括一些修饰的图形
public void paint(Graphics g)
{
int x,y,w;
int s;
int cx = bw/2 - 4;
int cy = bw/2 + 4;

g.clearRect(0,0,600,600);
for(i=1;i<=bx;i++)
{
for(j=1;j<=by;j++)
{
draw(g,i,j);
}
}
if(f == 1)
{
Font f = new Font("11",1,70);
Font fo = g.getFont();
g.setColor(Color.white);
g.setFont(f);
//g.setSize();
g.drawString("Game Over",0,200);
g.setFont(fo);
}
if( f == 2 )
{
Font f = new Font("11",1,70);
Font fo = g.getFont();
g.setColor(Color.white);
g.setFont(f);
//g.setSize();
g.drawString("You win!",0,200);
g.setFont(fo);
}
}

};
// 主类和程序的入口
public class Mine extends JFrame implements ActionListener
{
Container cp = getContentPane();
JButton bt = new JButton("开局");
Label l1 = new Label("列:");
Label l2 = new Label("行:");
Label l3 = new Label("宽度:");
Label l4 = new Label("雷的个数:");
TextField tf1 = new TextField("10",2); //列
TextField tf2 = new TextField("10",2); //行
TextField tf3 = new TextField("40",2); //宽度
TextField tf4 = new TextField("15",2); //雷的个数
int x=10,y=10,w=40,sum=15;
DrawPanel dp = new DrawPanel(x,y,w,sum);

public Mine()
{
setBackground(Color.white);
cp.setLayout(null);
cp.add(dp);
cp.add(bt);
cp.add(tf1);
cp.add(tf2);
cp.add(tf3);
cp.add(tf4);
cp.add(l1);
cp.add(l2);
cp.add(l3);
cp.add(l4);

l1.setBounds(20 ,10,20,20);
tf1.setBounds(40,10,20,20);
l2.setBounds(70,10,20,20);
tf2.setBounds(90,10,20,20);
l3.setBounds(120,10,40,20);
tf3.setBounds(160,10,20,20);
l4.setBounds(190,10,60,20);
tf4.setBounds(250,10,20,20);
bt.setBounds(300,10,80,20);
dp.setBounds(20,40,x*w,y*w);
setResizable(false);
setSize(x*w+40,y*w+80);
setTitle(" 扫雷");
show();
bt.addActionListener(this);
addWindowListener(new WindowAdapter()
{ public void windowClosing(WindowEvent e)
{System.exit(0);}
}
);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource() == bt)
{
//x = Integer.parseInt(tf1.getText());
//y = Integer.parseInt(tf2.getText());
//w = Integer.parseInt(tf3.getText());
sum = Integer.parseInt(tf4.getText());
setSize(x*w+40,y*w+80);
dp.setBounds(20,40,x*w,y*w);
show();
dp.initMin(x,y,w,sum);
}
}
public static void main(String args[])
{
new Mine();
}
};

❼ 股票指标bdzx里AK/AD1/AJ/AA/BB/CC分别代表什么

AK/AD1/AJ分别是那三条曲线,白,黄,和紫。
这三个是动态的。
AA/BB/CC就是三个数值,分别是100,0和80.

顺便把这个指标的源码给你:
VAR2:=(HIGH+LOW+CLOSE*2)/4;
VAR3:=EMA(VAR2,21);
VAR4:=STD(VAR2,21);
VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;
VAR6:=(EMA(VAR5,5)-25)*1.56;
AK: EMA(VAR6,2)*1.22;
AD1: EMA(AK,2);
AJ: 3*AK-2*AD1;
AA:100;
BB:0;
CC:80;
买进: IF(CROSS(AK,AD1),58,20);
卖出: IF(CROSS(AD1,AK),58,20);

不难看出来其实这就是一个普通的用均线改装出来的趋势指标。
要说举例嘛,呵呵,有什么想问就给我留言吧,我也不知道怎么给你举例。

❽ 求大神提供类似大疆官网的html源码

可以去H5e看看,其HTML5培训课程融合了HTML5开发基础课程、CSS3基础课程和移动前端交互JavaScript+JQuery+Ajex等课程,从入门到精通,让开发者全面学习HTML5,还联合上市公司给大家颁发奖学金!英特尔1000元,触控科技1000元,国信深蓝教育2000元。现只剩15个名额,现在报名立即优惠¥4000,截止报名时间12月19日,入学即签订就业协议保障。

❾ 网页源码中的成片字母数字 密密麻麻的 是表达什么的

base64格式的图片内容,可以在网页中直接展示

❿ 最简单最易用的ajax库是什么

很多时候我们只要用到一些简单的Ajax功能,提供一些简单的回调而不需要很花哨的东西。然而现有的很多Ajax库都很大,虽然功能很多但是我们很多时候根本就不需要用到他们,我就遇到过那样的经历,所以我想弄一个很简单的Ajax回调函数来搞定。首先我想到的是CS中的AjaxManager,我就是把它简化一下,去掉不想要的和很多更适合我们习惯的一些方法。

我把他命名为AjaxLite,因为他只要两个类就能实现Ajax的功能,为了把JS文件不另外Include,我把JS嵌入的了DLL中。总共两个文件一个JS,一个cs的文件,两个类这是我有史以来见过最简单的Ajax类库了。只要把编译后的DLL文件引用到你的项目中然后在Page_Load事件中Register你的用户控件或页面就可以很简单的实现了,代码也很简单这里就不多说了。

1.Register:查找当前控件中包含AjaxMethod属性标签的方法,并注册到客户端;

2.Post:通过客户端返回的类型和回调的函数查找控件中包含AjaxMethod属性标签的方法执行并返回;

3.Render:注册到Page生命周期中的PreRender中,然后再呈现执行JS以实现回调。

源代码项目(VS2008 beta1):AjaxLite

[2007-10-11]修复了一个BUG:当有多个AjaxMethod标注方法时会出现脚本错误(少一个"}"号!)。

L最后还是希望自己能够进步,大家能够带来帮助Z

热点内容
app什么情况下找不到服务器 发布:2025-05-12 15:46:25 浏览:713
php跳过if 发布:2025-05-12 15:34:29 浏览:466
不定时算法 发布:2025-05-12 15:30:16 浏览:129
c语言延时1ms程序 发布:2025-05-12 15:01:30 浏览:163
动物园灵长类动物配置什么植物 发布:2025-05-12 14:49:59 浏览:732
wifi密码设置什么好 发布:2025-05-12 14:49:17 浏览:147
三位数乘两位数速算法 发布:2025-05-12 13:05:48 浏览:396
暴风影音缓存在哪里 发布:2025-05-12 12:42:03 浏览:539
access数据库exe 发布:2025-05-12 12:39:04 浏览:627
五开的配置是什么 发布:2025-05-12 12:36:37 浏览:363