블로그
-
[영진전문대학 컴퓨터정보계열] 자바 Thread
class Counter{ private int value = 0; public void increment() { value++;} public void decrement() { value sharedCounter; public MyThread(Counter c){ this.sharedCounter=c; } public void run(){ int i = 0; while
blog.naver.com · 2013.10.30
-
[영진전문대학 컴퓨터정보계열] 스레드 - 동기화 synchronized
} class MyThread extends Thread { Counter sharedCounter; public MyThread(Counter c) { this.sharedCounter = c; } public void run() { int i = 0; while (i < 200) { sharedCounter.increment(); sharedCounter.decrement
blog.naver.com · 2013.10.31
-
[영진전문대학 컴퓨터정보계열] 입출력 - input output에 복사
while((c = in.read()) ! = -1){ out.write(c); } } finally { if(in != null){ in.close(); } if(out !
blog.naver.com · 2013.11.04
-
[영진전문대 컴퓨터정보계열 프로그래밍전공]자바의 개요2
실습 --------------------------------------------------- import java.util.Scanner; class Exam { int c; public int add(int a, int b) { c = a+b; return c; } } public class circleArea { public static void main
blog.naver.com · 2013.08.29
-
[영어전문학원] 북한 '로또’ 있다는데, 1등 당첨금은?
The “People’s Livelihood Bond” is North Korea’s first bond, operated by a public institution. The first prize c.......
blog.naver.com · 2013.08.27
-
(영진전문대 컴퓨터프로그래밍전공반) JAVA 11.28
.*; //입출력 관련 패키지 public class FileStreamTest { public static void main(String[] args) throws IOException BufferedInputStream in = null; // 파일단위 바이트 스트림객체 BufferedOutputStream out = null; // 출력 스트림객체 try { int c;
blog.naver.com · 2012.11.28
-
(영진전문대 컴퓨터프로그래밍전공반) c++ 7장 연습문제(programming)
#include #include using namespace std; class Count { private : int value; public: void countUp() { { value = c; } void print() const { cout<
blog.naver.com · 2012.11.19
-
(영진전문대 컴퓨터프로그래밍전공반) C++ 11.26일
상속 : 부모클래스의 모든 멤버를 물려 받음 접근지정자 : public protected private 자식객체 생성시 : 부모(기본)생성자 호출후 자식생성자 호출! (순서)부모=>자식 Child(int a, int b, int c) : Parent(a, b) { .... } // 명시적으로 이런 생성자를 호출하겠다.
blog.naver.com · 2012.11.26
-
[골프용어/골프정보] 코스, 코스 레이트, 코스 레코드, 콕, 크로스 벙커 - C 로 시작하는 골프용어 2
[골프용어/골프정보] 코스, 코스 레이트, 코스 레코드, 콕, 크로스 벙커, 크로스 윈드, 클럽, 클럽 페이스, 클럽 헤드, 클럽하우스 - C 로 시작하는 골프용어 2 ▷ course 코스에는 퍼블릭 코스(public course), 컨트리 클럽 멤버쉽 코스 (country club membership course), 리조트 코스(resort course), 세미퍼블릭
blog.naver.com · 2012.02.24
-
Delegate 너란 놈은 대체 뭐야?
사용방법 3단게 -> class C에 A함수가 있다면 치자, Delegate를 사용하기위해 Delegate 선언 delegate void dg(); -> new로 생성 C cdg = new C(); dg dgtest = new dg(); -> 마지막으로 호출을 하면 된다. dgtest(); -> 이렇게 선언, 생성, 호출하면 된다.
blog.naver.com · 2012.01.03