求老师教myspringc
myspringc吧
全部回复
仅看楼主
level 2
求老师教myspringc
2018年01月05日 14点01分 1
level 4
//===== 人体生物节律曲线 == Biorhythm ====
//制作人:
13601997483
== [email protected]
//==== http:\\myspringc.com =============
Canvas cs;
string sBarDes[10];
int nBarId[10];
float pi=3.1415926535;
float src[4]; //ClearDraw (cls) clear screen
double s1,s2,s3;
int i,bx,k;
int alln0,alln1;
int alln; //set today-birthday all days
float a;
float x0,y0;
float x1,y1;
string s,ss;
string gs1,gs2,gs3,gs4,gs5,gs6;
int by,bm,bd; //birthday yy,mm,dd
int ty,tm,td; //today
int bms,tms;
int ns;
string nss;
int d[3];
int count;
string start[101];//生日日期
string end[101];//当前日期
double jd0,jd1;
main(){
setDisplay(1);
cs.Active();
sBarDes[0]="输入日期";
nBarId[0]=100;
sBarDes[1]="显示曲线";
nBarId[1]=101;
sBarDes[2]="清除图板";
nBarId[2]=102;
sBarDes[3]="重新开始";
nBarId[3]=103;
sBarDes[4]="退出程序";
nBarId[4]=104;
setToolBarHeight(10);
setButtonTextSize(15);
setToolBarBackgroundColor(255,192,192,192);
setButtonColor(255,0,0,240);
setButtonTextColor(255,255,245,0);
setToolBar(100,myToolBarProc,sBarDes,nBarId,5);
setTitle("人体生物节律");
s="人体生物节律 ";
cs.SetStrokeWidth(1);//画笔线宽
cs.SetFillMode (1);//0不填色,1填色
cs.SetColor(255,0,255,255);
cs.DrawRect(20,100,680,290);
cs.SetColor(255,0,0,255);
cs.DrawRect(400,320,540,400);
cs.SetTextSize (28);
cs.SetColor(255,250,250,0);
cs.DrawText ("输入日期",415,370);
cs.SetFillMode (0);
cs.SetColor(255,255,0,255);
cs.DrawRect (20,100,680,290);
cs.DrawRect(22,102,678,288);
cs.SetStrokeWidth(2);//画笔线宽
cs.SetTextSize (88);
cs.DrawText (s,90,220);
s="http:\\\\www.myspringc.com";
cs.SetTextSize (28);
cs.DrawText (s,30,330);
s="请输入当前日期和生日日期 >> ";
cs.DrawText (s,30,370);
s=" welcome ... ... ";
cs.SetColor(255,255,0,0);
cs.SetTextSize (78);
cs.DrawText (s,90,600);
cs.Update ();
while (){}
}//main()
input_date (){
//here get birthday & current date then show out
inputdd:
getDate(d);
pickDate("输入> 当前日期",d);
end[count]=intToString(d[0])+"-"+intToString(d[1])+"-"+intToString(d[2]);
ty=d[0];
tm=d
2020年04月06日 03点04分 4
要原码联系 [email protected]
2020年10月09日 11点10分
level 4
有样例,《万年历》(农历节气生辰八字),《十字钻石棋》《动脑筋十二块》《房贷计算器》。需要可联系 [email protected]
2021年05月18日 12点05分 6
1