컴퓨터
-
toString()컴퓨터/Java 2019. 11. 21. 09:44
- When we print out Objects, we often see a String that is not very helpful in determining what the Object represents. 주소를 보여준다든지... - We can return a String that will print when we print the object. public String toString() { } - import java.util.Arrays; array를 print하면 memory address가 나온다. therefore we need a toString() method that is provided by the Arrays package in Java. Arrays.toString(arra..
-
[Java 기본 02] Java file, java 프로그래밍 특징 및 작성법컴퓨터/Java 2019. 11. 20. 10:52
-> 들여쓰기 제대로 하기! -> 들여쓰기 제대로 안돼 있을 때 메뉴바의 source -> correct indentaion (ctrl+i) 누르면 자동으로 들여쓰기 해준다 * java : method, 클래스 java에서는 함수라는 말을 쓰지 않고 method라는 말을 쓴다. c언어에서의 함수, function과 대응한다. c언어는 함수들의 집합일 뿐이고 함수들을 둘러싼 단위가 없다. 반면, 자바에는 class(method들의 집합)가 있다. 자바 프로그래밍은 class들의 집합이다. class 안에 method들이 있다. * Each file has one primary class named after the file. public class HelloWorld { } 클래스 이름이 대문자로 시작해야..
-
javascript 함수 3컴퓨터/JavaScript_typescript 2019. 11. 18. 17:28
* insertAdjacentHTML() 특정 텍스트를 파싱하고, 특정 위치에 DOM tree 안에 원하는 node들을 추가한다. innerHtml보다 작업이 덜 드므로 빠르다. element.insertAdjacentHTML(position, text) position -> beforebegin(element 앞에), afterbegin(가장 첫번째 child), beforeend(가장 마지막child), afterend(element 뒤에) ex. var d1 = document.getElementById('one'); d1.insertAdjacentHTML('afterend', 'two'); * document.getElementsByTagName("div")[0] === document.getEl..
-
15. 네트워크컴퓨터/개념 2019. 11. 9. 20:47
networking open systems and protocols network addresses cloud computing 컴퓨터 네트워크, 무선통신망, 모바일 네트워크... * 주요 용어 * 컴퓨터 네트워크 : a collection of computing devices connected in order to communicate and share resources connections between computing devices can be physical using wires or cables or wireless using radio waves or infrared signals * Node : Any device on a network, 네트워크에 접속된 장치 * Data transfer..
-
04 Logic Gates(컴퓨터와 전자공학의 연관)컴퓨터/개념 2019. 11. 4. 22:25
[논리식 & 전자회로] * 컴퓨터와 전자회로들이 어떻게 관련되어 있는가 - gate : A device that performs a basic operation on electrical signals 논리 게이트 - 논리 회로를 만들 때 사용하는 가장 작은 단위 gates are implemented using transistors 전기 신호를 걸면 연산하고 결과를 출력한다. 컴퓨터 안에서 어떤 방식으로 비트를 만들어낸다. 입력 비트 2개를 조사해서 세 번째 비트를 생성한다. - Six types of gates NOT, AND, OR, XOR, NAND, NOR(의외로 많이 쓴다) - NOT Gate negation, inverter, 논리 부정 A NOT gate accepts one input si..
-
메모리를 관리하는 방법컴퓨터/개념 2019. 11. 1. 17:49
- Memory 단위 크기 : 1byte(=8bits) -> ASCII코드 기준 영문 '한 글자' 저장 공간과 동일하다 고유 번호 : 주소 메모리에 정보(자료)를 저장한다. 정보를 읽어내서 전달, 이후 연산하고 다시 저장. 정보가 어디에 저장되어 있는가, 혹은 저장할 것인가 - 32bit platform 2^32 = 4G, 메모리는 최대 4GB밖에 쓰지 못한다. 관리할 수 있는 메모리의 크기가 제한된다. - 1byte === 8bits 1024(2^10)byte === 1KB 1024KB === 1MB 1024MB === 1GB 1024GB === 1TB 1PB(페타 바이트) -> 1EB(엑사 바이트) -> 1ZB(제타 바이트) -> 1YB(요타 바이트) 64bit -> 16EB까지 처리 가능 - com..
-
컴퓨터 구조컴퓨터/개념 2019. 11. 1. 09:18
- 컴퓨터의 핵심 : CPU + RAM + HDD/SSD(CPU, RAM은 컴퓨터이고 HDD/SSD는 주변기기라고 한다) - 컴퓨터 메모리 : RAM(주기억장치), HDD/SSD(보조기억장치) 정보(information) 혹은 자료(data)를 저장할 수 있는 곳 C언어는 CPU 안 몇 가지를 다루고 논리적 memory, virtual memory(ram이냐 hdd/ssd구분하지 않아)라고 다룬다. 변수, 동적 할당/해제 -> RAM 관리 보조기억장치는 File System이라는 시스템을 통해 관리된다. File I/O를 통해 File system을 많이 관리한다. - CPU는 연산장치 다른 말로 Machine(기계)이라고 한다. 소프트웨어는 Virtual Machine이라고 한다. 기계를 작동시키는 명..
-
width N height of elements컴퓨터/HTML & CSS 2019. 10. 22. 08:55
width height min-width max-width min-height max-height ** 그림 자료가 어느 블로그 캡쳐한건데 기억이 나지않는다 1. HTMLElement.offsetWidth, HTMLElement.offsetHeight read-only property that returned the layout width of an element as a integer. - transform이 없다면 Element.getBoundingClientRect()과 비슷 - total amount of space an element occupies, including the width of the visible content, scrollbars (if any), padding, and bor..