Money Changer with CheckBox
import javax.swing.*;import java.awt.*;import java.awt.event.*;public class EX4 extends JFrame{ private JPanel upPanel; private JPanel centerPanel; private String[] money= {"오만원","만원","천원","500원","100원","50원","10원","1원"}; private int[] mn= {50000,10000,1000,500,100,50,10,1}; private JTextField[] mtf=new JTextField[mn.length]; private JCheckBox[] mcb=new JCheckBox[mn.length]; private boolean [] c..
2024. 12. 6.
미로탐색 레벨 순회(Level Order)
제출본#include #include #define MAX_QUEUE_SIZE 100void print_maze(int rows, int cols,int maze[rows][cols],int currRow, int currCol);void move(int rows,int cols,int maze[rows][cols], int *currRow, int *currCol, int newRow, int newCol);typedef struct { int x; int y;} Position;typedef struct TreeNode { Position data; struct TreeNode *left, *right, *up, *down;} TreeNode;typedef TreeNode* el..
2024. 11. 17.