"주석"의 두 판 사이의 차이

 
(사용자 4명의 중간 판 32개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{다른뜻|Tin}}
{{다른뜻|주석(comment)|주석}}
{{다른뜻|주석(tin)}}
{{다른뜻|주석 (관직)}}
==개요==
==개요==
;comment
;[[comment]], [[annotation]]
;주석, 코멘트
;주석, [[코멘트]], [[어노테이션]], [[애너테이션]]<ref>[ӕnətéiʃən]</ref>
* [[소스코드]] 중 사람이 임의로 기술한 내용
* [[소스코드]] 중 사람이 임의로 기술한 내용
* 사람이 알기 쉽게 첨가한 설명내용
* 사람이 알기 쉽게 첨가한 설명내용
8번째 줄: 10번째 줄:


==Java 예시==
==Java 예시==
<source lang='java'>
<syntaxhighlight lang='java'>
  /**
  /**
   * Registers the text to display in a tool tip.  The text  
   * Registers the text to display in a tool tip.  The text  
17번째 줄: 19번째 줄:
   */
   */
  public void setToolTipText(String text) {
  public void setToolTipText(String text) {
</source>
</syntaxhighlight>
 
==형식상 주석==
*드문 경우이지만, 컴파일/런타임시 의미 있는 경우도 있다.<ref>이런 경우, 형식은 주석이지만, 실제로는 기능이 있는 것이므로 주석은 아니다.</ref>
*예: Python 2에서 소스코드의 encoding
<syntaxhighlight lang='python'>
# -*- coding: utf-8 -*-
</syntaxhighlight>
 
==언어별 주석==
{{z컬럼3|
* [[C++ 주석]]
* [[Perl 주석]]
* [[Python 주석]]
* [[PHP 주석]]
* [[R 주석]]
}}


==같이 보기==
==같이 보기==
*[[소스코드]]
{{z컬럼3|
* [[소스코드]]
* [[Comment]]
* [[Python 한글 사용]]
* [[DB 주석]]
* [[좋은 주석]]
* [[Java 주석 가이드]]
* [[Bash 주석 가이드]]
* [[주석 태그]]
}}


==참고 자료==
==참고==
*https://en.wikipedia.org/wiki/Comment_(computer_programming)
* {{위키백과|주석 (프로그래밍)}}
* {{영어 위키백과|Comment_(computer_programming)}}
*http://terms.naver.com/entry.nhn?docId=1608059&cid=2959&categoryId=2959
*http://terms.naver.com/entry.nhn?docId=1608059&cid=2959&categoryId=2959


[[분류: 프로그래밍]]
[[분류: 프로그래밍]]
[[분류: 주석]]

2023년 1월 28일 (토) 14:59 기준 최신판

  다른 뜻에 대해서는 주석(comment) 문서를 참조하십시오.
  다른 뜻에 대해서는 주석(tin) 문서를 참조하십시오.
  다른 뜻에 대해서는 주석 (관직) 문서를 참조하십시오.

1 개요[ | ]

comment, annotation
주석, 코멘트, 어노테이션, 애너테이션[1]
  • 소스코드 중 사람이 임의로 기술한 내용
  • 사람이 알기 쉽게 첨가한 설명내용
  • 처리시에는 무시되므로 자유롭게 글 작성 가능

2 Java 예시[ | ]

 /**
  * Registers the text to display in a tool tip.   The text 
  * displays when the cursor lingers over the component.
  *
  * @param text  the string to display.  If the text is null, 
  *              the tool tip is turned off for this component.
  */
 public void setToolTipText(String text) {

3 형식상 주석[ | ]

  • 드문 경우이지만, 컴파일/런타임시 의미 있는 경우도 있다.[2]
  • 예: Python 2에서 소스코드의 encoding
# -*- coding: utf-8 -*-

4 언어별 주석[ | ]

5 같이 보기[ | ]

6 참고[ | ]

  1. [ӕnətéiʃən]
  2. 이런 경우, 형식은 주석이지만, 실제로는 기능이 있는 것이므로 주석은 아니다.
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}