home *** CD-ROM | disk | FTP | other *** search
- fprintf(fp,"\nsele 1\ngo brec\ncctc=0\nactc=0\n");
- i=0;
- root2=root;
- while(root2!=NULL) {
- if(root2->sele=='Y') {
- p2=root2->sstr;
- while(p2!=NULL) {
- if(p2->obj=='Y') {
- fprintf(fp,"ll%-d=0\n",i);
- i++; }
- p2=p2->next; } }
- root2=root2->next; }
- fprintf("do while cctc<cnt\nif %s\n",condition);
- i=0;
- root2=root;
- while(root2!=NULL) {
- if(root2->sele=='Y') {
- p2=root2->sstr;
- while(p2!=NULL) {
- if(p2->obj=='Y') {
- fprintf(fp,"ll%-d=ll%-d+%s\n",i,i,p2->field);
- i++; }
- p2=p2->next; } }
- root2=root2->next; }
- fprintf(fp,"actc=actc+1\nendif\ncctc=cctc+1\nskip\nenddo\ngo brec\n");
- i=0;
- root2=root;
- while(root2!=NULL) {
- if(root2->sele=='Y') {
- p2=root2->sstr;
- while(p2!=NULL) {
- if(p2->obj=='Y') {
- fprintf(fp,"ll%-d=ll%-d/actc\n",i);
- i++; }
- p2=p2->next; } }
- root2=root2->next; }