목록전체 글 (57)
독도갈매기의 개발 블로그
[알고리즘] 백준 아스키 코드 11654번
#include using namespace std; int main() { char input; cin >> input; cout
알고리즘
2020. 9. 30. 20:08
[JS] 객체지향프로그래밍(OOP)의 핵심 개념 인스턴스와 객체
용어정리 Class 객체의 특성을 정의 Object Class의 인스턴스 Constructor 인스턴화 되는 시점에서 호출되는 메서드 Merhod 객체의 능력 Ex) 걷기, 짖기, 달리기 위 내용은 Mozilla에서 정의한 용어입니다. Class생성 간단한 설명 class Person { // 클래스 정의 constructor(name, age) { // 생성자 함수 생성 (Constructor) this.name = name; // 클래스 field 구성 this.age = age; // 클래스 field 구성 } say() { // 클래스 Method 생성 if (this.name) { console.log(`안녕 나는 ${this.name}이야`); } else { console.log(`안녕하세요..
Javascript
2020. 9. 29. 13:19
[알고리즘] 백준 최댓값 2562번
#include using namespace std; int main() { int count, max; int* arr = new int[9]; for (int i = 0; i > arr[i]; } max = arr[0]; count = 0; for (int i = 0; i arr[i]) { max = max; } else if (max < arr[i]) { max = arr[i]; count = i + 1; } else count = i + 1; } cout
알고리즘
2020. 9. 28. 21:41