/********************************/ /* */ /*    足し算の計算     */ /* */ /* 1999/ 5/24 宍戸 輝光 */ /* */ /********************************/ import java.awt.*; class s2list { // 数値格納用リスト int num,exp; s2list next; s2list() { num=0; exp=0; next=null; } } public class siki1 extends java.applet.Applet { Label resL; TextField inF,resF; Button clcB; Panel Pl,Pb; public void start(){ Pl=new Panel(); inF=new TextField(16); resL=new Label("="); resF=new TextField(5); Pl.add(inF); Pl.add(resL); Pl.add(resF); Pb=new Panel(); clcB=new Button("Go"); Pb.add(clcB); setLayout(new BorderLayout(2,8)); add("Center",Pl); add("South",Pb); } int hyoka(String str) { // 数式を計算 int iIndex=0,iRes=0; String num=new String(); s2list sl,lstart=new s2list(); sl=lstart; while(iIndex