Skip to content
created by Aha00aAha00a at 2008-09-19
last modified by Aha00aAha00a at 2008-11-06
revision: 14

C++

  • Multi-paradigm ProgrammingLanguage

1. "Hello, world" Application

Error: source:/HelloWorld/hello.cpp

2. Libraries

4. Counting

From Accelerated C++

// 1
for(int i=0; i < size; ++i) { }

// 2
for(int i=1; i <= size; ++i) { }
  • 둘 다 size만큼 반복
  • 구간
    • 1: [0, size) - 비대칭형
    • 2: 1, size - 대칭형
  • 비대칭형 범위가 대칭형 범위보다 더 사용하기 쉬움
    • 1: [m, n): n-m 개의 요소
    • 2: m, n: n-m+1 개의 요소
  • 빈 범위에 대한 비교
    • 1: [n, n)
    • 2: n, n-1
      • 범위의 끝이 시작보다 더 작을 수 있다는 가능성은 프로그램 설계시에 끝이 정의되지 않아버리는 문제를 야기할 수 있음

5. See Also

5.2. Similar Pages

Similar pages by cosine similarity. Words after page name are term frequency.

5.3. Adjacent Pages

Control
≤ 32
all
1.0x
1.0x
80
-120
ON
Metrics
Nodes(visible/total)0/0
Links(visible/total)0/0
Avg degree0.00
Depth coverage0
Queue(fetch/graph)0 / 0
Zoom(scale)1.00x
Ctrl/⌘ + Scroll: Zoom
Root 1-hop 2-hop+