About: Line number     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : yago:PsychologicalFeature100023100, within Data Space : dbpedia.org associated with source document(s)
QRcode icon
http://dbpedia.org/describe/?url=http%3A%2F%2Fdbpedia.org%2Fresource%2FLine_number

In computing, a line number is a method used to specify a particular sequence of characters in a text file. The most common method of assigning numbers to lines is to assign every line a unique number, starting at 1 for the first line, and incrementing by 1 for each successive line. In the C programming language the line number of a source code line is one greater than the number of new-line characters read or introduced up to that point.

AttributesValues
rdf:type
rdfs:label
  • Line number (en)
  • 行番号 (ja)
  • 줄 번호 (ko)
  • 行號 (程式語言) (zh)
rdfs:comment
  • 줄 번호 또는 행 번호, 라인 넘버(line number)는 컴퓨팅에서 텍스트 파일 내의 일련의 특정 문자들을 가리키는데 사용되는 방식이다. 줄에 번호를 할당하는 가장 일반적인 방식은 모든 줄을 고유 번호로 할당하는 것인데, 첫 줄은 1로 시작하고 이어지는 줄마다 1씩 증가시키는 것이다. 줄 번호는 GW-BASIC과 같은 일부 오래된 프로그래밍 언어에서 필수적인 문법 요소였다. 이에 대한 주된 이유는 당시 대부분의 운영 체제에 상호작용적인 문서 편집기가 부족했기 때문이다. 즉, 프로그래머의 인터페이스가 라인 에디터에 국한되는 것이 보통이었으므로 줄 번호는 소스 코드의 어느 줄이 편집을 위해 참조되는지, 또 프로그래머가 특정 지점에 새 줄을 추가하는 것에 대한 매커니즘을 제공하였다. 현대의 운영 체제에서 상호작용적인 문서 편집이 널리 보편화됨에 따라 줄 번호는 대부분의 프로그래밍 언어의 기능은 아니다. (ko)
  • 行號是程式語言中的一個用語,是用來識別文本文件各行的數字。最常見的作法是在各行指定不重複的數字,第一行數字為1,後續各行依序加一。 C語言中源代码的行號定義成從檔案開始到指定位置之間,所讀到換行符號的個數再加一。 在一些古老的程式語言(如GW-BASIC)中,行號是程式語法中必需的一部份。 主要原因是當時的作業系統缺乏交互式的文字編輯器,程式編輯器的界面往往只有行编辑器。指定行號可以使編輯器知道要編輯哪一行,也可以在原代碼的特定位置中插入一行。行號也可以將程式實際需要執行的先後順序和輸入程式時的順序區隔開來。 現在的作業系統普遍都有交互式文字編輯器的功能,因此大部份的程式語言都已不需要行號。 (zh)
  • In computing, a line number is a method used to specify a particular sequence of characters in a text file. The most common method of assigning numbers to lines is to assign every line a unique number, starting at 1 for the first line, and incrementing by 1 for each successive line. In the C programming language the line number of a source code line is one greater than the number of new-line characters read or introduced up to that point. (en)
  • 行番号(ぎょうばんごう)とは、プログラミング言語で行頭に番号を打つことで命令文を区切る方式で、FORTRANや旧型のBASIC等に見られる。 10 A=220 B=330 PRINT A+B goto文などジャンプ系の命令文では、ラベルの代用にも使われる。本来FORTRANの行番号はラベルの用途であり、全ての行に番号を付ける必要は無かった。BASICは教育用途の言語であるため、命令が順次処理される様子を分かりやすく表現するようそのような形態になったものと思われる。この特徴は「BASIC最大の設計ミス」と批判されることが多く、Visual Basicなどでは姿を消している。 40 goto 10 BASICでは命令文を打ち込んで改行すると適度な数字間隔(主に10刻み)で自動に行番号を打ち込む仕様(自動的な行番号の採番はAUTO命令によって制御できる処理系もある)になっているため、行間に命令文を追加する場合には、手動でその間の行番号を打ち込む(10と20の間で15、など)。 また、スクリーンエディタ機能が未発達だった初期のコンピュータのBASICなどは行番号を指定してプログラム内容の表示、編集を行うラインエディタ指向での範囲指定という性格もある。そのためにLIST(指定した行番号の範囲のリストを表示する)、RENUM(行番号を一定間隔で振りなおす)といった命令も存在している。 (ja)
dcterms:subject
Wikipage page ID
Wikipage revision ID
Link from a Wikipage to another Wikipage
sameAs
dbp:wikiPageUsesTemplate
has abstract
  • In computing, a line number is a method used to specify a particular sequence of characters in a text file. The most common method of assigning numbers to lines is to assign every line a unique number, starting at 1 for the first line, and incrementing by 1 for each successive line. In the C programming language the line number of a source code line is one greater than the number of new-line characters read or introduced up to that point. Programmers could also assign line numbers to statements in older programming languages, such as Fortran, JOSS, and BASIC. In Fortran, not every statement needed a line number, and line numbers did not have to be in sequential order. The purpose of line numbers was for branching and for reference by formatting statements. Both JOSS and BASIC made line numbers a required element of syntax. The primary reason for this is that most operating systems at the time lacked interactive text editors; since the programmer's interface was usually limited to a line editor, line numbers provided a mechanism by which specific lines in the source code could be referenced for editing, and by which the programmer could insert a new line at a specific point. Line numbers also provided a convenient means of distinguishing between code to be entered into the program and direct mode commands to be executed immediately when entered by the user (which do not have line numbers). Largely due to the prevalence of interactive text editing in modern operating systems, line numbers are not a feature of most programming languages, even modern Fortran and Basic. (en)
  • 行番号(ぎょうばんごう)とは、プログラミング言語で行頭に番号を打つことで命令文を区切る方式で、FORTRANや旧型のBASIC等に見られる。 10 A=220 B=330 PRINT A+B goto文などジャンプ系の命令文では、ラベルの代用にも使われる。本来FORTRANの行番号はラベルの用途であり、全ての行に番号を付ける必要は無かった。BASICは教育用途の言語であるため、命令が順次処理される様子を分かりやすく表現するようそのような形態になったものと思われる。この特徴は「BASIC最大の設計ミス」と批判されることが多く、Visual Basicなどでは姿を消している。 40 goto 10 BASICでは命令文を打ち込んで改行すると適度な数字間隔(主に10刻み)で自動に行番号を打ち込む仕様(自動的な行番号の採番はAUTO命令によって制御できる処理系もある)になっているため、行間に命令文を追加する場合には、手動でその間の行番号を打ち込む(10と20の間で15、など)。 また、スクリーンエディタ機能が未発達だった初期のコンピュータのBASICなどは行番号を指定してプログラム内容の表示、編集を行うラインエディタ指向での範囲指定という性格もある。そのためにLIST(指定した行番号の範囲のリストを表示する)、RENUM(行番号を一定間隔で振りなおす)といった命令も存在している。 たとえば、行番号に依存したBASIC処理系で、上記プログラムの行番号20のB=3をB=4と編集する場合には以下のように作業する。 1. * LIST 20 と入力して、行番号20の内容を表示させる 2. * その下の行に20 B=3という現在のその行の内容が表示される 3. * カーソルを移動させ、3を4に編集する 4. * エンターキーを押下する。これにより、メモリ内の行番号20の内容が置き換わる。 今日では、スクリーンエディタが発達しているため、最近の言語処理系ではこのような作業のために行番号が使われることはなくなった。 (ja)
  • 줄 번호 또는 행 번호, 라인 넘버(line number)는 컴퓨팅에서 텍스트 파일 내의 일련의 특정 문자들을 가리키는데 사용되는 방식이다. 줄에 번호를 할당하는 가장 일반적인 방식은 모든 줄을 고유 번호로 할당하는 것인데, 첫 줄은 1로 시작하고 이어지는 줄마다 1씩 증가시키는 것이다. 줄 번호는 GW-BASIC과 같은 일부 오래된 프로그래밍 언어에서 필수적인 문법 요소였다. 이에 대한 주된 이유는 당시 대부분의 운영 체제에 상호작용적인 문서 편집기가 부족했기 때문이다. 즉, 프로그래머의 인터페이스가 라인 에디터에 국한되는 것이 보통이었으므로 줄 번호는 소스 코드의 어느 줄이 편집을 위해 참조되는지, 또 프로그래머가 특정 지점에 새 줄을 추가하는 것에 대한 매커니즘을 제공하였다. 현대의 운영 체제에서 상호작용적인 문서 편집이 널리 보편화됨에 따라 줄 번호는 대부분의 프로그래밍 언어의 기능은 아니다. (ko)
  • 行號是程式語言中的一個用語,是用來識別文本文件各行的數字。最常見的作法是在各行指定不重複的數字,第一行數字為1,後續各行依序加一。 C語言中源代码的行號定義成從檔案開始到指定位置之間,所讀到換行符號的個數再加一。 在一些古老的程式語言(如GW-BASIC)中,行號是程式語法中必需的一部份。 主要原因是當時的作業系統缺乏交互式的文字編輯器,程式編輯器的界面往往只有行编辑器。指定行號可以使編輯器知道要編輯哪一行,也可以在原代碼的特定位置中插入一行。行號也可以將程式實際需要執行的先後順序和輸入程式時的順序區隔開來。 現在的作業系統普遍都有交互式文字編輯器的功能,因此大部份的程式語言都已不需要行號。 (zh)
gold:hypernym
prov:wasDerivedFrom
Faceted Search & Find service v1.17_git139 as of Feb 29 2024


Alternative Linked Data Documents: ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3330 as of Mar 19 2024, on Linux (x86_64-generic-linux-glibc212), Single-Server Edition (61 GB total memory, 49 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software