import 'dart:html';
void main() {
List<String> post=new List<String>(22);
List<int> life=new List<int>(100);
List<int> car=new List<int>(100);
List<int> age=new List<int>(100);
faststep sub=new faststep();
sub.post=post;
sub.life=life;
sub.car=car;
sub.age=age;
sub.makedata();
post=sub.post;
life=sub.life;
car=sub.car;
age=sub.age;
print(age[12]);
var q=querySelector("#sample");
q.text =post[3];
}
class faststep{
List<String> post=new List<String>(100);
List<int> life=new List<int>(100);
List<int> car=new List<int>(100);
List<int> age=new List<int>(100);
int s,sx,tx;
void makedata(){
for(s=1;s<22;s++){
life[s]=100;
}
for(s=1;s<22;s++){
car[s]=s;
}
tx=0;
for(s=1;s<7;s++){
for(sx=1;sx<s+1;sx++){
tx=tx+1;
age[tx]=7-s;
}
}
post[0]="引退";
post[1]="首相";
post[2]="幹事長";
post[3]="総務会長";
post[4]="政調会長";
post[5]="国対委員長";
post[6]="幹事代理";
post[7]="総務代理";
post[8]="政調代理";
post[9]="国対代理";
post[10]="幹事";
post[11]="幹事";
post[12]="幹事";
post[13]="総務";
post[14]="総務";
post[15]="総務";
post[16]="部会";
post[17]="部会";
post[18]="部会";
post[19]="国対";
post[20]="国対";
post[21]="国対";
}
}
最終更新:2013年11月17日 12:06