이클립스(485)
-
SwitchEx05-no break/switch+break
switch~case문과 switch~case~default 레이블 유무에 따른 출력결과 확인 소스코드 public class SwitchEx05 { public static void main(String[] args) { int n=3; // int n=7; // int n=10; switch(n) { case 1: System.out.println("First"); case 2: System.out.println("Second"); case 3: System.out.println("Thrid"); case 4: System.out.println("Fourth"); case 5: System.out.println("Fifth"); case 6: System.out.println("Sixth"); cas..
-
생성자 함수를 이용한 객체 생성- 08.html
생성자 함수를 이용한 객체 생성 생성자 함수는 대문자로 시작, 명사형식 일반 함수는 소문자로 시작, 동사형식 소스 코드 //생성자 함수 function Person(name){ this.name = name; } //객체 생성 var mySon = new Person('홍길동'); //출력 document.write(mySon.name + ' '); document.write(mySon['name'] + ' '); 출력결과
-
IfEx03.java-다중 if문 ( 성적 등급 처리)
조건문 - 다중 if문 ( 성적 등급 처리) 소스코드 public class IfEx03 { public static void main(String[] args) { java.util.Scanner input = new java.util.Scanner(System.in); int score; char grade; System.out.print("성적을 입력하세요 > "); score = input.nextInt(); if( score >= 90 && score = 80 && score = 70 && score =60 && score
-
SwitchEx03.java-switch()문 (성적 등급 처리하기)
성적등급 처리하기 case레이블을 하나의 그룹으로 묶어서 처리하기 char형 조건값 비교하기 소스코드 public class SwitchEx03 { public static void main(String[] args) { // TODO Auto-generated method stub // switch()문 (성적 등급 처리하기) java.util.Scanner input = new java.util.Scanner(System.in); int score; char grade; System.out.println("정수형 성적을 입력하세요 > "); score = input.nextInt(); switch(score/10){ case 10: case 9:{ // 10, 9레이블을 하나의 부류로 묶어서 처리하게..
-
Eclipse Error-cannot open output file filename.exe: Permission denied C/C++ Problem (C programming)
에러 메시지 Description Resource Path Location Type cannot open output file ch11-stream.exe: Permission denied ch11-stream C/C++ Problem 원인 build를 연속해서 수행할 경우 발생할 수 있습니다. 해결방법 작업 관리자 실행 해당 프로세스가 실행 중이여서 Permission 실패가 일어났습니다. 프로세스 선택 > 마우스 우클릭 > 작업 끝내기로 해당 프로세스 모두 종료
-
Eclipse Error-Error exist in a required project. Continue launch? (C programming)
원인 키보드로 입력받는 코드가 있을 때 아래와 같이 오류 메시지가 발생 오류메시지 Error exist in a required project. Continue launch? 해결방법 작업관리자 실행 후 해당 exe 파일의 프로세스를 강제 종료시킵니다.