프로그래밍

대학교 수업/Java 프로그래밍

[Java] 명품 자바 프로그래밍 12장 실습문제

1-1 번 import java.awt.*; import javax.swing.*; public class Chapter12 extends JFrame { Chapter12(){ setTitle("이미지 그리기 연습"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setContentPane(new MyPanel()); setSize(300,300); setVisible(true); } class MyPanel extends JPanel { ImageIcon icon = new ImageIcon("src/back.jpg"); Image img = icon.getImage(); public MyPanel() { setLayout(new FlowLayout()); a..

대학교 수업/C++ 프로그래밍

[C++] 명품 c++ 프로그래밍 5장

1번 #include using namespace std; class Circle { int radius; public: Circle() :Circle(1) {} Circle(int r) { radius = r; } void show() { cout > b; if (bigger(a, b, big)) { cout

Jongung
'프로그래밍' 태그의 글 목록