목록전체 글 (155)
사자자리

https://www.acmicpc.net/problem/10871 10871번: X보다 작은 수 첫째 줄에 N과 X가 주어진다. (1 ≤ N, X ≤ 10,000) 둘째 줄에 수열 A를 이루는 정수 N개가 주어진다. 주어지는 정수는 모두 1보다 크거나 같고, 10,000보다 작거나 같은 정수이다. www.acmicpc.net #include using namespace std; int main() { int n, x, num; cin >> n >> x; for (int i = 0; i > num; if (num < x) cout

https://www.acmicpc.net/problem/2739 2739번: 구구단 N을 입력받은 뒤, 구구단 N단을 출력하는 프로그램을 작성하시오. 출력 형식에 맞춰서 출력하면 된다. www.acmicpc.net #include using namespace std; int main() { int n; cin >> n; for (int i = 1; i < 10; i++) { cout
조건문 if #include using namespace std; int main() { int judge; for (int i = 0; i judge; if (judge == 1) cout
반복문 for #include using namespace std; int main() { for (int i = 0; i < 5; i++){ cout
목표: Create 컨텐츠에 내용을 작성하고 Submit 버튼을 누르면, 어떤 이벤트가 발생해서 App 컴포넌트의 contents 항목 배열 끝에 작성한 내용이 추가된다. //App.js import React, {Component} from 'react'; import TOC from "./components/TOC"; import ReadContent from "./components/ReadContent"; import CreateContent from "./components/CreateContent"; import UpdateContent from "./components/UpdateContent"; import Subject from "./components/Subject"; import Co..

배열: push와 concat arr.push() - arr을 바꾼다. arr.concat() - arr을 바꾸지 않는다. - arr을 변경한 새로운 배열이 return된다. push 대신 concat을 권장하는 이유 컴포넌트의 render 호출을 control하기 1. TOC 컴포넌트의 역할은 글 목록이다. TOC 컴포넌트가 화면에 표시되기 위해 필요한 데이터는 contents 배열이다. contents:[ {id:1, title:'HTML', desc:"HTML is for information"}, {id:2, title:'CSS', desc:"CSS is for design"}, {id:3, title:'JS', desc:"JS is for interfactive"} ] 2. 위의 contents..
목표: create를 클릭하면 App 컴포넌트의 mode가 create가 되고, 그에 따라서 기존에 있었던 컨텐츠를 표시하는 부분이 수정을 위한 인터페이스를 가지고 있는 Create 컨텐츠로 바뀐다. //App.js import React, {Component} from 'react'; import TOC from "./components/TOC"; import ReadContent from "./components/ReadContent"; import CreateContent from "./components/CreateContent"; import Subject from "./components/Subject"; import Control from "./components/Control"; impor..

SQL(Structured Query Language) - Structured: 관계형 데이터베이스가 기본적으로 표 형식으로 정보를 정리정돈, 즉 구조화하는 것을 뜻한다. - Query: 데이터베이스에게 데이터를 넣어줘, 읽어줘, 수정해줘 등, 질의하는 것을 뜻한다. - 관계형 데이터베이스에 속하는 제품들이 데이터베이스 서버를 제어할 때 공통적으로 사용하는, 표준화까지 된 언어 MariaDB Database 다운로드 - MySQL이 오라클에 인수되면서 라이센스 호환을 위해 기존 MySQL 개발자가 제작한, MySQL과 동일한 관계형 DBMS 1. https://bitnami.com/stack/wamp/installer Install WAMP, Download WAMP show MD5 2e044343a83..