class ren{
int pnumber;
double[] hprice=new double[10000];
double[] lprice=new double[10000];
double[] cprice=new double[10000];
double[] oprice=new double[10000];
double[] vvolume=new double[10000];
int hyear[]=new int[10000];
int hday[]=new int[10000];
int hmonth[]=new int[10000];
int s,key;
int year,month,day;
String dbtable;
public static void main(String [] args) {
ren test=new ren();
}
ren(){
dbtable="htable";
key=100;
historytable htab=new historytable();
if(key<50)htab.makedata(dbtable);
historydata hd=new historydata();
hd.makedata();
pnumber=hd.pnumber;
hprice=hd.chhigh;
lprice=hd.chlow;
oprice=hd.chopen;
cprice=hd.chclose;
vvolume=hd.chvolume;
hyear=hd.pyear;
hmonth=hd.gmonth;
hday=hd.pday;
System.out.println(pnumber);
historyinsert hi=new historyinsert();
hi.gcode=2;
for(s=1;s<pnumber+1;s++){
hi.gyear=hyear[s];
hi.gmonth=hmonth[s];
hi.gday=hday[s];
hi.lprice=hprice[s];
hi.oprice=oprice[s];
hi.cprice=cprice[s];
hi.hprice=lprice[s];
hi.volume=vvolume[s];
hi.makedata(dbtable);
}
}
}
最終更新:2011年04月03日 04:08