JP6347023B1 - Recording medium with code automatic description 2 software recorded - Google Patents
Recording medium with code automatic description 2 software recorded Download PDFInfo
- Publication number
- JP6347023B1 JP6347023B1 JP2018042546A JP2018042546A JP6347023B1 JP 6347023 B1 JP6347023 B1 JP 6347023B1 JP 2018042546 A JP2018042546 A JP 2018042546A JP 2018042546 A JP2018042546 A JP 2018042546A JP 6347023 B1 JP6347023 B1 JP 6347023B1
- Authority
- JP
- Japan
- Prior art keywords
- variable
- array
- assigned
- processing
- character string
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
【課題】
コンピューターで分岐処理の数が多数ある場合に、人為的な入力作業等でコピーペーストして記述すると1つ分の分岐毎に違う部分を書き換えなければならないと言う非常に手間暇がかかる作業があった。コンパイラ付属のエディターを使用すると使用禁止文字があり、後で使用禁止文字を書き加えると言う手間が必要だった。コンパイラ付属のエディターを使用しても全く記述させる事が出来ない変数や配列による組合せによる分岐処理があると言う問題があった。
【解決手段】
複数個の変数や複数個の配列に代入された数値の組合せによる分岐処理を行うプログラムを人為的にプログラム言語で記述させて、記述させた1ブロック分の分岐処理のプログラムを基に組合せ数分のブロック数分の分岐処理のプログラムを自動で記述させるソフトウェアを開した。
【選択図】 図1
【Task】
When there are a lot of branch processes on a computer, there is a very time-consuming task of having to rewrite a different part for each branch when copied and pasted by manual input. It was. When using the editor that came with the compiler, there were prohibited characters, and it was necessary to add the prohibited characters later. There was a problem that there was a branching process with combinations of variables and arrays that could not be described at all using the editor attached to the compiler.
[Solution]
A program that performs a branch process using a combination of numerical values assigned to a plurality of variables or arrays is artificially described in a program language, and the number of combinations is based on the branch process program for one block. Software that automatically describes branching programs for the number of blocks was opened.
[Selection] Figure 1
Description
本発明は、コンピューターで大量の分岐処理を行うプログラムを自動で記述する技術に関する The present invention relates to a technique for automatically describing a program for performing a large amount of branch processing on a computer.
コンピューターで大量の分岐処理を行うプログラムを自動で記述する技術に関する文献は存在しない。圧縮技術に関する文献としては、〔非特許文献1〕がある。
〔非特許文献1〕は、ZIP形式の圧縮技術とLZH形式の圧縮技術を説明した文献である。それとともに、今日までに開発された圧縮技術を紹介している文献である。
以下に、「生成」と、「算出」と、「処理」は、同じ意味として使用する。また、関数とは、ある処理を行う処理工程の事を言い、ソフトウェアと同じ意味で使用する。また、ハッシュ関数とは、分類しようとするデーターを基にその分類しようとするデーターを代表する数値を生成する為の処理工程の事を言う事とする。また、このハッシュ関数から算出された数値の事をハッシュ値と呼んだり、符号と呼んだりする。また、分類しようとするデーターの事を分類対象データーと呼んだりする。また、分類しようとする文字列の事を分類対象文字列と呼んだりする。また、検索したい文字列の事を検索文字列と呼んだりする。また、データーベースに記録されている文字列やデーターの事を検索対象文字列と呼んだり、検索対象データーと呼んだりする。変数の名前の事を変数名と呼んだり、配列の名前の事を配列名と呼んだりする。
本発明のコード自動記述2ソフトウェアを記録した記録媒体の事をコード自動記述2ソフトウェアと略して呼ぶ事がある。
ハッシュ関数の事を簡単に言い換えると、ハッシュ関数とは、ハッシュ値を生成するソフトウェアの事であると言える。
この〔非特許文献1〕の文献では、113ページから114ページに、データーを基にハッシュ関数を使用してハッシュ値を生成して、生成したハッシュ値でデーターを分類して保存する事で検索処理を高速化する方法を簡単に説明している。
[Non-Patent Document 1] is a document describing a ZIP format compression technique and an LZH format compression technique. Along with that, it is a document that introduces the compression technology developed to date.
Hereinafter, “generation”, “calculation”, and “processing” are used interchangeably. A function means a process step for performing a certain process, and is used in the same meaning as software. The hash function is a processing step for generating a numerical value representing the data to be classified based on the data to be classified. A numerical value calculated from the hash function is called a hash value or a code. The data to be classified is called classification target data. A character string to be classified is called a classification target character string. A character string to be searched is called a search character string. In addition, the character strings and data recorded in the database are referred to as search target character strings or search target data. A variable name is called a variable name, and an array name is called an array name.
The recording medium on which the
In other words, a hash function is software that generates a hash value.
In this [Non-Patent Document 1] document, from page 113 to page 114, a hash value is generated using a hash function based on the data, and the data is classified and stored by the generated hash value. A method for speeding up the processing is briefly described.
〔非特許文献1〕は、242ページから246ページに、ハッシュ関数を使用して生成したハッシュ値とは違う処理として特殊な処理が記述されている。記述されている特殊な処理の内容を「」内に記述する。「最初のValの計算はハッシュ関数の代わりでもあるのですが、ハッシュ関数とは違い最初の2文字を混ぜません。ですので、文字'AB'で始まるリンクリストには、'AB'で始まる文字列しか登録されないようになっています。この文字数を増やせばサーチ処理は早くなるのですが、その分テーブルの初期化処理や辞書のスライド処理に時間がかかるようになります。このあたりのバランスは実際に動かして時間を測ることで決定しました。」と記述している。最初の二文字を混ぜずに、そのままの状態の二文字で分類する方法を書いているように読み取れる。しかし、隠していて何を記述しているのかが良く理解できない説明である。「Val」についても何も記述されていないのでどんな計算式なのかが全く解らない説明である。 [Non-Patent Document 1] describes, on pages 242 to 246, special processing as processing different from a hash value generated using a hash function. Describe the contents of the special processing described in "". “The first Val calculation is also an alternative to the hash function, but unlike the hash function, the first two characters are not mixed. So, a linked list that starts with the letters 'AB' starts with 'AB'. Only the character string is registered.If this number of characters is increased, the search process will be faster, but it will take time to initialize the table and slide the dictionary accordingly. Was decided by actually moving and measuring the time. " It can be read as if writing a method of classifying the two letters as they are without mixing the first two letters. However, it is an explanation that is difficult to understand what is hidden and described. Since nothing is described for “Val”, it is an explanation that does not understand at all what kind of calculation formula it is.
〔非特許文献1〕の242ページから246ページに記述されている「ハッシュ関数とは違い最初の2文字を混ぜません。」と言う意味は、分類対象文字列の先頭二文字分が一致するデーターを分類したと言うものだと考えられる。分類対象文字列の先頭二文字として文字'AB'で始まる文字列の'AB'と言う二文字分は、ASCII文字コードだと2byteとなる。ハッシュ関数は、全ての文字列を混ぜて代表値を算出するものだと言う表現で説明しているものだと考えられる。「混ぜる」と言うあいまいな表現で説明している事について鑑みるに、殆どの部分で、この様な表現でこの書籍では説明していると考えられるので、以下に、文章の表現を解釈すると、ハッシュ関数とは違う数値による分類方法として記述しているものであるから、分類対象文字列の先頭から、二文字分が一致するデーターを分類するという分類方法であると解釈できる説明文であると思う。
〔非特許文献1〕の242ページから246ページのハッシュ関数を使用して生成したハッシュ値とは違う処理として特殊な処理が記述されている。この特殊な処理は、分類対象文字列の先頭から二文字分が一致するデーターを分類すると言う方法の様であるが、全く、符号を生成しないで分類する方法だと考えられる。また、分類対象文字列の先頭から二文字分が一致するデーターを分類すると言う方法の場合は、2byte分の文字コードが一致するデーターを分類する方法と言い換える事が出来ると思われる。
The meaning of “Do not mix the first two characters unlike the hash function” described on pages 242 to 246 of [Non-Patent Document 1] matches the first two characters of the classification target character string. It is considered that the data is classified. As for the first two characters of the character string to be classified, the two characters “AB” in the character string starting with the character “AB” are 2 bytes in the ASCII character code. The hash function is considered to be described as an expression that calculates the representative value by mixing all character strings. Considering the fact that it is explained by the ambiguous expression “mixing”, it is considered that this book is explained in this book with this kind of expression for the most part. Since it is described as a classification method by numerical values different from the hash function, it is an explanatory text that can be interpreted as a classification method that classifies data that matches two characters from the beginning of the character string to be classified think.
A special process is described as a process different from the hash value generated using the hash function of pages 242 to 246 of [Non-Patent Document 1]. This special processing is like a method of classifying data that matches two characters from the beginning of the character string to be classified, but it is considered to be a method of classifying without generating a code at all. In addition, the method of classifying data that matches two characters from the beginning of the character string to be classified can be rephrased as a method of classifying data that matches the character code of 2 bytes.
〔非特許文献1〕には、分類するデーターを基にハッシュ関数を使用してハッシュ値を算出して、算出したハッシュ値でデーターを分類する方法と、文字または、文字コードで分類すると言う特殊な方法について記述している。ハッシュ値を使用しても、文字または、文字コードで分類すると言う特殊な方法で分類しても、分類数が多くなる事が予想されるし、分類数が多くなればなる程、検索処理が速くなる。その為、より多くの分類数で分類対象データーを分類した方が良い事になる。より多くの分類数で分類対象データーを分類した方が良い事になると言う事は、〔非特許文献1〕の113ページから114ページに、記述しています。しかし、分類する場合に必要になる分岐処理のプログラムの記述技術に関しては、一切書かれていない。また、分類する場合に必要になる分岐処理のプログラムが分類数を増やせば増やすだけ人為的な入力処理で記述しなければならない部分が増えると言う人為的な入力処理が多くなり大変な作業になるのであるが、〔非特許文献1〕には、分岐処理のプログラムを人為的な入力処理によらずにコンピューターとソフトウェアによって自動的に記述処理するソフトウェアに関する記述はない。 [Non-Patent Document 1] includes a method of calculating a hash value using a hash function based on data to be classified, and classifying the data by the calculated hash value, and a special method of classifying by character or character code. Is described. Whether the hash value is used or the character or character code is used for special classification, the number of classifications is expected to increase, and the higher the number of classifications, the more search processing is performed. Get faster. Therefore, it is better to classify the classification target data with a larger number of classifications. It is described on pages 113 to 114 of [Non-patent Document 1] that it is better to classify the classification target data with a larger number of classifications. However, there is no description about the description technology of the branch processing program required for classification. In addition, if the branch processing program required for classification increases the number of classifications, as much as the number of classifications increases, the number of parts that must be described by artificial input processing increases, which increases the amount of artificial input processing, which is a difficult task. However, [Non-Patent Document 1] does not include a description about software that automatically describes a branch processing program by a computer and software without using artificial input processing.
コンピューターで普通に使われているテキスト文字(日本国では、文字コード二文字以上で一文字を表す文字と文字コード一文字で表す半角英数字の文字の事)を、テキスト文字または、文字と略して記述する事とする。また、テキスト文字とリンクされている数値を文字コードと言う事がある。文字コードは、人間が読む事が出来ない機械語で、0〜255までの数値である。また、一般的に使用されているASCII文字と言う規格がある。ASCII文字は、文字コード一文字で表す半角英数字の文字の事である。ASCII文字は、ASCIIコードと呼ばれる文字コードとリンクされている。ASCIIコードの文字コードは、0〜255までの数値である。日本国で一般的に使用されているテキスト文字の文字コード一文字で表す半角英数字の文字と文字コードは、ASCII文字であり、その文字コードは、ASCIIコードである。 Text characters that are commonly used on computers (in Japan, two or more character codes that represent one character and one-byte alphanumeric characters that represent one character code) are abbreviated as text characters or characters. I will do it. A numerical value linked to a text character is sometimes called a character code. The character code is a machine language that cannot be read by humans, and is a numerical value from 0 to 255. There is also a standard called ASCII characters that are commonly used. ASCII characters are alphanumeric characters that are represented by a single character code. ASCII characters are linked to character codes called ASCII codes. The character code of ASCII code is a numerical value from 0 to 255. A single-byte alphanumeric character and character code represented by one character code of a text character generally used in Japan is an ASCII character, and the character code is an ASCII code.
1byteとは、一文字分のbit数の事を言う。また、現在の一文字分のbit数は、8bitである。従って、1byteは、8bitである。bitとは、2進数で数値を表した時の2進数の桁数の事である。また、コンピューターで普通に使われている機械語を機械語と略して記述する事とする。コンピューターで普通に使われている機械語とは、コンピューターに搭載されているCPUと呼ばれる中央演算処理装置が処理を予定している命令文の事を言う。文字コードは、人間が読む事が出来ない0〜255までの数値で機械語である。〔実施例〕で1byteと記述している場合、1byteが何bitなのかを記述していない限り、1byteは、8bitである。 1 byte means the number of bits for one character. The current number of bits for one character is 8 bits. Therefore, 1 byte is 8 bits. A bit is the number of binary digits when a numerical value is expressed in binary. In addition, the machine language normally used in computers is abbreviated as machine language. Machine language commonly used in computers refers to statements that are scheduled to be processed by a central processing unit called a CPU installed in computers. The character code is a machine language with a numerical value from 0 to 255 that cannot be read by humans. When 1 byte is described in [Embodiment], 1 byte is 8 bits unless 1 byte is described.
コンピューターで普通に使われているテキスト文字にリンクしている文字コードの規格は、多種多様である。7bitを1byteとして文字コードを規定している規格もある。文字コードの前にどんな文字コードなのかを識別させる為に1byteから数byteの識別記号を挿入する文字コードの規格もある。 There are many different character code standards linked to text characters commonly used on computers. There is also a standard that stipulates character codes with 7 bits as 1 byte. There is also a standard for character codes in which an identification symbol of 1 to several bytes is inserted in order to identify what character code is before the character code.
ASCIIコードには、制御コードと呼ばれる文字コードがある。文字列の最後に使用されるASCIIコードの制御コードと呼ばれる文字コードがある。日本語の「。」に相当するキャリッジリターンと言う文字である。キャリッジリターンの文字コードの数値は、「13」である。また、ASCIIコードの制御コードと呼ばれる文字コードには、ラインフィードと言う文字がある。改行する為のコードである。ラインフィードの文字コードの数値は、「10」である。 ASCII codes include character codes called control codes. There is a character code called the control code of the ASCII code used at the end of the character string. It is a character called carriage return corresponding to Japanese “.”. The numerical value of the character code of the carriage return is “13”. In addition, a character code called an ASCII code control code includes a character called a line feed. This is a code for a line break. The numerical value of the character code of the line feed is “10”.
プログラム言語とは、コンピューターが読み込んでCPUが理解できる命令を人間が読み書きが出来る様に簡略化された文字列の事を言う。プログラム言語でコンピューターに行わせる処理を書かれたものをプログラムと言う。本文献では、プログラムの事をプログラムコードと呼んだり、コードと略して呼んだりする事がある。
コンパイラとは、ソフトウェアを制作する為に作られたソフトウエアの事を言う事とする。コンパイラは、人間が読み書き出来る簡略化された文字列で書いたプログラムをコンピューターが読み込んで実行する事が出来る機械語に変換処理する事でソフトウェアを制作するソフトウェアである。
また、エディターとは、人間がプログラムを記述する時に使用するもので、人間がプログラム言語を使ってコンピューターの処理工程を記述する為のソフトウェアの事を言う事とする。
A programming language is a character string that is simplified so that humans can read and write instructions that the computer can read and understand by the CPU. A program is a program written in a program language that is executed by a computer. In this document, a program may be called a program code or abbreviated as a code.
A compiler is a piece of software created to produce software. A compiler is software that produces software by converting a program written in a simplified character string that can be read and written by humans into a machine language that can be read and executed by a computer.
An editor is used when a human writes a program, and means software for a human to describe a computer processing process using a programming language.
実施例では、Java(登録商標)と言われるプログラム言語で記述された処理のプログラムを記述するソフトウェアとして本発明のコード自動記述2ソフトウェアを記録した記録媒体を作成した。しかし、その他の処理のプログラムをプログラム言語で記述する事が出来る様に変更したとしても、本発明のコード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーである事を明言する。プログラムを図符号Gのブロック指定名テキストボックスに入力された文字列をブロック指定名と呼ぶ事とする。また、普通のエデイターとしての機能と、本発明のコード自動記述2ソフトウェアを記録した記録媒体の機能を併せ持つソフトウェアに変更しても、本発明の簡単なレパートリーである事を明言する。本発明のコード自動記述2ソフトウェアを記録した記録媒体でも、図符号Eのコード文の選択画面を「IF文やその他」に設定して、図符号Hのブロック数指定画面を1に設定して、図符号Jのコード記述テキストボックスに、プログラムを図符号Gのブロック指定名テキストボックスに入力された、ブロック指定名を使用しないで記述すれば、普通のプログラムを記述する事が出来るエディターとして使用できるソフトウェアなのである。本発明のコード自動記述2ソフトウェアに、ブロック指定名を指定しないと言う設定を付け加えれば、本発明のコード自動記述2ソフトウェアよりも使い勝手が良い便利なソフトウェアになると言う簡単なレパートリーであるから、本発明のコード自動記述2ソフトウェアを記録した記録媒体である事を明記する。
In the embodiment, a recording medium in which the code
実施例では、文字列操作関数と言う関数を使用して処理している。文字列操作関数とは、文字列の状態で処理する関数の事を言う。文字列操作関数は、プログラムを作成する為のソフトウェアのコンパイラに標準的に添付されている関数である。コンパイラに標準的に添付された関数であるから、常識的な処理である。常識的な処理に関しては、詳しい処理工程を記述しない。
文字列操作関数のスピリット関数は、例えば、「ああ言えば、@こう言う」と言う文字列全体を検査して「@」が含まれているかどうかを検査するとか、「@」の位置は、先頭から何文字目なのかを検査するとか、「@」で文字列を分割して「ああ言えば、」と、「こう言う」の二つに分割するなどの処理が出来る様になっている関数である。スピリット関数の様な文字列に対する処理を行う関数の事を文字列操作関数と言う。文字列操作関数のリプレース関数と言う特殊な関数がある。任意の文字列の中の任意の文字列を探し出して、指定した任意の文字列に置換すると言う処理を行う関数である。任意の文字列の中に、任意の文字列が複数個あっても、指定した任意の文字列に複数個、全て置換すると言う特殊な処理をする関数である。
In the embodiment, processing is performed using a function called a character string operation function. A character string manipulation function refers to a function that performs processing in a character string state. The character string manipulation function is a function that is standardly attached to a software compiler for creating a program. It is a common sense process because it is a function that comes standard with the compiler. Detailed processing steps are not described for common sense processing.
For example, the spirit function of the character string manipulation function is to check whether or not “@” is included by inspecting the entire character string “say this, say @,” or the position of “@” You can check the number of characters from the beginning, or divide the character string with “@” and divide it into two parts: “Tell me,” or “say this”. It is a function. A function that performs processing on a character string such as a spirit function is called a character string manipulation function. There is a special function called the replace function of the string manipulation function. This function performs a process of searching for an arbitrary character string in an arbitrary character string and replacing it with the specified arbitrary character string. This is a function that performs a special process of replacing all of a plurality of arbitrary character strings with a specified arbitrary character string even if there are a plurality of arbitrary character strings.
文字列操作関数で文字列の中に探したい文字列が有った場合に、探したい文字列の先頭の文字が何番目にあるかと言う答えを出させる処理を行わせる関数のインデックスオフ関数の説明を行う。
文字列の中に探したい文字列が有った場合は、探したい文字列の先頭の文字が先頭から何番目に有ると言う事を数値で答えを出す関数である。文字列の中に探したい文字が無い場合は、-1と言う数値を答えとして出す処理を行う関数である。文字列の中に探したい文字が無い場合は、-1と言う数値で答えを出す処理を行う様に作られているのは、この発明に使用したコンパイラに添付された文字列操作関数の仕様である。コンパイラに添付された文字列操作関数の仕様なので、文字列の中に探したい文字が無い場合に、-1という数値で答えを出さないコンパイラ付属の文字列操作関数もあるであろうと思われる。文字列の中に探したい文字が無い場合に、-1という数値で答えを出さないコンパイラ付属の文字列操作関数を使用した場合は、違う処理を行う事になる。
また、添付された文字列操作関数の使い勝手が良くないので、文字列操作関数を使用せずに、文字列の中から文字をサーチする処理工程を記述したとしても、本発明のレパートリーである事を明言する。本発明で使用していないコンパイラに付属された文字列操作関数を使用した為に、本発明の処理工程と違う処理工程になった場合でも、コンパイラ付属の文字列操作関数の仕様の問題なので、本発明の簡単なレパートリーであると明言する。また、本発明では、文字列操作関数を使用しているが、文字列操作関数と同じ処理に相当する処理を記述する事で文字列操作関数を使用しない処理に書き換えても、本発明のコード自動記述2ソフトウェアを記録した記録媒体である事を明言する。
文字列操作関数で文字列の中に探したい文字列が有った場合に、探したい文字列の先頭の文字が何番目にあるかと言う答えを出させる処理を行わせる関数のインデックスオフ関数の説明を終わる。
When there is a character string to be searched for in the character string manipulation function, the index off function of the function that performs the process of giving an answer indicating the number of the first character of the character string to be searched for Give an explanation.
When there is a character string to be searched for in the character string, this is a function that gives a numerical answer indicating that the first character of the character string to be searched is at the top. When there is no character you want to search for in the string, this is a function that performs the process of giving a numerical value of -1 as an answer. If there is no character to search for in the character string, the specification of the character string operation function attached to the compiler used in the present invention is made so that an answer is output with a numerical value of -1. It is. Since it is a specification of the character string manipulation function attached to the compiler, there seems to be a character string manipulation function attached to the compiler that does not give an answer with a numerical value of -1 when there is no character to search for in the character string. If there is no character you want to search for in the string, and you use the string manipulation function that comes with the compiler that does not give an answer with a value of -1, you will do a different process.
Also, since the attached character string manipulation function is not easy to use, even if a processing step for searching for a character from a character string is described without using the character string manipulation function, it is a repertoire of the present invention. Clearly state. Since the string manipulation function attached to the compiler not used in the present invention is used, even if the processing step is different from the processing step of the present invention, it is a problem of the specification of the string manipulation function attached to the compiler. It is stated that this is a simple repertoire of the present invention. Further, in the present invention, the character string manipulation function is used. However, even if the processing corresponding to the same processing as the character string manipulation function is described, the code of the present invention can be rewritten to the processing not using the character string manipulation function. It is stated that it is a recording medium on which
When there is a character string to be searched for in the character string manipulation function, the index off function of the function that performs the process of giving an answer indicating the number of the first character of the character string to be searched for End the explanation.
変数の型とは、変数を作成する場合に指定するものであり、作成する変数のデーターを代入する事ができる領域の全てに適用されるものである。前述の「領域の全てに適用されるものである」と言う意味は、変数のデーターを代入する事ができる領域に型の違うデーターを混在させる事が出来ないと言う意味である。人間が読む事が出来る文字列を代入する事ができる変数の型としてString型と言う型がある。人間が読む事が出来ない数値を代入する事が出来る型もある。
String型の変数ではない、人間が読む事が出来ない数値を代入する事が出来る変数を作成する場合は、「何bitの変数を作成する」または、「何byteの変数を作成する」と言う表現で変数を作成する事とする。8bitの変数を作成すると言う表現で説明している場合の意味は、8bitの人間が読む事が出来ない数値のデーターを代入する事ができる変数を作成すると言う事である。
以下に、「人間が読む事が出来ない数値」を「数値」と略して表現する場合がある。また、「人間が読む事が出来る数値」を「数値」と略して表現する事がある。どちらの場合でも「数値」と言う表現で表現しているので、表現があいまいであるが、プログラムでは、「人間が読む事が出来ない数値」と「人間が読む事が出来る数値」は、変換するだけの問題なので大きな問題ではない。
The variable type is specified when a variable is created, and is applied to all areas in which data of the created variable can be assigned. The above-mentioned meaning “applies to all areas” means that data of different types cannot be mixed in an area where variable data can be assigned. There is a type called String as a variable type that can be assigned a human-readable string. Some types allow you to assign numbers that humans cannot read.
When creating a variable that can be assigned a numerical value that is not a string type variable that humans cannot read, say "how many bits of variable" or "how many bytes of variable" A variable is created by expression. The meaning in the description of creating an 8-bit variable is to create a variable that can be substituted with numeric data that cannot be read by 8-bit humans.
Hereinafter, “a numerical value that cannot be read by humans” may be abbreviated as “numerical value”. “Numerical values that humans can read” are sometimes abbreviated as “numerical values”. In both cases, it is expressed by the expression “numerical value”, so the expression is ambiguous. It's not a big problem because it's just a problem.
変数を作成する場合、String型の場合は、「何bitのString型で変数を作成する」または、「何byteのString型で変数を作成する」と言う表現でString型の変数を作成する説明を行う事にする。
String型とは、文字列を代入する事ができる変数の型を意味するものである。言い換えるとString型とは、文字列型と言う言い方が出来るものである。String型で変数を作成して、作成したString型の変数に文字列や文字を代入すると自動的に文字コードと言う数値から、人間が読む事ができる文字に変換されて変数に代入されるものである。
When creating a variable, in the case of a String type, an explanation of creating a String type variable with the expression `` Create a variable with a String type of bits '' or `` Create a variable with a String type of bytes '' I will do it.
The String type means a variable type that can be assigned a character string. In other words, the String type can be called a string type. When you create a variable with String type and assign a character string or character to the created String type variable, it is automatically converted from a numerical value called character code to a human-readable character and assigned to the variable It is.
String型と同じものとしてテキスト形式と言う形式もある。テキスト形式とは、ファイルを開いたり保存したりする形式である。
テキスト形式も、String型と同じで、テキスト形式と指定すると、文字列や文字を自動的に文字コードと言う数値から、人間が読む事ができる文字に変換される形式である。テキスト形式を指定する場合は、「テキスト形式で」と言う文言を使用して、「指定して」を略して表現したりする。従って、「テキスト形式で何byteずつデーターをファイルに記録して保存する」または、「テキスト形式でファイルを開いて何byteずつデーターを読み込む」という表現で説明する事とする。
There is also a format called text format that is the same as the String type. The text format is a format for opening and saving a file.
The text format is the same as the String type. When the text format is specified, the character string or character is automatically converted from a numerical value called a character code to a human-readable character. When a text format is designated, the phrase “in text format” is used, and “designate” is abbreviated. Therefore, the description will be given by the expression “how many bytes of data are recorded and saved in a file in text format” or “how many bytes are read by opening a file in text format”.
バイナリー形式と言う形式もある。バイナリー形式とは、ファイルを開いたり保存したりする形式である。
バイナリー形式を指定すると、人間が読む事ができる文字から、自動的に文字コードと言う数値に変換される形式である。バイナリー形式を指定する場合は、「バイナリー形式で」と言う文言を使用して、「指定して」を略して表現したりする。従って、「バイナリー形式で、1byteずつデーターをファイルに保存する」または、「バイナリー形式でファイルを開いて、何byteずつデーターを読み込む」という表現で説明する事とする。
バイナリー形式の文字コードの状態の数値は、機械語である。この機械語をString型に代入すると人間が読める数値に変換される。例えば、アルファベットの「A」を例に説明する。アルファベットの「A」は、ASCIIコードの文字コードだと「41」である。アルファベットの「A」が記録されているファイルを「バイナリー形式でファイルを開いて、1byteずつデーターを読み込む」と、読み込まれたデーターは、「41」になる。読み込まれた「41」をString型に変換してString型の変数等に代入すると、「4」と「1」となる。「4」「1」は、説明の都合上「」で囲む事で一文字である事を表しているだけである。つまり、2byteの人間が読める数値として変数に代入されるものなである。
There is also a format called binary format. The binary format is a format for opening and saving files.
When a binary format is specified, a human-readable character is automatically converted into a numerical value called a character code. When specifying the binary format, the word “specify” is abbreviated using the word “in binary format”. Therefore, it will be described by the expression “save data in a file in binary format one byte at a time” or “open a file in binary format and read data in units of bytes”.
The numerical value of the character code state in the binary format is a machine language. Substituting this machine language into the String type converts it into a human-readable number. For example, the alphabet “A” will be described as an example. The letter “A” in the alphabet is “41” when the character code is ASCII code. When the file with the alphabet “A” is recorded “open the file in binary format and read the data one byte at a time”, the read data becomes “41”. When the read “41” is converted to a String type and assigned to a String type variable or the like, “4” and “1” are obtained. “4” and “1” only represent one character by enclosing them with “” for convenience of explanation. In other words, it is assigned to a variable as a 2-byte human-readable numerical value.
テキスト形式でファイルに記録して保存する場合は、人間が読める文字として保存される為に、1byteから数byteずつとなる。テキスト形式の場合は、文字コードで一文字分ずつと言う指定となる為に、2byteで有ったり、3byteで有ったり、4byteである場合もある為である。これは、実施例で使用しているコンピューターが使用している文字コードが半角英数字の場合は、1byteずつの規格で作られており、漢字や平仮名などを表す際の規格は、2byte分、3byte分、4byte分の数値で、漢字や平仮名や全角カタカナを一文字として表示するように規格されている為に、データー量をはっきりと記述できないのである。実施例で使用したコンパイラの場合は、自動的に最初の1byte目の文字コードで一文字分の文字コードが何byteなのかをコンピューターに判断させて一文字分の文字コード分に相当する1byteから数byteずつを保存する事になっている。予め、何と言う文字を扱うのかが解らない為、メモリー使用サイズを一定にして記述できないものなのである。しかし、実施例の説明では、1byteずつ保存するという表現で説明する事にする。
例えば、アルファベットの「A」を例に説明する。アルファベットの「A」は、ASCIIコードの文字コードだと「41」である。テスト変数と言う名称の変数に機械語の文字コードで1byteの「41」が代入されていると仮定する。テキスト形式でテスト変数のデーターをファイルに記録して保存すると、ファイルには、アルファベットの「A」として記録される。アルファベットの「A」がテキスト形式で記録されていファイルをテキスト形式でファイルを開くとアルファベットの「A」として読込まれる。アルファベットの「A」がテキスト形式で記録されていファイルをバイナリー形式でファイルを開くと「41」と読み込まれる。
When recording and saving to a file in text format, it is saved as human-readable characters, so it becomes 1 byte to several bytes. In the case of the text format, the character code is specified as one character at a time, so it may be 2 bytes, 3 bytes, or 4 bytes. If the character code used by the computer used in the embodiment is a single-byte alphanumeric character, it is made with a standard of 1 byte each, and the standard for representing kanji or hiragana is 2 bytes, Because it is standard to display kanji, hiragana and full-width katakana as a single character with a numerical value of 3 bytes or 4 bytes, the amount of data cannot be described clearly. In the case of the compiler used in the embodiment, the computer automatically determines how many bytes of the character code for one character is in the first 1-byte character code, and from 1 byte to several bytes corresponding to the character code for one character. It is supposed to save each one. Since it is not known in advance what the character is handled, it cannot be described with a fixed memory usage size. However, in the description of the embodiment, the description will be made in terms of storing one byte at a time.
For example, the alphabet “A” will be described as an example. The letter “A” in the alphabet is “41” when the character code is ASCII code. Assume that a variable of the name test variable is assigned a 1-byte “41” in machine language character code. When test variable data is recorded in a file and saved in text format, it is recorded in the file as an alphabetic "A". When the file with the alphabet “A” recorded in the text format is opened in the text format, it is read as the alphabet “A”. When the file with the alphabet "A" recorded in text format is opened in binary format, "41" is read.
配列とは、データーを1個から複数のデーターを代入する事が出来るものを言い、配列のサイズとは、配列に代入する事が出来るデーターの数の事を言う。配列のサイズの事を配列サイズと言ったりする事がある。配列にデーターを代入する事が出来る部分を配列要素または、配列の要素と呼び、配列要素または、配列の要素の合計数を配列要素数または、配列の要素数と呼ぶ事とする。配列要素数または、配列の要素数は、配列のサイズと同じ意味のものである。 An array is a data that can be assigned one or more data, and an array size is the number of data that can be assigned to the array. The size of the array is sometimes called the array size. The part where data can be assigned to an array is called an array element or array element, and the total number of array elements or array elements is called an array element number or array element number. The number of array elements or the number of array elements has the same meaning as the size of the array.
配列の型には、主に数値型とString型の二種類がある。数値型の場合は、代入できるデーターは、人間が読む事が出来ない数値のみである。数値型の事をint型とも呼ぶ。String型の場合は、人間が読む事がする事が出来る文字列の状態のデーターのみ代入できるものである。数値型とString型という二種類の型の特徴は、配列だけではなく、変数の場合も同じである。 There are two main types of arrays: numeric types and String types. In the case of a numeric type, the only data that can be assigned is a numeric value that cannot be read by humans. Numeric type is also called int type. In the case of the String type, only data in a string state that can be read by humans can be substituted. The characteristics of the two types, numeric and string, are the same for variables as well as arrays.
数値型とString型という二種類の型は、配列を作成する場合に指定するものであり、作成する配列のデーターを代入する事ができる領域の全てに適用されるものである。前述の「領域の全てに適用されるものである」という意味は、型の違うデーターを、配列のデーターを代入する事ができる領域に混在させることが出来ないという事である。実施例では、数値型の場合は、数値型の配列を作成すると断り書きをしない場合もある。数値型の配列を作成する場合に、「幾つの配列サイズで何bitまたは、何byteの数値型で配列を作成する」という表現ではなく、数値型を略して「幾つの配列サイズで何bitまたは、何byteで配列を作成する」という表現をしたりする事とする。これを10の配列サイズで8bitで配列を作成するという表現で説明している場合で意味を説明する。この場合は、配列の要素1個に8bitのデーターを1個代入できる様なものとして、配列要素数10個で配列を作成するという意味である。また、bitではなくて、byteで表現する事も有る。 The two types, numeric type and String type, are specified when creating an array, and apply to all areas where data of the created array can be assigned. The above-mentioned meaning “applies to all areas” means that data of different types cannot be mixed in an area where array data can be assigned. In the embodiment, in the case of a numeric type, there is a case where no remark is made when a numeric type array is created. When creating an array of numeric type, the expression “creates an array with a numeric type of how many bits or bytes” with the number of array sizes is abbreviated as “how many bits or "How many bytes are used to create an array?" The meaning will be explained in the case where this is explained by the expression that an array is created with 10 bits and 8 bits. In this case, it means that an array is created with 10 array elements, so that one 8-bit data can be assigned to one array element. Also, it is sometimes expressed in bytes instead of bits.
String型で配列を作成する場合は、以下の様に表現する。「幾つのサイズで何byteまたは、何bitのString型の配列を作成する」という表現をする事とする。例えば、10個のサイズで16bitのString型で配列を作成すると記述した場合で説明する。配列の1個のデーターを代入する事が出来る領域の1個のデーターが使用するメモリー量が2byteであるとし、10個のデーターを代入する事が出来る配列を作成するという事である。この10個のサイズで16bitのString型で配列を作成する場合のメモリーの総使用量は、16bit×10という計算が可能となり、答えは、160bit(または、20byte)となる。 When creating an array with String type, it is expressed as follows. Let's say "Create an array of String type with how many bytes or how many bits". For example, a case where it is described that an array is created in a 16-bit String type with 10 sizes will be described. The amount of memory used by one piece of data in the area where one piece of data in the array can be assigned is 2 bytes, and an array in which 10 pieces of data can be assigned is created. The total amount of memory used to create an array of this 10 size and 16-bit String type can be calculated as 16 bits × 10, and the answer is 160 bits (or 20 bytes).
配列のインデックスとは、配列の添字または、配列番号などとも呼ばれる事があるものである。
以降、配列のインデックスを配列の添字または、配列番号と呼ぶ事がある。
配列のデーターを代入できる領域の各々のデーターを指定する為に通常、0番からデーターを代入できる最後の位置までに、コンパイラによって、連続番号が自動的に付けられる。この配列のデーターを代入できる領域の最初から最後までに付けられた連続番号をインデックスと言う。
言い換えると配列のインデックスとは、配列に代入されるデーターの位置を示す番号の事を言うという事になる。
An array index is sometimes called an array index or an array number.
Hereinafter, an array index may be referred to as an array index or array number.
In order to specify each data in the area to which array data can be assigned, the compiler automatically assigns consecutive numbers from 0 to the last position where data can be assigned. The sequence number assigned from the beginning to the end of the area where the data of this array can be assigned is called an index.
In other words, the array index is a number indicating the position of data to be assigned to the array.
配列のインデックスを取得する場合の説明を行う。
1byteの変数を作成してこの作成した変数を仮変数と呼ぶ事として、仮変数に0を代入して初期化する。配列に代入されたデーターが全て1byteであると仮定して配列のインデックスを取得する処理工程の説明を行う事とする。配列の最初の位置に代入されているデーターから最後の位置までに代入されたデーターを1byteずつ読み込む度に仮変数に代入された数値に1を加算する事で回数をカウントするという処理を行うと、仮変数に代入された数値と配列のインデックスとが対応した数値になるので仮変数に代入された数値が配列のインデックスとなるので、仮変数に代入された数値を取得するのが配列のインデックスの取得方法である。
配列のインデックスの取得方法の説明を終わる。
また、配列のデーターを代入する事ができる領域の最初の位置という表現を配列の最初の位置という様に略した表現を行う場合がある。また、配列のデーターを代入する事ができる領域の最後の位置という表現を配列の最後の位置という様に略した表現を行う場合がある。
An explanation will be given for obtaining an array index.
Create a 1-byte variable and call the created variable a temporary variable. It is assumed that the data assigned to the array is all 1 byte, and the processing process for acquiring the array index will be described. When the number of times is counted by adding 1 to the numerical value assigned to the temporary variable each time the data assigned to the last position from the data assigned to the first position of the array is read one byte at a time Because the numerical value assigned to the temporary variable corresponds to the array index, the numerical value assigned to the temporary variable becomes the array index. Therefore, the numerical value assigned to the temporary variable is the index of the array. It is the acquisition method.
This concludes the description of how to obtain the array index.
In some cases, the expression of the first position of the area into which the array data can be substituted is abbreviated as the first position of the array. In some cases, the expression of the last position of the area into which the array data can be substituted is abbreviated as the last position of the array.
配列のインデックスを取得する方法について例を示して説明する。配列のサイズが10の配列の場合で説明する事とする。配列の配列サイズが10の配列を作成するとインデックスは、0から9までの数値がコンパイラと呼ばれるプログラムを書く為に一般的に使われるソフトウェアによって自動的に付けられる。最初のインデックスは、必ず0から始まるものであり、配列の最後の位置まで番号が連続番号で付けられる。配列のサイズが10の配列の場合は、「0,1,2,3,4,5,6,7,8,9」という連続番号が配列のインデックスとなる。
配列のサイズが10の配列の場合の様に、配列の最初の位置から最後の位置までに付けられた数値が配列のインデックスとなるのである。そのインデックスを配列のデーターから取得する方法は無い。インデックスを使用して配列からデーターを取得するには、最初の位置を0番として、0番から配列の最後の位置までの連続番号を作成して、その連続番号の中から1個ずつ順番に数値を取得する事でインデックスを取得して、取得したインデックスを使用して配列からデーターを取得するのである。配列の位置を指定する時に配列のインデックスを指定する事はできるが、その反対に配列に代入されたデーターからインデックスを取得する事は出来ない。配列に代入されたデーターの位置を0から1ずつ数値を積算する事で得た数値を、配列のデーターと同じ位置に有ったインデックスとして使用すると言う技術が、配列に代入されたデーターからインデックスを取得する方法である。
これで、配列のインデックスを取得する方法について例を示して説明する説明を終わる。
An example of how to obtain the array index will be described. The case where the array size is 10 will be described. When an array with an array size of 10 is created, the index is automatically assigned by software commonly used to write a program called a compiler with numbers from 0 to 9. The first index always starts from 0, and is numbered sequentially until the last position in the array. In the case of an array having an array size of 10, the sequence number “0,1,2,3,4,5,6,7,8,9” is the array index.
As in the case of an array with an array size of 10, the numerical value assigned from the first position to the last position of the array is the index of the array. There is no way to get the index from the array data. To get data from an array using an index, create a sequential number from 0 to the last position of the array, starting with 0 as the first position, and sequentially from the sequential number one by one An index is acquired by acquiring a numerical value, and data is acquired from the array using the acquired index. You can specify an array index when specifying the position of the array, but you cannot get the index from the data assigned to the array. The technique of using the numerical value obtained by accumulating the numerical values of the data assigned to the array from 0 to 1 as an index at the same position as the data of the array is an index from the data assigned to the array Is how to get.
This concludes the description of the method for obtaining the array index with an example.
配列のサイズ調整の説明を行う。
String型の配列の場合は、配列のデーターを代入する事が出来る領域のどこまでの位置にデーターが入力されているかを調べる事で、必要な配列の最初の位置から最後の位置までの配列のサイズを知る事が出来る。String型の配列の場合は、必要な配列のサイズを知る事が出来る事から、逆に必要のない配列の部分をカットして配列の要素数を減らすと言う配列のサイズの調整を行う事が出来る。他方、String型以外の配列の場合は、配列に空白が無く、配列を作成すると同時に最初から0が入力されているのでサイズ調整する事が出来ない。配列のサイズ調整は、常識的処理である。しかし、配列サイズの調整が出来ないプログラム言語もある。配列サイズの調整が出来ないプログラム言語のコンパイラを使用している場合は、配列サイズの調整が出来ない。配列サイズの調整が出来ないプログラム言語のコンパイラを使用している場合は、予め、配列のサイズの調整を必要としない処理で記述する以外に方法は無い。
配列のサイズ調整の説明を終了する。
An explanation of array size adjustment will be given.
In the case of a String type array, the size of the array from the first position to the last position of the required array is examined by checking how far the data is input in the area where the array data can be assigned. Can know. In the case of a String type array, it is possible to know the size of the necessary array, so it is possible to adjust the size of the array to cut the unnecessary array part and reduce the number of elements of the array. I can do it. On the other hand, in the case of an array other than the String type, there is no space in the array, and 0 cannot be adjusted from the beginning when the array is created. Adjusting the size of the array is a common sense process. However, there are programming languages that cannot adjust the array size. If you are using a programming language compiler that cannot adjust the array size, you cannot adjust the array size. If a compiler of a programming language that cannot adjust the array size is used, there is no method other than describing in advance a process that does not require adjustment of the array size.
The description of array size adjustment ends.
以下に、本発明のコード自動記述2ソフトウェアを記録した記録媒体は、処理をプログラム言語で記述したプログラムを自動で記述するソフトウェアなので、コンパイラと呼ばれるソフトウェアを作成するソフトウェアで使われている人間が読み書きできるプログラムの書き方を説明しないと、どの様なプログラムを自動で作成するのかが解らないと思われるので、プログラムの書き方について説明を行う事とした。
配列や変数の初期化と配列や変数の作成の説明を行う。
配列の初期化とは、配列のデーターを代入できる領域に代入されたデーターを削除する事を配列の初期化と言う。変数の場合も変数に代入されたデーターを削除する事を初期化と言う。変数の初期化を行う処理プログラムは、変数を作成する処理プログラムと全く同じである。
一般的に使用されているJava(登録商標)と呼ばれるプログラム言語で説明する。プログラム言語は、コンパイラと言うソフトウェアで使用するプログラム言語の仕様なので、コンパイラによっては、大きく違うものである。
In the following, since the recording medium on which the
Describes initialization of arrays and variables and creation of arrays and variables.
The initialization of the array is called the initialization of the array to delete the data assigned to the area to which the array data can be assigned. Even in the case of variables, deleting data assigned to a variable is called initialization. The processing program for initializing variables is exactly the same as the processing program for creating variables.
The description will be given in a commonly used programming language called Java (registered trademark). Since the programming language is a specification of a programming language used by software called a compiler, it differs greatly depending on the compiler.
プログラム言語の「;」と言う文字は、処理の最後に必ず記述すなければならない記号である。但し、「{」と「}」や処理の予約語の最後には、「;」は、記述しないのが普通である。
変数を作成する場合のプログラムは、以下の様に記述する。変数1個分の初期化をする記述例である。
String 変数名 = "";
変数を初期化する場合のプログラムは、以下の様に記述する。
String 変数名 = "";
変数の場合は、変数を作成する場合も初期化する場合も同じである。
配列の作成を行う処理を記述する場合は、プログラム言語で以下の様に記述する。配列の場合も、一般的に使用されているJava(登録商標)と呼ばれるプログラム言語で説明する。1個分の配列を作成するプログラムの例である。
String[] 配列名 = new String[個数];
配列の初期化を処理する場合は、以下の様に記述する。1個分の配列を初期化するプログラムの例である。
配列名 = new String[個数];
配列の場合は、配列の作成と初期化は違う記述内容である。
また、初期化する場合は、データーを削除すると言う処理を行う場合だけではない。人為的に任意の数値や任意の文字を初期値と指定している場合がある。人為的に任意の数値や任意の文字を初期値と指定している場合は、人為的に指定している初期値を代入する事が初期化すると言う処理となる。
配列や変数の初期化と配列や変数の作成の説明を終わる。
The character “;” in the programming language is a symbol that must be written at the end of processing. However, it is normal that “;” is not written at the end of “{” and “}” or a reserved word for processing.
The program for creating variables is described as follows. This is a description example for initializing one variable.
String variable name = "";
The program for initializing variables is described as follows.
String variable name = "";
In the case of variables, the same applies when creating and initializing variables.
When describing a process for creating an array, it is described as follows in a programming language. An array is also described in a commonly used programming language called Java (registered trademark). It is an example of the program which creates the arrangement | sequence for one piece.
String [] array name = new String [number];
When processing the initialization of the array, describe as follows. It is an example of a program that initializes one array.
Array name = new String [number];
In the case of an array, the creation and initialization of the array are different descriptions.
In addition, when initializing, it is not only when the process of deleting data is performed. There are cases where an arbitrary numerical value or arbitrary character is artificially designated as the initial value. When an arbitrary numerical value or an arbitrary character is artificially designated as an initial value, the process of initializing is to substitute the artificially designated initial value.
This concludes the explanation of array and variable initialization and array and variable creation.
分岐処理には、一般的に使用されている処理としてIF文による分岐処理とSwitch文による分岐処理がある。IF文の場合であっても、Switch文の場合であっても、1ブロック分のプログラムとは、分岐処理の一つ分の処理のプログラムの事を言う事とする。
IF文による分岐処理とSwitch文による分岐処理も、Java(登録商標)と呼ばれるプログラム言語で説明する。
これらの処理は、コンパイラと呼ばれるソフトウェアの仕様によって違う。しかし、一般的に、このIF文による分岐処理とSwitch文による分岐処理の二種類の分岐処理技術を使って、分岐処理を行わせている。
IF文の処理は、変数や配列に代入されている数値によって処理を分岐する処理を行う処理の事である。
Java(登録商標)のIF文による分岐処理とSwitch文による分岐処理に相当する別の名称の分岐処理で本発明のコード自動記述2ソフトウェアを記録した録媒体を実施した場合でも、簡単なレパートリーであるから、本発明のコード自動記述2ソフトウェアを記録した録媒体である事を明言する。
以下に、IF文による分岐処理を行わせる処理とSwitch文による分岐処理を行わせる処理の説明を行う。
以下の「{」と「}」は、ここからここまでを処理すると言う意味で必ず記述しなければならない記号である。
In the branch process, there are a branch process using an IF statement and a branch process using a Switch statement as commonly used processes. Whether it is an IF statement or a Switch statement, a program for one block refers to a program for one branch process.
The branch processing using the IF statement and the branch processing using the Switch statement will also be described in a programming language called Java (registered trademark).
These processes differ depending on the specification of software called a compiler. However, in general, branch processing is performed using two types of branch processing techniques, that is, branch processing using the IF statement and branch processing using the Switch statement.
IF statement processing is processing that branches processing depending on the numerical values assigned to variables and arrays.
Even when a recording medium in which the
In the following, a description will be given of a process for performing a branch process using an IF statement and a process for performing a branch process using a Switch statement.
The following “{” and “}” are symbols that must be described in the sense of processing from here to here.
IF文による分岐処理を行わせる処理は、一般的に下記の様に記述するものである。
if(条件式)
{
条件が真である場合の処理するプログラムを記述する
}
Java(登録商標)と言われるプログラム言語で、使われているIF文と呼ばれる分岐処理は、「if」から始まり「}」までが、1ブロックの処理であり、Java(登録商標)以外のプログラム言語でも、Java(登録商標)のIF文と同じ様な処理を行うプログラムの場合は、IF文と呼ぶ。
〔実施例1〕と、〔実施例2〕と、〔実施例3〕で、条件式を記述する場合「<」を使用しているので、「<」の意味を説明する。
例えば、変数が二つあると仮定する。各々の変数を数値1変数、数値2変数と呼ぶ。数値1変数に0を代入、数値2変数に1を代入する。
IF文の条件式に、if(数値1変数 < 数値2変数) と記述すると、数値1変数が数値2変数未満でる場合と言う意味となる。
「<」の意味を説明を終わる。
The process for branching with an IF statement is generally described as follows.
if (conditional expression)
{
Write a program to handle when the condition is true
}
In the programming language called Java (registered trademark), the branch processing called IF statement used is a one-block process starting from "if" to "}", and programs other than Java (registered trademark) In the case of a language, a program that performs processing similar to that of a Java (registered trademark) IF statement is called an IF statement.
In [Embodiment 1], [Embodiment 2], and [Embodiment 3], “<” is used when describing a conditional expression, so the meaning of “<” will be described.
For example, assume there are two variables. Each variable is called numeric 1 variable and numeric 2 variable. Assign 0 to the numeric 1 variable and 1 to the numeric 2 variable.
If if (numeric 1 variable <numeric 2 variable) is described in the conditional expression of the IF statement, it means that the numeric 1 variable is less than the numeric 2 variable.
End the explanation of the meaning of "<".
〔実施例1〕で、組合せ分岐と言う設定でのプログラムの作成説明を行っているので、組合せ分岐の処理のプログラムの書き方の説明を行う。
組合せ分岐の場合は、IF文を使用する。Switch文では、複数の変数や複数の配列に代入された数値の組合せで処理を分岐できないからである。組合せ分岐は、複数の変数や複数の配列に代入された数値の組合せで分岐する処理である。〔実施例1〕では、複数の変数に数値が代入されている事を想定して処理を記述させているので、ここでも、複数の変数に数値が代入されている事を想定して説明する。配列は使用しないが、配列でも同じである。配列の場合は、配列の数値を代入できる配列の位置をインデックスや、変数に代入した数値で指定しなければならないだけである。
組合せ分岐の場合のIF文による1ブロック分の処理を記述したプログラムは、以下の様なる。最初に変数が2個の場合の記述例を示して説明を行う。変数が2個の場合の組合せを2列の組合せと呼ぶ事にする。
if(変数 == 数値 && 変数 == 数値)
{
条件が真である場合の処理するプログラムを記述する
}
と言う記述をする。「if(条件式)」から、「}」までが、1ブロック分の処理を行うプログラムである。IF文の(条件式)の部分に、複数の変数や配列を使用して、代入されている数値の組合せで処理を分岐するのが、組合せ分岐である。
In [Embodiment 1], since the creation of a program with the setting of combination branching is described, how to write the program for the processing of combination branching will be described.
Use IF statement for combinational branching. This is because, in the Switch statement, the process cannot be branched by a combination of numerical values assigned to multiple variables or multiple arrays. Combination branching is a process of branching by a combination of numerical values assigned to a plurality of variables or a plurality of arrays. In [Embodiment 1], processing is described on the assumption that numerical values are assigned to a plurality of variables. Therefore, here, explanation is also made assuming that numerical values are assigned to a plurality of variables. . No array is used, but the same is true for arrays. In the case of an array, you only need to specify the position of the array that can be assigned an array value with an index or a value assigned to a variable.
The program that describes the processing for one block by the IF statement in the case of combinational branching is as follows. First, description will be given by showing a description example when there are two variables. A combination of two variables is called a two-column combination.
if (variable == number && variable == number)
{
Write a program to handle when the condition is true
}
Write a description. From “if (conditional expression)” to “}” is a program for processing for one block. Combination branching is a process that uses multiple variables and arrays in the (conditional expression) part of an IF statement to branch the processing by a combination of numerical values assigned.
変数と記述している部分に仮の変数の名前を使用したり、数値と記述している部分に仮のデーターを示して、もう少し詳しく説明する。変数の名前を仮に、第一変数、第二変数と言う名前の変数があると仮定して説明する。
if(第一変数 == 0 && 第二変数 == 1)
{
条件が真である場合に処理するプログラムを記述する
}
IF文の条件の部分の説明を行う。IFの条件の部分に「第一変数 == 0 && 第二変数 == 1」と書かれている。「==」の左側と右側には、数値や文字や文字列や配列や変数や式といった多種多様のデーター等が記述される。「==」の左側を左項と呼び、「==」の右側を右項と呼ぶ事とする。「==」の意味は、左項と右項とが等しいと言う意味で使用される記号である。「==」の右側に変数、左側に数値を記述しているが、左右逆にして、「==」の左側に数値、右側に変数を記述しても良い。
「==」と同じように使われる記号が多数あり、「==」は、一例である。「!=」「<」「>」「<=」「>=」など多種ある。
また、「&&」は、英語のANDと言う意味で、第一変数に代入されている数値と、第二変数に代入されている数値の両方、と言う意味である。
また、第一変数と第二変数には、0から任意の最高値までの数値が代入される。変数に代入される数値を行数と呼ぶ事とする。幾つ変数が有っても、一つの変数に代入される数値は、0から最大値までである。
変数が2個の場合の記述例で説明すると、第一変数が0で第二変数が1の場合に処理を行うと言う意味である。
変数が2個の場合の記述例を示した説明を終わる。
Use the name of the temporary variable for the part describing it as a variable, or show the temporary data for the part described as a numerical value. The description will be made assuming that there are variables named “first variable” and “second variable”.
if (first variable == 0 && second variable == 1)
{
Write a program to handle when the condition is true
}
Explain the condition part of the IF statement. In the condition part of IF, “first variable == 0 && second variable == 1” is written. Various data such as numerical values, characters, character strings, arrays, variables, and expressions are described on the left and right sides of “==”. The left side of “==” is called the left term, and the right side of “==” is called the right term. The meaning of “==” is a symbol used to mean that the left term and the right term are equal. Although the variable is described on the right side of “==” and the numerical value is described on the left side, the numerical value may be described on the left side of “==” and the variable may be described on the right side.
There are many symbols used in the same way as “==”, and “==” is an example. There are various types such as “! =”, “<”, “>”, “<=”, “> =”.
“&&” means “AND” in English and means both a numerical value assigned to the first variable and a numerical value assigned to the second variable.
Also, numerical values from 0 to an arbitrary maximum value are assigned to the first variable and the second variable. The numerical value assigned to the variable is called the number of rows. No matter how many variables there are, the numerical value assigned to one variable is from 0 to the maximum value.
In the description example when there are two variables, this means that processing is performed when the first variable is 0 and the second variable is 1.
The description showing the description example when there are two variables ends.
次に、変数が3個の場合の記述例を示して説明を行う。変数が3個の場合を3列の組合せと言う事とする。以降、変数の数が増えたら増えた分だけ数値を増やして、何列組合せと言う事とする。
第三変数と言う名前の変数があると言う事を仮定する。3列の場合の記述例を以下に記述する。
If(第一変数 == 0 && 第二変数 == 1 && 第三変数 == 0)
{
条件が真である場合に処理するプログラムを記述する
}
3列の場合の記述例の意味は、第一変数が0で第二変数が1で第三変数が0の場合に処理を行うと言う意味である。
変数が3個の場合の記述例を示した説明を終わる。
これで、組合せ分岐の場合のIF文による1ブロック分の処理を記述したプログラムの説明を終わる。
IF文による分岐処理を行わせる処理の記述の説明を終わる。
Next, description will be given by showing a description example when there are three variables. The case where there are three variables is called a combination of three columns. Hereinafter, when the number of variables increases, the numerical value is increased by the increased amount, and it is referred to as a column combination.
Suppose that there is a variable named third variable. A description example in the case of three columns is described below.
If (first variable == 0 && second variable == 1 && third variable == 0)
{
Write a program to handle when the condition is true
}
The meaning of the description example in the case of three columns means that processing is performed when the first variable is 0, the second variable is 1, and the third variable is 0.
The description showing the description example when there are three variables ends.
This concludes the description of the program describing the processing for one block by the IF statement in the case of the combination branch.
End of the description of the process that performs the branch process by the IF statement.
Java(登録商標)と言われるプログラム言語で、使われているSwitch文と呼ばれる分岐処理は、「case」から始まり、「break;」までが、1ブロックの処理であり、Java(登録商標)以外のプログラム言語でも、Java(登録商標)のSwitch文と同じ様な処理を行うプログラムの場合は、Switch文と呼ぶ。
Switch文の分岐処理は、「case」の後に、条件式や、変数や、配列に代入されているデーターに該当する数値や、文字を記述して、記述した文字や、数値によって、処理を分岐させる処理技術である。
Switch文による分岐処理を行わせる処理は、一般的に下記の様に記述するものである。
「default:」は、記述せずに省略する事が出来る。「default:」は、その他の場合の処理を記述する為に用意されているものである。
下記のSwitch文は、条件のDat変数に代入されている数値によって、分岐するものである。
switch(条件式)
{
case 条件の答え:
処理するプログラムを記述する
break;
case 条件の答え:
処理するプログラムを記述する
break;
default:
}
条件に変数や文字列を指定する事が出来る。
In the programming language called Java (registered trademark), the branch processing called the Switch statement used is a one-block process starting from "case" and up to "break;". Other than Java (registered trademark) In the case of a program language, a program that performs the same processing as a Java (registered trademark) Switch statement is called a Switch statement.
The branch process of the Switch statement is branched after the “case” by describing the numerical value or character that corresponds to the conditional expression, variable, or data assigned to the array, and the written character or numerical value. Processing technology.
The process for executing the branch process by the Switch statement is generally described as follows.
“Default:” can be omitted without description. “Default:” is prepared for describing processing in other cases.
The following Switch statement branches depending on the numerical value assigned to the Dat variable of the condition.
switch (conditional expression)
{
case condition answer:
Write a program to process
break;
case condition answer:
Write a program to process
break;
default:
}
Variables and character strings can be specified as conditions.
条件が数値型の変数の場合は以下の様に記述するものである。
数値型の8bitの変数を作成し、作成した変数をDat変数と呼ぶ事とする。
下記のSwitch文は、条件のDat変数に代入されている数値によって、分岐するものである。
switch(Dat)
{
case 0:
処理するプログラムを記述する
break;
case 1:
処理するプログラムを記述する
break;
default:
}
If the condition is a numeric type variable, it is described as follows.
A numeric 8-bit variable is created, and the created variable is called a Dat variable.
The following Switch statement branches depending on the numerical value assigned to the Dat variable of the condition.
switch (Dat)
{
case 0:
Write a program to process
break;
case 1:
Write a program to process
break;
default:
}
条件式がString型の場合は、以下の様に記述するものである。
String型の100byteの変数を作成し、作成した変数をSDat変数と呼ぶ事とする。
下記のSwitch文は、条件のSDat変数に代入されている文字によって、分岐するものである。
switch(SDat)
{
case "自由主義者":
処理するプログラムを記述する
break;
case "社会主義者":
処理するプログラムを記述する
break;
default:
}
When the conditional expression is a String type, it is described as follows.
A 100-byte variable of String type is created, and the created variable is called SDat variable.
The following Switch statement branches depending on the character assigned to the SDat variable of the condition.
switch (SDat)
{
case "Liberal":
Write a program to process
break;
case "Socialist":
Write a program to process
break;
default:
}
文字や文字列を操作する場合に、機械語と人間が読める文字とを区別して処理する為の予約文字がある。予約文字として使用禁止文字に該当する文字は、「"」である。
禁止文字とは、文字として使用する事を禁止されている文字の事である。
「"」は、「"」と「"」で文字列を囲む事で、人間が読む事が出来る文字列である事を明示する為の記号である。「"自由主義者"」や「"社会主義者"」は、文字列である事を明示しているのである。
「"0"」や「"1"」と記述した場合と「0」や「1」と記述した場合の違いは、「"0"」や「"1"」と記述した場合は、String型の人間が読める数値の0と1と言う意味となり、「0」や「1」と記述した場合は、機械語の0と1と言う意味となる。
「"」は、「"自由主義者"」の様に記述する場合は、コンパイラに付属されたエディターでも使用できる。使用できないのは、「"""」や「""""」と言う状態になる場合に「"」が使用できなくなるのである。「"""」は、String型の変数に「"」を文字として代入しようとする場合に記述しなければならなくなるプログラムであるが、コンパイラに付属のエディターは、禁止文字の使用としてエラーとみなすのである。
突然であが、変数の初期化の補足説明を行う。
初期化では、「"」と「"」をスペースを入れずに列挙しているが、文字無しの文字を代入すると言う意味で使用しているものである。スペースも文字なので、「" "」の様にスペースを「"」と「"」の間に入れて記述すると、スペースを変数に代入してしまう為、「"」と「"」の間にスペースを入れない記述をする事で変数を初期化するのが常識的な記述である。
変数の初期化の補足説明を終わる。
Switch文による分岐処理を行う処理の記述の説明を終わる。
When manipulating characters and character strings, there are reserved characters for processing by distinguishing machine language from human-readable characters. A character corresponding to a prohibited character as a reserved character is “”.
Prohibited characters are characters that are prohibited from being used as characters.
"""Is a symbol for clearly indicating that a character string can be read by humans by enclosing the character string with""" and """."" Liberalist "" and "" Socialist "" clearly indicate that they are strings.
The difference between "0" and "1" and "0" and "1" is the difference between "0" and "1" The human-readable
"""Can also be used in the editor that comes with the compiler when writing like""Liberalists"". What cannot be used is that """cannot be used when""""" or """""" is entered. """""Is a program that must be written when trying to assign""" to a String type variable as a character, but the editor that comes with the compiler regards it as an error using prohibited characters It is.
Suddenly, there will be a supplementary explanation of variable initialization.
In the initialization, "" and """are enumerated without spaces, but they are used in the sense of substituting characters without characters. Since the space is also a character, if you put a space between """and""" as in """", it will be assigned to the variable, so there is a space between """and""" It is a common-sense description to initialize a variable by writing a description that does not include.
End of the supplementary explanation of variable initialization.
End of the description of the process of performing the branch process by the Switch statement.
配列や変数にデーターを代入すると言う処理を行う処理の記述は以下の通りである。
配列名[インデックス] = 数値または、文字や文字列;
変数名 = 数値または、文字や文字列;
変数名 = 変数名;
「=」は、代入演算子と一般的に呼ばれているもので、代入する時に必ず記述しなければならない記号である。
「=」の左辺の配列や変数に「=」の右辺の数値または、文字や文字列を代入すると言う処理を行わせる記述である。
配列や変数にデーターを代入すると言う処理を行う処理の記述の説明を終わる。
The description of the process of assigning data to an array or variable is as follows.
Array name [index] = number or character or string;
Variable name = number or character or string;
Variable name = variable name;
“=” Is generally called an assignment operator, and is a symbol that must be described when assigning.
This is a description for performing a process of substituting a numerical value on the right side of “=” or a character or a character string into an array or variable on the left side of “=”.
This is the end of the description of the process for assigning data to arrays and variables.
文字列を連結させる場合には「+」を使用する。文字列を連結させる場合の記述は、以下の様になる。「+」を使用しない記述の仕方もあるが、実施例で使用していないので説明しない。
String型の100byteの変数を二個作成する。各々の変数をSDat1変数とSDat2変数と呼ぶ。
SDat1変数に「天才は99%の努力と」と言う文字列を代入する。
SDat2変数に「1%の能力である」と言う文字列を代入する。
SDat1 = SDat1 + Sdat2;
と記述すると、SDat1変数には、「天才は99%の努力と1%の能力である」と言う文字列が代入される。
また、以下の様に記述すると、
SDat1 = SDat1 + Sdat2 + "と言うが本当かな?";
SDat1変数には、「天才は99%の努力と1%の能力であると言うが本当かな?」と言う文字列が代入される。
これで、文字列を連結させる場合の記述の説明を終わる。
Use "+" to concatenate strings. The description when concatenating character strings is as follows. There is a way of description that does not use “+”, but it will not be described because it is not used in the embodiment.
Create two 100 byte variables of type String. Each variable is called SDat1 variable and SDat2 variable.
Substitute the string "Genius is 99% effort" for the SDat1 variable.
Assign the string “1% ability” to the SDat2 variable.
SDat1 = SDat1 + Sdat2;
The SDat1 variable is assigned the string "Genius is 99% effort and 1% ability".
In addition, when described as follows,
SDat1 = SDat1 + Sdat2 + "Is that true?";
The SDat1 variable is assigned the string "Genius says 99% effort and 1% ability, but is it true?"
This concludes the description of the description for connecting character strings.
繰り返し処理には、For文と言うものがある。For文以外にも幾つも繰り返し処理があるが、実施例1と実施例2と実施例3で記述させている繰り返し処理がFor文なのでFor文の説明だけを行う事とする。For文も、一般的に使用されているJava(登録商標)と呼ばれるプログラム言語で説明する。
For文は、以下の様に記述する。
for(int i = 0; i < 10; i++){
処理するプログラムを記述する
}
「i」と言う数値型の変数の値は、初期値が0であり、「i」と言う数値型の変数の値が、10未満の場合は、繰り返し処理を行えと言う処理である。「i++」の意味は、処理するプログラムを記述する部分に記述されている処理を一回処理する毎に「i」に「1」を加算すると言う意味である。
数値型の8bitの変数を作成してN変数と呼ぶ事とする。N変数に5を代入する。
for(int i = 0; i < N; i++){
処理するプログラムを記述する
}
この様に記述した場合「i」変数の初期値を0として、処理するプログラムを記述する部分に記述された処理を一回処理するたびに「i」に1を加算して「i」がN変数に代入されている数値の5になったら、繰り返し処理を終われと言う処理を行わせる記述である。「i」が一般的に言われているインデックスと言う数値が代入されている変数である。
For文の説明を終わる。
これで、プログラムの書き方について説明を終わる。
There is a so-called For statement in the iteration process. In addition to the For statement, there are a number of repetition processes, but since the repetition process described in the first embodiment, the second embodiment, and the third embodiment is a For sentence, only the For sentence will be described. The For statement is also described in a commonly used programming language called Java (registered trademark).
For statement is described as follows.
for (int i = 0; i <10; i ++) {
Write a program to process
}
The value of the numeric type variable “i” has an initial value of 0, and when the value of the numeric type variable “i” is less than 10, it is processing that iterative processing can be performed. The meaning of “i ++” means that “1” is added to “i” every time the processing described in the part describing the program to be processed is processed once.
Create a numeric 8-bit variable and call it N variable. Assign 5 to the N variable.
for (int i = 0; i <N; i ++) {
Write a program to process
}
In this case, the initial value of the “i” variable is set to 0, and each time the process described in the part describing the program to be processed is processed once, “i” is incremented by 1 and “i” becomes N This is a description that causes the processing to be repeated to end when the numerical value assigned to the variable reaches 5. “I” is a variable to which a numerical value called an index that is generally referred to is substituted.
End the explanation of the For sentence.
This completes the description of how to write the program.
以下に、配列の末尾にデーターを代入すると記述している場合がある。
未だに配列に代入されたデーターが無い場合は、普通、配列の最初の位置にデーターを代入するものである。しかし、配列の最初の位置から代入する度に数byteずつ代入する位置をずらして、データーを数byteずつ代入する場合、配列の最初の位置にデーターを代入した後は、配列に代入されたデーターの最後の位置にあるデーターの次の位置に代入するという事になる。この場合、配列の最初の位置に既にデーターを代入した後の位置の指定を末尾と表現する事が出来る。未だに配列に代入されたデーターが無い状態で、配列の最初の位置から代入する度に数byteずつ代入する位置をずらして数byteずつデーターを配列に代入する場合、配列の最初の位置にデーターを代入する場合でも、配列の末尾にデーターを代入すると表現する事が出来ると考えられる。そこで、配列の最初の位置から代入する度に数byteずつ代入する位置をずらして、数byteずつデーターを配列に代入する場合は、配列の最初の位置に代入する場合であっても、配列の末尾に代入すると記述する場合がある。
また、本発明の明細書で、配列の最初の位置から代入する度に数byteずつ代入する位置をずらして、数byteずつデーターを配列に代入する場合に於いて、配列に代入するデーターの順番について断り書きが無い場合は、取得した元のデーター(作成したデーターや取得したデーターや読み込んだデーターや元の配列に代入されていたデーターなど)の順番通りに数byteずつ配列に代入するものとする。
The following may be described as substituting data at the end of the array.
If there is still no data assigned to the array, the data is usually assigned to the first position of the array. However, each time you assign from the first position of the array, the assignment position is shifted by several bytes, and when assigning data by several bytes, after assigning the data to the first position of the array, the data assigned to the array Is assigned to the next position of the data at the last position. In this case, the position specification after data is already assigned to the first position of the array can be expressed as the end. If there is still no data assigned to the array, and the data is assigned to the array by several bytes each time the assignment position is shifted by several bytes each time it is assigned from the first position of the array, the data is assigned to the first position of the array. Even in the case of assignment, it can be expressed by assigning data to the end of the array. Therefore, every time you assign from the first position of the array, the position to assign by several bytes is shifted, and when assigning data to the array by several bytes, even if you assign to the first position of the array, May be described if assigned at the end.
In the specification of the present invention, the order of the data to be assigned to the array when the data is assigned to the array by shifting the position where the assignment is made by several bytes each time assignment is made from the first position of the array. If there is no notice about, it will be assigned to the array several bytes at a time in the order of the acquired original data (created data, acquired data, read data, data assigned to the original array, etc.) To do.
テキスト形式とバイナリー形式は、ファイルを扱う場合のみ使用できる形式である。
実施例で使用しているコンパイラを使用した場合は、String型で変数を作成すると約20億個の文字コードで出来た文字を代入出来るサイズで変数が作成される。つまり、約20億byteの変数が作成される。作成された変数は代入される文字列の文字数によって、自動的にメモリーの使用量が変更されるようになっている。
Text format and binary format can be used only when dealing with files.
When the compiler used in the embodiment is used, when a variable of String type is created, the variable is created with a size that allows substitution of characters made up of about 2 billion character codes. That is, a variable of about 2 billion bytes is created. The amount of memory used for the created variable is automatically changed according to the number of characters in the assigned string.
この様にString型で変数を作成するとメモリーの使用領域が自動的に代入されるデーターの量によって変化するものになっている。使用するコンパイラによっては、この様な自動的に代入される文字列の文字数によって変数のサイズを変更する機能が無い場合がある。そこで、本発明の明細書では、String型で変数を作成する場合、型として使用するメモリー使用量を指定する事とする。実施例で使用しているコンパイラを使用した場合、実際には、型として使用するメモリー使用量を指定して変数を作成する事はできない。 If you create a variable of type String in this way, the memory usage area changes depending on the amount of data that is automatically assigned. Depending on the compiler used, there may be no function to change the size of the variable depending on the number of characters in the automatically assigned character string. Therefore, in the specification of the present invention, when creating a variable of the String type, the memory usage to be used as the type is designated. When the compiler used in the embodiment is used, it is actually impossible to create a variable by specifying the amount of memory used as a type.
プログラマーとは、ソフトウェアを作成する人間の事を言う事とする。但し、人工知能を使用してソフトウェアを自動的に作成する場合は、人工知能もプログラマーであるとする。
人工知能とは、思考処理を行うソフトウェアの事である。思考処理とは、人間の様に物事を考えて処理するソフトウェアの処理工程の事を言う事とする。
A programmer is a person who creates software. However, when software is automatically created using artificial intelligence, it is assumed that artificial intelligence is also a programmer.
Artificial intelligence is software that performs thought processing. Thinking processing refers to the processing process of software that considers and processes things like a human being.
従来、コンパイラに付属されたエディターと呼ばれるプログラムを記述するテキストボックスに人為的な入力処理によって、プログラムを書き込んで大量の分岐処理を記述してきた。その再、分類数の分だけ、分岐する必要があり、分類数分だけ配列や変数が必要になる。例えば、データーを分類する場合、分類対象データーを記録する為の配列や変数が分類毎に必要になるのである。配列や変数は、全て、違う名前で作成する必要がある。同じ名前で配列や、変数を作成して使用すると上書き処理になってしまう。上書き処理で配列や変数にデーターを代入すると、先に分類して代入したデーターを書き換えてしまう為、分類処理が出来ないと言う事態に陥るのである。また、同じ名前で変数を作成して使用する場合、先に分類して代入したデーターの後方に連結して代入すると言う技術を使う事になる。データーを分類して記録した配列や、変数とは、別の配列や変数を作成して、どこの位置からどこの位置までがどの分類に属するデーターなのかを示すデーターを記録する必要が出てきて異常に複雑な処理をしなければならなくなるのである。また、同じ名前で配列を作成して使用する場合、先に分類して代入したデーターの後方、つまり、配列の末尾に代入する事になる。この場合も、変数の場合と同じく、分類したデーターを記録する配列とは別の配列や変数を作成して、どこの位置からどこの位置までがどの分類に属するデーターなのかを示すデーターを代入する事で記録しておく必要が出てきて異常に複雑な処理をしなければならなくなる。 Conventionally, a large amount of branch processing has been described by writing a program in a text box describing a program called an editor attached to a compiler by artificial input processing. It is necessary to branch as many times as the number of classifications, and arrays and variables are required as many as the number of classifications. For example, when classifying data, an array or variable for recording the classification target data is required for each classification. All arrays and variables must be created with different names. If you create an array or variable with the same name and use it, it will be overwritten. If data is assigned to an array or variable in the overwrite process, the data that has been classified and assigned first will be rewritten, so that the classification process cannot be performed. In addition, when creating and using a variable with the same name, a technique of concatenating and assigning after the data that has been classified and assigned first is used. It is necessary to create an array or variable that is different from the array or variable in which the data is classified and recorded, and record the data indicating from which position to which position the data belongs to which classification. Therefore, it becomes necessary to carry out an unusually complicated process. Also, when creating and using an array with the same name, it will be assigned to the end of the data that has been classified and assigned, that is, the end of the array. In this case as well, as with variables, create an array or variable that is different from the array that records the classified data, and assign the data that indicates from which position to which position the data belongs to which classification It becomes necessary to record by doing so, and it becomes necessary to perform abnormally complicated processing.
分岐毎の処理は殆ど同じなので、コピーして貼り付ける事で、少し人為的な入力処理の労力を軽減する事が出来る。しかし、労力を少し減らす事が出来る程度でしかない。分岐毎の処理は、殆ど同じであるが違う場所、つまり、配列名や変数名は、全て書き換えなければならないと言う、途方もなく大変な作業をしなければならなかったのが従来の状況である。 Since the processing at each branch is almost the same, copying and pasting can reduce the labor of input processing a little. However, it can only reduce the effort a little. The processing for each branch is almost the same, but in different situations, that is, array names and variable names must all be rewritten. is there.
また、コンパイラの機能を利用して大量の分岐や配列や変数を記述すると言う方法もある。この方法は、コンパイラに付属されたエディターに繰り返し処理を記述してプログラムを大量に書かせると言う技術であるが、ソフトウェアと言う事が出来ない技術である。コンパイラの機能を利用しているので、コンパイラ無しでは処理できない方法である。また、コンパイラに付属されたエディターには、使用禁止文字があり、使用禁止文字が使用できない為に記述できない処理のプログラムがある。記述できない処理のプログラムを書かせるには、記述できない使用禁止文字を使用しない処理としてプログラムをコンパイラの機能を使用してコンパイラに記述させて、使用禁止文字を使用せずに出来上がった処理を記述したプログラムに、人為的な入力処理で使用禁止文字を挿入すると言う処理を行う必要がある。
また、複数個の変数や複数個の配列に代入された数値の組合せによる分岐処理をプログラム言語を使用して複数個の変数や複数個の配列に代入された数値の組合せ数分の分岐処理を自動で記述させると言う処理の方法は、従来から、全く無かった。複数個の変数や複数個の配列に代入された数値の組合せによる分岐処理をプログラム言語を使用して複数個の変数や複数個の配列に代入された数値の組合せ数分の分岐処理を自動で記述させると言う処理の方法が、全く無かったと言う問題も大きな問題である。人為的な入力処理で記述すると言う方法以外にないから、時間がかかり過ぎると言う大きな問題である。
There is also a method of describing a large number of branches, arrays, and variables using the compiler function. This method is a technology that allows a large amount of programs to be written by describing repetitive processing in an editor attached to the compiler, but it cannot be called software. Since the compiler functions are used, this method cannot be processed without a compiler. In addition, the editor attached to the compiler has a prohibited character, and there is a processing program that cannot be described because the prohibited character cannot be used. To write a program with a process that cannot be written, the program was written by the compiler using the compiler function as a process not using a prohibited character that could not be written, and the completed process was described without using the prohibited character. It is necessary to perform processing that inserts prohibited characters into the program through artificial input processing.
Also, branch processing based on the combination of numerical values assigned to multiple variables or arrays using the programming language can be performed for the number of combinations of numerical values assigned to multiple variables or arrays. Conventionally, there has been no processing method for automatic description. Branch processing based on the combination of numerical values assigned to multiple variables or multiple arrays Automatically using the programming language to perform branch processing for the number of combinations of numerical values assigned to multiple variables or multiple arrays The problem that there is no processing method to describe is also a big problem. This is a big problem that it takes too much time because there is no way to describe it by artificial input processing.
図20の<コンパイラの機能を使用して配列を128個作成する処理を記述させて変数に代入する場合のプログラム>と、図21の<コンパイラの機能を使用して配列を128個作成する処理を記述させて配列に代入する場合のプログラム>と、図22の<コンパイラの機能を使用してSwitch文を128個記述させて変数に代入する場合のプログラム>は、全て、コンパイラの機能を利用して大量の分岐や配列や変数を記述すると言う方法で処理しようとして記述したプログラムである。 <Program for creating a process for creating 128 arrays using the compiler function and assigning it to a variable> in FIG. 20 and <Process for creating 128 arrays using the compiler function in FIG. The program for assigning to an array with a description and the <program for assigning to a variable by describing 128 Switch statements using the compiler function> in FIG. 22 all use the function of the compiler. It is a program that is described to be processed by a method of describing a large number of branches, arrays, and variables.
図20の<コンパイラの機能を使用して配列を128個作成する処理を記述させて変数に代入する場合のプログラム>から、図22の<コンパイラの機能を使用してSwitch文を128個記述させて変数に代入する場合のプログラム>を比較図1と呼ぶ。
図15の<コード自動記述2ソフトウェアで配列を3個作成する処理を記述させた処理結果>と、図16の<コード自動記述2ソフトウェアで3個の配列の初期化をする処理を記述させた処理結果>と、図17の<コード自動記述2ソフトウェアでIF文による分岐処理を3個記述させた処理結果>と、図18の<コード自動記述2ソフトウェアでSwitch文による分岐処理を3個記述させた処理結果>と、図19の<コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた処理結果>は、記述させようと思っているプログラムの例である。図15の<コード自動記述2ソフトウェアで配列を3個作成する処理を記述させた処理結果>から、図19の<コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた処理結果>を比較図2と呼ぶ。
From <Program for creating a 128 array creation process using the compiler function and assigning it to a variable> in FIG. 20, use <Compiler function to describe 128 Switch statements. The program for substituting for a variable> is referred to as Comparative FIG.
<Processing result of describing processing for generating three arrays by
図6の<コード自動記述2ソフトウェアで配列を3個作成する処理を記述させた場合の操作画面>の図符号Jのコード記述テキストボックスに入力されたプログラムと、図7の<コード自動記述2ソフトウェアで3個の配列を初期化する処理を記述させた操作画面図>の図符号Jのコード記述テキストボックスに入力されたプログラムと、図8の<コード自動記述2ソフトウェアでIF文による分岐を3個記述させた操作画面図>の図符号Jのコード記述テキストボックスに入力されたプログラムと、図9の<コード自動記述2ソフトウェアでSwitch文による分岐を3個記述させた操作画面図>の図符号Jのコード記述テキストボックスに入力されたプログラムと、図10の<コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた操作画面図>の図符号Jのコード記述テキストボックスに入力されたプログラムと、図6の<コード自動記述2ソフトウェアで配列を3個作成する処理を記述させた場合の操作画面>から、図10の<コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた操作画面図>の図符号Jのコード記述テキストボックスに入力されたプログラムは、本発明のコード自動記述2ソフトウェアを記録した記録媒体で記述させようとしたプログラムの記述である。図6の<コード自動記述2ソフトウェアで配列を3個作成する処理を記述させた場合の操作画面>の図符号Jのコード記述テキストボックスに入力されたプログラムから、図10の<コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた操作画面図>の図符号Jのコード記述テキストボックスに入力されたプログラムを比較図3と呼ぶ。
The program entered in the code description text box of the symbol J shown in <Operation screen when processing for creating three arrays using the
比較図1と、比較図2と、比較図3を比較すると、比較図3が比較図1に比べて物凄く簡略化されていて記述しやすくなっている。比較図2の図に記述されているプログラムにかなり近いプログラムになっているのが、比較図3である。比較図1は、大変複雑で記述しにくいプログラムである。比較図1の様な複雑なプログラムを書かなくて良い状態になり、比較図3の簡略化されたプログラムを書く事が可能になるのが、本発明が問題を解決した部分である。大変複雑で記述しにくいプログラムを簡略化できたのは、プログラムの書き方を変更する事が出来た事によって得られた利便性の高さである。但し、プログラムの書き方を変更する事が出来たと言う事は、文法を変更しただけで、技術ではないので、発明には相当しない。 Comparing Comparative FIG. 1 with Comparative FIG. 2 and Comparative FIG. 3, Comparative FIG. 3 is greatly simplified compared to Comparative FIG. FIG. 3 shows a program that is quite similar to the program described in the diagram of FIG. Comparative FIG. 1 is a very complex program that is difficult to write. It is a part that the present invention has solved the problem that it is not necessary to write a complicated program as shown in FIG. 1, and the simplified program shown in FIG. 3 can be written. The reason why it was possible to simplify a very complicated and difficult-to-write program was the high convenience obtained by changing the way the program was written. However, the fact that the way of writing a program could be changed is not equivalent to an invention because it is not a technique, only a grammar change.
図22の<コンパイラの機能を使用してSwitch文を128個記述させて変数に代入する場合のプログラム>と図20の<コンパイラの機能を使用して配列を128個作成する処理を記述させて変数に代入する場合のプログラム>の図中に記載しているNLの説明を行う。
図20の<コンパイラの機能を使用して配列を128個作成する処理を記述させて変数に代入する場合のプログラム>の図中に記載しているNLは、変数である。NLには、キャリッジリターンとラインフィードが代入されている。変数Detaに次々に代入処理を行う処理なので、一行ずつ明確に区切って代入する必要があるからである。配列に一行ずつ代入する場合は、図21の<コンパイラの機能を使用して配列を128個作成する処理を記述させて配列に代入する場合のプログラム>には、NLを一切記述していない。配列に代入する場合は、図21の<コンパイラの機能を使用して配列を128個作成する処理を記述させて配列に代入する場合のプログラム>の様にNLを省略できる。配列の要素一個に一行ずつ代入するので一行ずつ明確に区切る必要が無いからである。
図22の<コンパイラの機能を使用してSwitch文を128個記述させて変数に代入する場合のプログラム>と図20の<コンパイラの機能を使用して配列を128個作成する処理を記述させて変数に代入する場合のプログラム>NLの説明を終わる。
<Program for writing 128 Switch statements using the compiler function and assigning to variables> in FIG. 22 <Process for creating 128 arrays using the compiler function in FIG. The explanation of NL described in the figure of Program for assigning to variables> will be given.
NL described in FIG. 20 is a program in which a process for creating 128 arrays using a compiler function is described and assigned to a variable. NL is a variable. Carriage return and line feed are assigned to NL. This is because the substitution process is performed on the variable Deta one after another, and it is necessary to clearly separate and substitute each line. When assigning to an array line by line, NL is not described at all in the <program in which processing for creating 128 arrays using the compiler function is described and assigned to an array> in FIG. When substituting into an array, NL can be omitted as shown in <program in which processing for creating 128 arrays using the compiler function is described and assigned to an array> in FIG. This is because one line is assigned to each element of the array, so there is no need to separate each line clearly.
<Program for writing 128 Switch statements using the compiler function and assigning to variables> in FIG. 22 <Process for creating 128 arrays using the compiler function in FIG. End of explanation of program> NL when substituting for variable.
図22の<コンパイラの機能を使用してSwitch文を128個記述させて変数に代入する場合のプログラム>の5行目の
SDeta = SDeta + "FI_" + i + "[i] = FI_" + i + "[i] + , + KFIchi;" + NL;
の部分である。この記述は、コンパイラの機能を使用してSwitch文を128個書かせる処理を記述させる記述である。しかし、これを実行すると出来上がるプログラムは、以下の様になる。
SDeta = SDeta + FI_数値[i] = FI_数値[i] + , + KFIchi;
この様に「 + , + 」となってしまう。本当は、「,」が文字である事を明示する「"」で「,」を囲んだ「 + "、" + 」と記述させたいのである。完成したプログラムで、「 + "、" + 」と記述させるには、以下の様に記述する必要がある。
SDeta = SDeta + "FI_" + i + "[i] = FI_" + i + "[i] + " + "","" + " + KFIchi;" + NL;
ところが、コンパイラの付属のエディターは、「"」を文字として使用する事を禁止しているので「"","""」は、エラーとなってしまう。その為、一旦、「 + , + 」と記述させて「 + "、" + 」となる様に「"」を人為的な入力処理で挿入しなければならなくなるのである。この様に、コンパイラに付属されたプログラムを記述するエディターを使用すると「"""」と「""""」が記述できない使用になっているのが普通である為、エラーとみなされるのである。
The fifth line of <Program to describe 128 Switch statements using the compiler function and assign them to variables> in FIG.
SDeta = SDeta + "FI_" + i + "[i] = FI_" + i + "[i] +, + KFIchi;" + NL;
It is a part of. This description is a description that describes the process of writing 128 Switch statements using the compiler function. However, when this is executed, the resulting program is as follows.
SDeta = SDeta + FI_number [i] = FI_number [i] +, + KFIchi;
In this way, it becomes “+, +”. In fact, I want to write "+", "+" in which "," is enclosed by """to clearly indicate that", "is a character. In order to describe "+" and "+" in the completed program, it is necessary to describe as follows.
SDeta = SDeta + "FI_" + i + "[i] = FI_" + i + "[i] +" + "", "" + "+ KFIchi;" + NL;
However, the editor attached to the compiler prohibits the use of """as a character, so""","""" results in an error. For this reason, it is necessary to insert "" by artificial input processing so that it is described as "+, +" and becomes "+", "+". In this way, if you use the editor that describes the program attached to the compiler, it is normal to use """""and"""""", so it is considered an error. .
分岐処理をIF文で場合分けする場合は、少し複雑な処理が出来る。少し複雑な処理とは、IF文で変数や配列に代入されているデーターの組合せで処理を分岐させると言う処理である。従来は、コンピューターに、IF文で、複数の変数に代入された数値の組合せで分岐処理を行うと言う処理をコンピューターで自動的に記述させる技術が存在し無かった。コンパイラに付属されたプログラムを記述するエディターを使用しても、IF文で複数の変数や複数の配列に代入されているデーターの組合せで処理を分岐させると言う処理を記述させられない。その為、コンパイラに付属されたプログラムを記述するエディターに、1ブロック分のIF文による複数の変数や複数の配列に代入された数値の組合せの分岐処理を記述して、記述した1ブロック分のIF文による分岐処理をコピーして、そのコピーを貼り付けて、貼り付けた1ブロック分のIF文による分岐処理で、書き換えなければならない部分を人為的な処理で書き換えると言う処理をしなければならなかった。本発明によって、この様な人為的な入力処理を行わずに、IF文で複数の変数や複数の配列に代入されているデーターの組合せで処理を分岐させると言う処理を記述させられる様になる。 When branch processing is divided into IF statements, slightly complicated processing can be performed. Slightly complicated processing is processing that branches processing by a combination of data assigned to variables and arrays in IF statements. Conventionally, there has been no technology that allows a computer to automatically describe a process of performing a branch process using a combination of numerical values assigned to a plurality of variables using an IF statement. Even if you use the editor that describes the program attached to the compiler, you cannot describe the process of branching the process by combining multiple variables and data assigned to multiple arrays in the IF statement. For that reason, in the editor that describes the program attached to the compiler, describe the branch processing of the combination of numerical values assigned to multiple variables and multiple arrays using the IF statement for one block, and write for one block Copy the branch process by IF statement, paste the copy, and do the processing to rewrite the part that must be rewritten by artificial processing in the branch processing by IF statement for one pasted block. did not become. According to the present invention, it is possible to describe a process of branching a process by a combination of data assigned to a plurality of variables and a plurality of arrays in an IF statement without performing such an artificial input process. .
IF文で複数の変数や複数の配列に代入されているデーターの組合せで処理を分岐させると言う処理とは、どの様なIF文なのかと言うと、図23の<コード自動記述2ソフトウェアで2行2列で分岐する処理を記述させた処理結果>と図24の<コード自動記述2ソフトウェアで2行3列で分岐する処理を記述させた処理結果>に示す様なIF文である。変数に代入された数値が幾つの場合と、変数に代入された数値が幾つの場合の組合せで処理を分岐すると言うのが、図23の<コード自動記述2ソフトウェアで2行2列で分岐する処理を記述させた処理結果>で示すIF文である。
変数に代入された数値が幾つの場合と、変数に代入された数値が幾つの場合と、変数に代入された数値が幾つの場合の組合せで処理を分岐すると言うのが、図24の<コード自動記述2ソフトウェアで2行3列で分岐する処理を記述させた処理結果>で示すIF文である。
いずれの場合も、行数が指定できるようになっているので少々複雑である。
一つ目の変数に代入された数値と、2つ目の変数に代入された数値との組合せが2列の組合せである。1個1個の変数に代入される数値が0から幾つまでの数値が代入されるのかと言うのが問題になるが、1個1個の変数に代入される数値が0から幾つまでの数値が代入されるのかを指定するのが行数に相当するもので、指定した行数を最大値として、変数の数で組合せを作成する。作成した数値の組合せを変数や、配列に代入された数値が幾つなのかを示す数値の部分に挿入する事で1ブロック分のプログラムを完成させて、組合せ総数分のブロック数分の分岐処理を記述させるのが、本発明のコード自動記述2ソフトウェアを記録した記録媒体である。
What kind of IF statement is the process of branching the process by the combination of data assigned to multiple variables and multiple arrays in the IF statement? The IF statement as shown in the processing result describing the process branching in
The process is branched depending on the combination of the number of numerical values assigned to a variable, the number of numerical values assigned to a variable, and the number of numerical values assigned to a variable. This is an IF statement indicated by a processing result> in which processing for branching in 2 rows and 3 columns is described by the
In either case, the number of lines can be specified, which is a little complicated.
The combination of the numerical value assigned to the first variable and the numerical value assigned to the second variable is a combination of two columns. The question is how many numbers from 0 to 1 are assigned to each variable, but from 0 to how many values are assigned to each variable. It is equivalent to the number of rows to specify whether or not is assigned, and a combination is created by the number of variables with the specified number of rows as the maximum value. By inserting the created numerical combination into a variable or the numerical value part indicating the number of numerical values assigned to the array, the program for one block is completed, and branch processing for the number of blocks for the total number of combinations is performed. What is described is a recording medium on which the
もう少し、詳しく言い換えると、変数の数値の部分を明示する為に文字列を使用する。使用する文字列を指定するのであるが、指定するには、文字列を図符号Qの回答指定名に入力する事で指定する。組合せ分岐の1ブロック分のIF文による複数の変数や複数の配列に代入された数値の組合せの数値の部分を回答指定名で指定した文字列で記述した分岐処理を記述して、本発明のソフトウェアで処理させると、組合せ分岐の1ブロック分のIF文による複数の変数や複数の配列に代入された数値を示す数値を記述する部分を回答指定名で指定した文字列で記述した分岐処理の中から、ブロック毎に回答指定名を探し出して、ブロック毎に違う数値の組合せの数値に置換して、組合せ総数分のブロックを記述するのが、本発明のコード自動記述2ソフトウェアを記録した記録媒体である。
回答指定名とは、組合せ分岐の1ブロック分の複数の変数や配列に代入された数値の組合せによる分岐処理で使用されている複数の変数や配列に代入されている数値を示す為の数値に、組合せの数値を作成して作成した組合せの数値を使用する為に、作成した組合せの数値に置換する位置を明示する為の目印として任意に指定した文字列の事である。
変数や配列に代入された数値の組合せによる分岐処理の場合、変数や、配列に代入される数値の最小値は、0であり、変数や、配列に代入される数値の最大値を行数と呼び、変数や、配列の個数を列と呼ぶ事とする。
To put it a little more in detail, we use strings to specify the numeric part of a variable. The character string to be used is specified. To specify the character string, the character string is specified by inputting it to the answer designation name of the graphic symbol Q. A branch process in which a numerical part of a combination of numerical values assigned to a plurality of variables or arrays by an IF statement for one block of a combination branch is described by a character string specified by an answer designation name is described, and When processed by software, a branch process in which a part describing a numerical value indicating a numerical value assigned to multiple variables or multiple arrays by an IF statement for one block of a combinational branch is described with a character string specified by an answer designation name A record in which the code
The answer designation name is a numerical value to indicate the numerical value assigned to the multiple variables and arrays used in the branch processing by the combination of the numerical values assigned to the multiple variables and arrays for one block of the combination branch. A character string arbitrarily designated as a mark for clearly indicating the position to be replaced with the created combination value in order to use the created combination value.
In branch processing by a combination of numerical values assigned to variables and arrays, the minimum value assigned to variables and arrays is 0, and the maximum value assigned to variables and arrays is the number of rows. The number of variables and arrays is called a column.
図25の<3行2列の組合せ説明図>と、図26の<2行4列の組合せ説明図>で説明する。図25の<3行2列の組合せ説明図>と、図26の<2行4列の組合せ説明図>の図中の「,」は、数値を区切っている区切り記号である事を注意して参照する事。
図25の<3行2列の組合せ説明図>は、3行2列の数値の組合せを算出した結果を図にしたのが図25である。一つの変数に0から2までの数値が代入される場合なので、3行となり、変数の数は、2個であるから、2列となる。
図26の<2行4列の組合せ説明図>は、2行3列の数値の組合せを算出した結果を図にしたのが図26である。一つの変数に0から1までの数値が代入される場合なので、2行となり、変数の数は、4個であるから、4列となる。
この様な、変数に代入された数値の組合せで、処理を分岐させるIF文の1ブロック毎に違う変数に代入された数値の組合せとして、数値を記述させて、必要量のブロック分の処理を記述させる事が出来るソフトウェアが無かったので問題であった。問題になる理由は、非常に数多くの書き換えと、多種類の組合せがある為に、人為的な入力処理では、その労力も大きいし、組合せの記述間違いも多くなるからである。
This will be described with reference to <Combination explanatory diagram of 3 rows and 2 columns> in FIG. 25 and <Combination explanatory diagram of 2 rows and 4 columns> in FIG. Note that the “,” in the <3
FIG. 25 is a diagram illustrating a result of calculating a combination of numerical values of 3 rows and 2 columns in <combination explanatory diagram of 3 rows and 2 columns> of FIG. Since a numerical value from 0 to 2 is assigned to one variable, there are three rows and the number of variables is two, so there are two columns.
26 is a diagram illustrating a result of calculating a combination of numerical values of 2 rows and 3 columns. Since a numerical value from 0 to 1 is assigned to one variable, there are two rows, and since the number of variables is four, there are four columns.
In such a combination of numerical values assigned to variables, the numerical value is described as a numerical value combination assigned to a different variable for each block of the IF statement that branches the processing, and processing for the required amount of blocks is performed. It was a problem because there was no software that could be written. The reason for the problem is that because there are so many rewrites and many kinds of combinations, the manual input processing requires a lot of labor and mistakes in the description of the combinations.
本発明のコード自動記述2ソフトウェアを記録した記録媒体の発明は、2つある。
第一の発明は、分岐処理の1ブロック分のプログラム毎に、違う名前の変数や配列を使いたい場合や、分岐処理の1ブロック分のプログラム毎に、違う人間が読める数値や機械語の数値を使いたい場合に、分岐処理の1ブロック分のプログラム毎に、違う名前の変数や配列にする為に、連続番号を変数や配列に連結する事で違う名前に作り替えて記述したり、分岐処理の1ブロック分のプログラムの中に、人間が読める数値や機械語の数値を使いたい箇所を連続番号に置換して記述したりする為に、連続番号に置換する位置に、任意の文字列を指定したプログラムを1ブロック分だけを人為的な入力作業で記述させる事で、任意の数のブロックの分岐処理を自動的に記述させるソフトウェアである。
第一の発明を少し詳しく説明する。
配列名や変数名に数値を使用して、各変数や各配列の名前の数値の部分を連続番号とし、多分岐処理のSwitch文の条件の答えの部分も連続番号の数値を使い、配列や変数の名前の数値と一致させる事で、処理を簡略化させると言う一定のルールを使用して、その変数や配列や条件の答えとなる数値の連続番号を作成して、変数や配列の名前に連続番号の数値を連結させたり、Switch文の条件の答えの部分に変数や配列の名前に使用した連続番号の数値を1ブロック毎に違う連続番号の数値を記述して、大量の分岐処理を記述させる技術である。
第一の発明を少し詳しい説明を終わる。
第二の発明は、複数の変数や配列に代入されている数値の組合せによる分岐処理を1ブロック分だけを人為的な入力作業で記述させる事で、組合せ数分の分岐処理を自動的に記述させるソフトウェアである。
第二の発明の少し詳しい説明を行う。
複数個の変数や複数個の配列に代入された数値の組合せとして、複数個の変数や複数個の配列に代入される数値の最小値を0として、複数個の変数や複数個の配列に代入される数値の最大数を行数と呼び、変数や配列の個数を列数と呼び、行数と列数の組合せを算出して、1ブロック分のIF文を例として人為的な入力処理等で記述させて、人為的な入力処理等で記述させた1ブロック分のIF文の条件の部分の数値を記述しなければならない部分に1ブロック毎に違う行数と列数によって算出される数値の組合せの数値をコンピューターによって算出し、算出した組合せの数値をコンピューターによって、自動的に記述して1ブロックの分岐処理を記述させて、行数と列数によって算出される数値の組合せの総数分のブロック数のブロックをコンピューターによって、自動的に記述させる技術である。
第二の発明の少し詳しい説明を終わる。
There are two inventions of the recording medium on which the
In the first invention, if you want to use a variable or variable with a different name for each program for one block of branch processing, or for a program for one block of branch processing, a different human-readable numerical value or numerical value for machine language If you want to use, you can create a different name for each block of the program for branch processing by using a serial number connected to the variable or array. In a program for one block of processing, an arbitrary character string at the position to be replaced with a continuous number in order to describe a place where a human-readable numerical value or a machine language numerical value is to be replaced with a continuous number. Is a software that automatically describes branch processing of an arbitrary number of blocks by causing only one block to be described by a manual input operation.
The first invention will be described in detail.
Using numeric values for array names and variable names, the numeric part of each variable or array name is used as the serial number, and the answer part of the switch statement condition for multi-branch processing is also used as the serial number. Using a certain rule that simplifies the process by matching the numeric value of the variable name, create a sequential number of the numeric value that answers the variable, array, or condition, and name the variable or array A large number of branching processes can be performed by concatenating numerical values of sequential numbers to each other, or by describing the numerical values of serial numbers that are different for each block in the answer part of the condition of the Switch statement. This is a technique that describes
The first invention is a little more detailed.
The second invention automatically describes the branching process for the number of combinations by letting you describe the branching process based on the combination of numerical values assigned to multiple variables and arrays with only one block by manual input. It is software to let you.
A little more detailed explanation of the second invention will be given.
As a combination of numerical values assigned to multiple variables or multiple arrays, the minimum value assigned to multiple variables or multiple arrays is set to 0, and assigned to multiple variables or multiple arrays. The maximum number of numbers to be processed is called the number of rows, the number of variables and arrays is called the number of columns, the combination of the number of rows and the number of columns is calculated, and an artificial sentence such as an IF statement for one block is used as an example A numerical value calculated by the number of rows and columns that differ for each block in the part where the numerical value of the conditional part of the IF statement for one block described by artificial input processing etc. must be described The number of combinations is calculated by the computer, and the calculated number of combinations is automatically described by the computer to describe the branch processing of one block, and the total number of combinations of numbers calculated by the number of rows and the number of columns. Compile the number of blocks By Ta, a technique for automatically written.
A little more detailed explanation of the second invention is completed.
第一の発明を違う言い方で表現すると、変数や配列を作成するプログラムや配列の初期化を行うプログラムの一個分のプログラムを例として記述するか、IF文やSwitch文の1ブロック分のプログラムを例として記述して、個数や分岐処理の数を指定するだけで、分岐処理の1ブロック毎に、名前が違う配列や変数を分岐処理に必要な分だけ自動で作成したり、分岐処理の分岐の分だけ書き換えなければならない部分を書き換えたプログラムを自動で記述する技術が、本発明のコード自動記述2ソフトウェアを記録した記録媒体であると表現できる。変数や配列を作成したり、初期化したりする場合のプログラムの一個分とは、変数や配列の一個分と言う意味である。
また、回答指定名と、ブロック指定名は、分岐処理の1ブロック分のプログラムの中のどこの位置に記述するものであっても本発明のコード自動記述2ソフトウェアを記録した記録媒体である。本発明のコード自動記述2ソフトウェアを記録した記録媒体は、回答指定名とブロック指定名を、分岐処理の1ブロック分のプログラムの中のどこの位置であっても記述して、置換する位置を明示する文字列として使用する事が可能だからである。
To express the first invention in a different way, a program for creating a variable or array or a program for initializing an array is described as an example, or a program for one block of an IF statement or a Switch statement. For example, just specify the number and the number of branch processes, and automatically create arrays and variables with different names for each block of the branch process as many as necessary for the branch process. A technique for automatically describing a program in which a portion that needs to be rewritten is automatically recorded as a recording medium on which the
The answer designation name and the block designation name are recording media on which the
分岐処理の分岐の分だけ書き換えなければならない部分とは、配列の名前や変数の名前と、Switch文の1ブロック分のプログラムに必ずある「case 条件の答え」の条件の答えの部分である。この分岐処理の1ブロック毎に書き換えたい変数や配列の名前の前後や名前の文字列の先頭から何文字目の位置に、連続番号の数値と置き換えて連結するのかを、人為的な入力処理でブロック指定名を入力する事で連続番号の数値と位置を指定するか、または、分岐処理の1ブロック毎に名前を変えたい配列名や変数名を指定するのに、配列名や変数名の連続番号の数値以外の共通の名前の文字列の部分を人為的な入力処理で指定する事で特定するのが、本発明のコード自動記述2ソフトウェアを記録した記録媒体である。
〔実施例1〕では、分岐処理の1ブロック毎に名前を変えたい配列名や変数名を指定するのに、連続番号の数値以外の共通の名前の文字列の部分を人為的な入力処理で指定する事で特定する技術は、紹介していないが、現在の技術で可能な技術なので本発明のコード自動記述2ソフトウェアを記録した記録媒体である事を明記する。
The part that needs to be rewritten by the amount corresponding to the branch of the branch process is the answer part of the condition of the "case condition answer" that is always included in the name of the array or variable and the program of one block of the Switch statement. Artificial input processing is used to determine the number of characters to be replaced before and after the name of the variable or array to be rewritten for each block of the branch processing, or at the beginning of the character string of the name. Specify a sequence number and position by entering a block designation name, or specify an array name or variable name whose name is to be changed for each block of branch processing. It is a recording medium on which the
In [Embodiment 1], in order to specify an array name or variable name whose name is to be changed for each block of branch processing, a part of a character string having a common name other than a numerical value of a serial number is input by an artificial input process. Although the technology specified by designating is not introduced, since it is a technology that is possible with the current technology, it is clearly stated that it is a recording medium on which the
第二の発明の行数と列数の組合せの例として、図25の<3行2列の組合せ説明図>と図26の<2行4列の組合せ説明図>がある。行数が0から最大値で列数が変数の個数であるから、変数に代入された各々の数値の組合せとなる。1個の変数に代入された数値だけでの組合せは無いので、図25の<3行2列の組合せ説明図>と図26の<2行4列の組合せ説明図>の様な組合せになる。
As examples of the combination of the number of rows and the number of columns of the second invention, there are <3 row by 2 column combination explanatory diagram> in FIG. 25 and <2 row by 4 column combination explanatory diagram> in FIG. Since the number of rows is 0 to the maximum value and the number of columns is the number of variables, it is a combination of each numerical value assigned to the variable. Since there is no combination of only the numerical values assigned to one variable, the combination is as shown in <3
コンパイラに付属されたプログラムを記述するエディターを使用すると「"」が記述できないと言う問題は、「"」をテキストボックスに書き込んで、書き込んだテキストボックスの「"」文字を変数に代入して使用する事で解決できるのである。
〔実施例3〕で、この「"」をテキストボックスに書き込んで、書き込んだテキストボックスの「"」文字を変数に代入して使用する処理を行っている。
〔実施例3〕では、図30の<実施例3の変数コード自動記述2ソフトウェアの操作画面図>の図符号aの禁止文字指定テキストボックスに予め「"」を代入してある。図符号gの変数作成ボタンを図符号Dのマウスでクリックしてソフトウェアの処理を開始させた後の処理の実行中に、「"」を変数に代入して「"」をコンパイラ付属のエディターに記述されたプログラムで使用しているのである。〔実施例3〕では、独立したソフトウェアとして処理するプログラムであるから、コンパイラ付属のエディターは使用していない。〔実施例3〕は、プログラムを記述する際にコンパイラに付属されたエディターを使用して処理工程を記述する為、コンパイラに付属されたエディターに、変数を記述して、記述した変数に「"」を代入する処理を記述しなければならなくなった為に処理出来ないと言う状態になったソフトウェアである。その為、〔実施例3〕では、テキストボックスに、「"」を代入しているのである。しかし、テキストボックスに、「"」を代入しておいて処理工程でテスキトボックスに代入されている「"」をString型の変数に代入して使用する技術は、常識的な技術である。また、「"」に相当する機械語の数値を変数に代入して文字に変換して使用する技術もある。機械語の数値を変数に代入して文字に変換する技術も、常識的な技術である。
The problem that """cannot be written when using the editor that describes the program that comes with the compiler is to write""" into the text box and use the """character in the written text box as a variable. It can be solved by doing.
In [Embodiment 3], this """is written in the text box, and the processing is performed by substituting the""" character in the written text box into a variable.
In [Embodiment 3], """is assigned in advance to the prohibited character designation text box of the figure symbol a in <Automatic
〔実施例1〕では、コンパイラに付属されたエディターでは、「"」を文字として使用できないと言う問題に対する解決策として、コンパイラに付属されたエディターでプログラムを記述する必要性が無い独立したソフトウェアでプログラムを記述させる事で問題を解決している。また、分岐処理を行う場合に必要になる配列や変数には、名前の前方や後方や名前の任意の位置に、人間が読む事が出来る数値を連続番号で作成して連結させた名前を使用する事を義務付ける事で問題を解決している。
「名前の前方や後方や名前の任意の位置に」と記述して説明したが、本発明の実施例で使用したコンパイラでは、配列や変数の先頭の位置に相当する名前の前方に数値を付する事が出来ない使用になっている。本発明の実施例で使用したコンパイラ以外で変数や配列の名前の前方に数値を付けられる場合があるであろうと思われる為、念の為に、「名前の前方」を含む説明を行った事を明記する。
[Embodiment 1] In the editor attached to the compiler, as a solution to the problem that """cannot be used as a character, independent software that does not need to write a program in the editor attached to the compiler. The problem is solved by writing a program. For arrays and variables required for branch processing, use names that are created by concatenating numbers that can be read by humans with sequential numbers in front of, behind, or in any position of the name. The problem is solved by obliging to do.
Although described as “before or behind the name or at any position of the name”, the compiler used in the embodiment of the present invention adds a numerical value to the front of the name corresponding to the first position of the array or variable. It is used that cannot be done. Since it seems that there may be cases where a numerical value is added in front of the names of variables and arrays other than the compiler used in the embodiment of the present invention, the explanation including “front of name” has been made just in case. Specify clearly.
Switch文に於けるcase条件の答えの「条件の答え」の部分にも、変数の名前や配列の名前の様に、人間が読む事が出来ない数値を連続番号で作成して、作成した連続番号の数値を使用する事を義務付ける事で問題を解決している。case条件の答えの「条件の答え」の部分に、人間が読める数値を記述させても、コンパイラは、「"作成した連続番号の数値"」と記述されていない限り、人間が読む事が出来ない数値として扱う事になっているので問題なく記述させられる。作成した連続番号の数値とは、「"作成した連続番号の数値"」の作成した連続番号の数値が、例えば「1」の場合は、「"1"」と記述すると言う事である。
但し、case条件の答えの「条件の答え」の部分に、「"作成した連続番号の数値"」と言う様な記述をさせる技術も本発明の簡単なレパートリーである。case条件の答えの「条件の答え」の部分に、人間が読む事が出来る数値を記述しても問題なくSwitch文による分岐処理が可能である事は言うまでもなく常識であるが、コンパイラの仕様の部分であるのでコンパイラの仕様上、人間が読む事が出来る連続番号を作成して、作成した連続番号の数値をcase(条件の答え)の「条件の答え」の部分に、記述しても問題なくSwitch文による分岐処理が可能である場合のみ本発明の簡単なレパートリーであると明言する。
また、人間が読む事が出来る連続番号を作成して、case条件の答えの「条件の答え」の部分に、「"」で囲まずに作成した連続番号の数値を記述する事で、人間が読む事が出来ない数値として記述させた場合でも、問題なく処理が出来るかどうかは、コンパイラの仕様の問題であるから、Switch文による分岐処理が可能である場合のみ、本発明のコード自動記述2ソフトウェアを記録した記録媒体であると明言する。
In the “Condition answer” part of the answer to the case condition in the Switch statement, a numerical value that cannot be read by humans, such as the name of a variable or the name of an array, is created using a serial number. The problem is solved by obliging to use the numerical value of the number. Even if a human-readable numerical value is entered in the “conditional answer” part of the answer to the case condition, the compiler can still read it unless it is described as ““ Number of the created serial number ””. Since it is supposed to be handled as a numerical value, it can be described without problems. The numerical value of the generated serial number means that “1” is described when the numerical value of the generated continuous number of ““ the numerical value of the generated continuous number ”” is “1”, for example.
However, the technique for making the “condition answer” part of the answer of the case condition be described as ““ the numerical value of the created serial number ”” is also a simple repertoire of the present invention. It goes without saying that branch processing by the Switch statement is possible without problems even if a human-readable numerical value is described in the “conditional answer” part of the case condition answer. Because it is a part, it is not necessary to create a serial number that can be read by humans in the compiler's specifications, and to describe the numerical value of the created serial number in the “conditional answer” part of the case (conditional answer) It is stated that this is a simple repertoire of the present invention only when branch processing by a Switch statement is possible.
In addition, by creating a serial number that can be read by humans, and describing the numerical value of the serial number created without enclosing it in """inthe" condition answer "part of the answer of the case condition, Even if it is described as a numerical value that cannot be read, whether or not processing can be performed without any problem is a problem of the compiler specification. It is stated that it is a recording medium that records software.
〔実施例1〕の問題解決技術を図を使った簡単な説明を行う。
図6の<コード自動記述2ソフトウェアで配列を3個作成する処理を記述させた場合の操作画面図>は、本発明のコード自動記述2ソフトウェアを記録した記録媒体で、数値型の配列を3個作成する処理を記述させる操作画面図である。
人為的な入力処理によって、ソフトウェアの操作画面に以下の処理を行う。
図符号Dのマウスを使用して図符号Fのコード文の選択ボタンをクリックして図符号Eのコード文の選択画面を「IF文やその他」に選択設定して、図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているのでそのまま入力せずに、図符号Hのブロック数指定画面を図符号Dのマウスを使用して図符号Iのブロック数指定ボタンをクリックして3に設定して、図符号Cのキーボードを使用して図6の<コード自動記述2ソフトウェアで配列を3個作成する処理を記述させた場合の操作画面図>の様に図符号Jのコード記述テキストボックスに入力して、図符号Kの実行ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。
The problem solving technique of the first embodiment will be briefly described with reference to the drawings.
<Operation screen diagram when processing for creating three arrays by
The following processing is performed on the software operation screen by artificial input processing.
Using the mouse of figure symbol D, click the code sentence selection button of figure symbol F, select and set the code sentence selection screen of figure symbol E to "IF sentence and other", and specify the block of figure symbol G In the name text box, “J” is entered in advance, so do not enter it as it is, and click the block number designation button for graphic code I using the mouse for graphic code D on the graphic number H block number designation screen. Set to 3, and using the keyboard of FIG. C, as shown in FIG. 6 <Operation screen diagram when processing to create 3 arrays by code
ブロック指定名の説明を行う。
変数や配列の場合は、名前の前後または、任意の位置にブロック指定名を使用して、「Switch文のcase条件の答え」の条件の答えの部分に必ず、ブロック指定名を使用して記述する事と、他のプログラムの部分に絶対にブロック指定名で使用している文字や文字列を使用しない事を条件として1ブロック分のプログラムを記述したり、IF文の場合は、変数や配列の名前の任意の位置にブロック指定名を使用して1ブロック分のプログラムを記述したりして、図符号Jのコード記述テキストボックスに記述して、図符号Kの実行ボタンを図符号Dのマウスを使用してクリックして処理を開始させて、コード自動記述2ソフトウェアの処理によって、ブロック指定名を図符号Jのコード記述テキストボックスに記述したプログラムの中から探し出して、作成された連続番号の数値に、探し出したブロック指定名を置換する事で完成されたプログラムを記述させる本発明のソフトウェアで使用する連続番号の数値に置換する為の目印である。
言い換えると、ブロック指定名とは、1ブロック毎に違う変数や配列の名前にしたい場合に、変数や配列の名前の一部分を1ブロック毎に違う連続番号に変更する事で1ブロック毎に違う変数や配列の名前に変更して使用する事を可能にする為に、変数や配列の名前の任意の位置に、ブロック指定名を目印として記述する事で、ブロック指定名が記述されている位置に、連続番号の数値を置換すると言う処理を行わせる為に目印として使用する文字列であり、「Switch文のcase条件の答え」の条件の答えの部分を1ブロック毎に違う連続番号に置換する目印として使用する文字列の事である。
もっと、簡単に言い換えると、ブロック指定名とは、1ブロック毎に違う名前の変数や、配列や、数値を使いたい場合に、連続番号を作成して、作成した連続番号を配列や、変数の名前の任意の位置に連結させて使用する為に、作成した連続番号と置換する位置を示す目印として使用する文字列の事であり、作成した連続番号を数値として使用する為に、作成した連続番号と置換する位置を示す目印として使用する文字列の事である。
ブロック指定名の説明を終わる。
Explains the block designation name.
For variables and arrays, use the block specification name before and after the name, or at any position, and always use the block specification name for the answer part of the condition in "Switch statement case condition". Write a program for one block on the condition that the character or character string used in the block specification name is absolutely not used in other program parts, or in the case of an IF statement, a variable or array A program for one block is described using a block designation name at an arbitrary position of the name of the name, and is described in a code description text box of the figure code J. Click with the mouse to start the process, search for the block designation name from the program described in the code description text box of symbol J by the code
In other words, the block designation name is a variable that differs for each block by changing a part of the variable or array name to a different serial number for each block when you want to change the variable or array name for each block. In order to make it possible to change the name to the name of an array or to use it, place the block designation name as a mark at any position of the variable or array name, so that the block designation name is This is a character string used as a mark to perform the process of replacing the numeric value of the serial number, and replaces the answer part of the condition of the “answer of case condition of Switch statement” with a different serial number for each block. It is a character string used as a landmark.
To put it more simply, the block designation name is a variable name, array, or numeric value that is different for each block. It is a character string used as a mark to indicate the position to replace the created serial number in order to use it by linking it to an arbitrary position in the name. This is a character string used as a mark indicating the position to replace the number.
End of description of block designation name.
この後は、コンピューターと、本発明のコード自動記述2ソフトウェアを記録した記録媒体が共同して処理を実行する。処理を実行し終わった結果が、図15の<コード自動記述2ソフトウェアで配列を3個作成する処理を記述させた処理結果>である。図15の<コード自動記述2ソフトウェアで配列を3個作成する処理を記述させた処理結果>に示す様に、3個の数値型の配列サイズを10個で作成しろと言うプログラムの記述に成功している。
図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているので、この「J」が図符号Jのコード記述テキストボックスに、人為的な入力処理で記述された文字列の中から、コンピューターと本発明のコード自動記述2ソフトウェアを記録した記録媒体が「J」を探し出して数値に変換する事で3個の配列を作成しろと言うプログラムを記述させたのである。
Thereafter, the computer and the recording medium on which the
Since “J” is input in advance in the block designation name text box of the graphic symbol G, this “J” is the character string described by the artificial input process in the code description text box of the graphic symbol J. Among them, a computer and a recording medium on which the code
図7の<コード自動記述2ソフトウェアで3個の配列を初期化する処理を記述させた操作画面図>は、本発明のコード自動記述2ソフトウェアを記録した記録媒体で、数値型の配列を3個初期化しろと言う処理を記述させる操作画面図である。
人為的な入力処理によって、ソフトウェアの操作画面に以下の処理を行う。
図符号Dのマウスを使用して図符号Fのコード文の選択ボタンをクリックして図符号Eのコード文の選択画面を「IF文やその他」に選択設定して、図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているのでそのまま入力せずに、図符号Hのブロック数指定画面を図符号Dのマウスを使用して図符号Iのブロック数指定ボタンをクリックして3に設定して、図符号Cのキーボードを使用して図7の<コード自動記述2ソフトウェアで3個の配列を初期化する処理を記述させた操作画面図>の様に、図符号Jのコード記述テキストボックスに入力して、図符号Kの実行ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。
<Operation screen diagram in which processing for initializing three arrays with
The following processing is performed on the software operation screen by artificial input processing.
Using the mouse of figure symbol D, click the code sentence selection button of figure symbol F, select and set the code sentence selection screen of figure symbol E to "IF sentence and other", and specify the block of figure symbol G In the name text box, “J” is entered in advance, so do not enter it as it is, and click the block number designation button for graphic code I using the mouse for graphic code D on the graphic number H block number designation screen. Set to 3, and using the keyboard shown in Fig. C, as shown in Fig. 7 <Operation screen diagram that describes the process of initializing three arrays using the
この後は、コンピューターと、本発明のコード自動記述2ソフトウェアを記録した記録媒体が共同して処理を実行する。処理を実行し終わった結果が、図16の<コード自動記述2ソフトウェアで3個の配列を初期化する処理を記述させた処理結果>である。図16の<コード自動記述2ソフトウェアで3個の配列を初期化する処理を記述させた処理結果>に示す様に、3個の数値型の配列を初期化しろと言うプログラムの記述に成功している。
図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているので、この「J」が図符号Jのコード記述テキストボックスに、人為的な入力処理で記述された文字列の中から、コンピューターと本発明のコード自動記述2ソフトウェアを記録した記録媒体が「J」を探し出して、連続番号の数値に置換する事で3個の配列を作成しろと言うプログラムを記述させたのである。
Thereafter, the computer and the recording medium on which the
Since “J” is input in advance in the block designation name text box of the graphic symbol G, this “J” is the character string described by the artificial input process in the code description text box of the graphic symbol J. Because the computer and the recording medium that recorded the automatic code description software of the present invention searched for "J" and replaced it with the numerical value of the serial number, I wrote a program to create three arrays. is there.
〔実施例1〕では、図符号Gのブロック指定名テキストボックスに入力された文字の「J」の文字を探し出して数値に置換すると言う処理で問題を解決しているが、ブロック指定名の様に文字や文字列を指定せずに、作成したい変数の名前や配列の名前を指定させて、指定させた変数の名前や配列の名前を探し出して、探し出した変数の名前や配列の名前の前後に連続番号の数値を連結したり、探し出した変数の名前や配列の名前の任意の位置に連続番号の数値を連結すると言う処理を行うソフトウェアも、簡単に実現可能な技術である。本発明のレパートリーとして可能である事を主張し、本発明のコード自動記述2ソフトウェアを記録した記録媒体であると明言する。
ブロック指定名の様に文字や文字列を指定せずに、作成したい変数の名前や配列の名前を指定させて、指定させた変数の名前や配列の名前を探し出して、探し出した変数の名前や配列の名前の前後に連続番号の数値を連結したり、探し出した変数の名前や配列の名前の任意の位置に連続番号の数値を連結すると言う処理を行うソフトウェアを簡単な処理変更1と言う事とする。
[Embodiment 1] solves the problem by searching for the character “J” of the character entered in the block designation name text box indicated by symbol G and replacing it with a numerical value. Specify the name of the variable or array you want to create without specifying a character or character string in, search for the name of the specified variable or array, and before or after the name of the variable or array you searched for Software that performs processing for concatenating numerical values of consecutive numbers to each other or concatenating numerical values of consecutive numbers to arbitrary positions of the names of variables and arrays that are found is also a technique that can be easily realized. Claiming that it is possible as a repertoire of the present invention, it is clearly stated that the recording medium is recorded with the
Specify the name of the variable or array you want to create without specifying a character or character string like the block specification name, find the name of the specified variable or array, search for the name of the variable you searched for, Software that performs the process of concatenating consecutive number values before and after the array name, or concatenating consecutive number values to any position of the name of the found variable or array name is called
簡単な処理変更1が、本発明の簡単なレパートリーであると言う説明を行う。
〔実施例1〕では、「J」の文字を探し出す事が出来ているので、「J」の文字ではなくて、数個の文字から成る文字列を探し出す事も簡単な処理であるからである。〔実施例1〕の実施例では、単独の文字を探し出す処理を行っているが、実は、複数文字から成る文字列を探し出す事も可能なソフトウェアである事を明記する。また、〔実施例2〕や〔実施例3〕では、図符号Gのブロック指定名テキストボックスが無く、図符号Gのブロック指定名テキストボックスに特定の文字や文字列を入力する事が出来ない状態で、変数の名前や配列の名前の後方に連続番号の数値を連結する処理を行っており、特定の文字を使用しなくても変数の名前や配列の名前の後方に連続番号の数値を連結する処理が可能である事の実証である。これらの処理は、常識的な処理である。
簡単な処理変更1が、本発明の簡単なレパートリーであると言う説明を終わる。
It will be described that the
In [Embodiment 1], since the character “J” can be searched for, it is also a simple process to search for a character string consisting of several characters instead of the character “J”. . In the embodiment of [Embodiment 1], a process of searching for a single character is performed, but it is specified that the software is actually capable of searching for a character string consisting of a plurality of characters. Also, in [Embodiment 2] and [Embodiment 3], there is no block designation name text box with graphic symbol G, and a specific character or character string cannot be entered in the block designation name text box with graphic symbol G. In the state, the processing is performed by concatenating the numerical value of the sequence number after the name of the variable or array, and the numerical value of the sequence number is added after the name of the variable or array without using a specific character. It is proof that the processing to connect is possible. These processes are common sense processes.
The explanation that the
図8の<コード自動記述2ソフトウェアでIF文による分岐を3個記述させた操作画面図>は、本発明のコード自動記述2ソフトウェアを記録した記録媒体で、IF文による分岐を3個記述しろと言う処理を記述させる操作画面図である。
人為的な入力処理によって、ソフトウェアの操作画面に以下の処理を行う。
図符号Dのマウスを使用して図符号Fのコード文の選択ボタンをクリックして図符号Eのコード文の選択画面を「IF文やその他」に選択設定して、図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているのでそのまま入力せずに、図符号Hのブロック数指定画面を図符号Dのマウスを使用して図符号Iのブロック数指定ボタンをクリックして3に設定して、図符号Cのキーボードを使用して図8の<コード自動記述2ソフトウェアでIF文による分岐を3個記述させた操作画面図>の様に、図符号Jのコード記述テキストボックスに、1ブロック分のIF文による分岐処理のプログラムをブロック指定名を必要な部分に使用して入力して、図符号Kの実行ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。
<Operation screen diagram in which three branches by IF statement are described by
The following processing is performed on the software operation screen by artificial input processing.
Using the mouse of figure symbol D, click the code sentence selection button of figure symbol F, select and set the code sentence selection screen of figure symbol E to "IF sentence and other", and specify the block of figure symbol G In the name text box, “J” is entered in advance, so do not enter it as it is, and click the block number designation button for graphic code I using the mouse for graphic code D on the graphic number H block number designation screen. Set the code to 3 and use the keyboard of Fig. C to display the code of Fig. J as shown in Fig. 8 <Operation screen diagram in which three branches by IF statement are described by the
この後は、コンピューターと、本発明のコード自動記述2ソフトウェアを記録した記録媒体が共同して処理を実行する。処理を実行し終わった結果が、図17の<コード自動記述2ソフトウェアでIF文による分岐処理を3個記述させた処理結果>である。図17の<コード自動記述2ソフトウェアでIF文による分岐処理を3個記述させた処理結果>に示す様に、3個の数値型の配列を初期化しろと言うプログラムの記述に成功している。
ブロック指定名を「J」と指定していると想定して説明する。図符号Jのコード記述テキストボックスに、人為的な入力処理で記述された文字列の中からブロック指定名の「J」を探し出して、連続番号の数値に置換する事で3個のIF文による分岐処理を作成しろと言うプログラムを記述させたのである。
Thereafter, the computer and the recording medium on which the
It is assumed that the block designation name is “J”. In the code description text box of figure J, find the block designation name "J" from the character string described by artificial input processing, and replace it with the numerical value of the serial number. I wrote a program to create a branch process.
図9の<コード自動記述2ソフトウェアでSwitch文による分岐を3個記述させた操作画面図>は、本発明のコード自動記述2ソフトウェアを記録した記録媒体で、Switch文による分岐を3個記述しろと言う処理を記述させる操作画面図である。
人為的な入力処理によって、ソフトウェアの操作画面に以下の処理を行う。
図符号Dのマウスを使用して図符号Fのコード文の選択ボタンをクリックして図符号Eのコード文の選択画面を「Switch文」に選択設定して、図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているのでそのまま入力せずに、図符号Hのブロック数指定画面を図符号Dのマウスを使用して図符号Iのブロック数指定ボタンをクリックして3に設定して、図符号Cのキーボードを使用して図9の<コード自動記述2ソフトウェアでSwitch文による分岐を3個記述させた操作画面図>の様に、図符号Jのコード記述テキストボックスに入力して、図符号Kの実行ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。
<Operation screen diagram in which three branches by Switch statement are described by
The following processing is performed on the software operation screen by artificial input processing.
Using the mouse with graphic symbol D, click the code statement selection button with graphic symbol F, select and set the code statement selection screen for graphic symbol E to "Switch statement", and specify the block designation name text for graphic symbol G Since “J” is entered in the box in advance, without entering it as it is, click the block number designation button for graphic symbol I using the mouse for graphic symbol D on the block number designation screen for graphic symbol H. Set to 3 and use the keyboard shown in Fig. C. Code description text of Fig. J as shown in Fig. 9 <Operation screen diagram in which three branches by Switch statement are described in the
この後は、コンピューターと、本発明のコード自動記述2ソフトウェアを記録した記録媒体が共同して処理を実行する。
Switch文では、多分岐処理の「case条件の答え」に続く、「処理するプログラムを記述する」と「break;」までの記述が1ブロックのプログラムであるが、必要な数の分岐処理を記述した後、Switch文を完成させるには、記述させた分岐処理のブロック数分のブロックの前方にSwitch(条件){と、後方にdefault:}を記述させる必要があるので、3個分のブロックを記述させたので、出来上がったSwitch文による分岐処理の3個分のブロックを記述させたcaseの部分の前方に「Switch(条件){」を連結させて、後方に、「break;」に連結して、Switch文を完成させる。
処理を実行し終わった結果が、図18の<コード自動記述2ソフトウェアでSwitch文による分岐処理を3個記述させた処理結果>である。図18の<コード自動記述2ソフトウェアでSwitch文による分岐処理を3個記述させた処理結果>に示す様に、Switch文による分岐処理を3個記述しろと言うプログラムの記述に成功している。
ブロック指定名を「J」と指定していると想定して説明する。図符号Jのコード記述テキストボックスに、人為的な入力処理で記述された文字列の中からブロック指定名の「J」を探し出して、連続番号の数値に置換する事で3個のSwitch文による分岐処理を作成しろと言うプログラムを記述させたのである。
Thereafter, the computer and the recording medium on which the
In the Switch statement, the description up to “describe the program to be processed” and “break;” following the “case condition answer” of multi-branch processing is a one-block program, but describes the required number of branch processing. After that, in order to complete the Switch statement, it is necessary to describe Switch (condition) {in front of the number of blocks of the branch processing described, and default:} behind, so three blocks , "Switch (condition) {" is connected to the front of the case part where the blocks for the branch processing by the completed Switch statement are described, and "break;" is connected to the back. Then complete the Switch statement.
The result of completing the processing is <processing result in which three branch processes by the Switch statement are described by the
It is assumed that the block designation name is “J”. In the code description text box of figure J, find the block designation name “J” from the character string described by artificial input processing, and replace it with the numerical value of the serial number. I wrote a program to create a branch process.
図10の<コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた操作画面図>は、本発明のコード自動記述2ソフトウェアを記録した記録媒体で、変数を3個作成する処理を記述しろと言う処理を記述させる操作画面図である。
人為的な入力処理によって、ソフトウェアの操作画面に以下の処理を行う。
図符号Eのコード文の選択画面を図符号Dのマウスを使用して図符号Fのコード文の選択ボタンをクリックして図符号Eのコード文の選択画面を「IF文やその他」を選択設定して、図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているのでそのまま入力せずに、図符号Hのブロック数指定画面を図符号Dのマウスを使用して図符号Iのブロック数指定ボタンをクリックして3に設定して、図符号Cのキーボードを使用して図10の<コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた操作画面図>の様に、図符号Jのコード記述テキストボックスに入力して、図符号Kの実行ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。
<Operation screen diagram in which processing for creating three variables by
The following processing is performed on the software operation screen by artificial input processing.
Use the mouse of figure D to select the code sentence selection screen for figure E. Click the code sentence selection button for figure F to select the code sentence selection screen for figure E. Set and enter “J” in the block designation name text box of graphic code G in advance, so enter the block number designation screen of graphic code H using the mouse of graphic code D without entering it as it is. Click the block number designation button of Fig. I and set it to 3, and use the keyboard of Fig. C to display the operation for creating three variables with the <Code
この後は、コンピューターと、本発明のコード自動記述2ソフトウェアを記録した記録媒体が共同して処理を実行する。処理を実行し終わった結果が、図19の<コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた処理結果>である。図19の<コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた処理結果>に示す様に、変数を3個作成する処理を記述しろと言うプログラムの記述に成功している。
ブロック指定名を「J」と指定していると想定して説明する。図符号Jのコード記述テキストボックスに、人為的な入力処理で記述された文字列の中からブロック指定名の「J」を探し出して、連続番号の数値に置換する事で変数を3個作成する処理を記述しろと言うプログラムを記述させたのである。
Thereafter, the computer and the recording medium on which the
It is assumed that the block designation name is “J”. Create three variables by searching for the block designation name “J” in the code description text box of graphic symbol J from the character string described by artificial input processing and replacing it with the numerical value of the serial number. I wrote a program to describe the process.
図11の<コード自動記述2ソフトウェアで2行2列で分岐する処理を記述させる処理を行わせる為の人為的な手動による操作または入力処理後の操作画面図>は、本発明のコード自動記述2ソフトウェアを記録した記録媒体で、2行2列で数値の組合せを作成して、作成した数値の組合せの総数分のブロックを、ブロック毎に違う数値の組合せで変数の値を記述した分岐処理を記述させる為の人為的な入力処理を行い終わった状態のコード自動記述2ソフトウェアの操作画面である。
図12の<コード自動記述2ソフトウェアで2行2列で分岐する処理を記述させた操作画面図>は、処理を終了した時点でのコード自動記述2ソフトウェアの操作画面である。図符号Lのブロック数表示テキストボックスに、4と表示されている。組合せ総数が、4有ったと言う処理結果を示している。
人為的な入力処理によって、ソフトウェアの操作画面に以下の処理を行う。
図符号Dのマウスを使用して図符号Fのコード文の選択ボタンをクリックして図符号Eのコード文の選択画面を「組合せ分岐」に選択設定する。図符号Eのコード文の選択画面を「組合せ分岐」に選択設定と、操作画面が、図5の<コード自動記述2ソフトウェアの組合せ分岐の操作画面図>の様に変化する。図符号Eのコード文の選択画面を「IF文やその他」に選択設定した場合は、図3の<コード自動記述2ソフトウェアのIF文やその他の操作画面図>の様な操作画面であり、図符号Eのコード文の選択画面を「Switch文」に選択設定した場合は、図4の<コード自動記述2ソフトウェアのSwitch文の操作画面図>の様な操作画面で、「IF文やその他」と、「Switch文」に選択設定した場合は、全く操作画面は、変化しない。
The <
<Operation screen diagram describing processing for branching in 2 rows and 2 columns with
The following processing is performed on the software operation screen by artificial input processing.
Using the mouse of FIG. D, click the code sentence selection button of FIG. F to select and set the code sentence selection screen of FIG. E to “combination branch”. When the selection screen of the code sentence of FIG. E is selected and set to “combination branch”, the operation screen changes as shown in <
図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているのでそのまま入力せずに、図符号Mの行数指定画面を図符号Dのマウスを使用して図符号Nの行数指定ボタンをクリックして2に設定して、図符号Oの列数指定画面を図符号Dのマウスを使用して図符号Pの列数指定ボタンをクリックして2に設定して、図符号Qの回答指定名には、予め「d」が入力されているので、変更したくない限り、そのままの状態で、図符号Cのキーボードを使用して図11の<コード自動記述2ソフトウェアで2行2列で分岐する処理を記述させる処理を行わせる為の人為的な手動による操作または入力処理後の操作画面図>の様に、図符号Jのコード記述テキストボックスに、1ブロック分のIF文による分岐処理のプログラムをブロック指定名を必要な部分に使用して入力し、回答指定名を2個の変数に代入された数値を示す為の数値を記述する部分に記述して、図符号Kの実行ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。 Since “J” is input in advance in the block designation name text box of graphic code G, the line number designation screen of graphic code M is displayed as shown in FIG. Click the number-of-rows designation button to set it to 2, set the number-of-columns designation screen of figure symbol O to the number of columns by clicking the number-of-column designation button of figure symbol P using the mouse of symbol D, Since “d” is input in advance as the answer designation name of the graphic symbol Q, as long as it is not desired to change, the keyboard of the graphic symbol C is used as it is unless it is changed. In the code description text box of figure symbol J, as shown in the operation screen figure after manual manual input or input processing for performing the process of describing the process of branching in 2 rows and 2 columns. Branch processing program with IF statement Enter the specified name in the required part, enter the answer specified name in the part that describes the numerical value to indicate the numerical value assigned to the two variables, and click the execute button of figure code K Click with the D mouse to start the process.
この後は、コンピューターと、本発明のコード自動記述2ソフトウェアを記録した記録媒体が共同して処理を実行する。処理を実行し終わった結果が、図23の<コード自動記述2ソフトウェアで2行2列で分岐する処理を記述させた処理結果>である。図23の<コード自動記述2ソフトウェアで2行2列で分岐する処理を記述させた処理結果>に示す様に、IF文による2行2列の数値の組合せの総数分のブロックを記述して、変数の数値の組合せによる分岐処理のプログラムを記述するのに成功している。
ブロック指定名を「J」と指定していると仮定し、回答指定名を「d」と指定していると仮定して説明する。図符号Jのコード記述テキストボックスに、人為的な入力処理で記述された文字列の中からブロック指定名の「J」を探し出して、ブロック毎に違う連続番号の数値に置換して、組合せ数分の分岐処理を作成しろと言うプログラムを記述させ、更に、図符号Jのコード記述テキストボックスに人為的な入力処理で記述された文字列の中から、回答指定名の「d」を探し出して、ブロック毎に違う数値の組合せの数値に置換して組合せ総数分のブロックを記述させたのである。
Thereafter, the computer and the recording medium on which the
Assume that the block designation name is designated as “J” and the answer designation name is designated as “d”. In the code description text box of figure code J, find the block designation name “J” from the character string described by artificial input processing and replace it with a numerical value with a different serial number for each block. Let's write a program to create a branching process for minutes, and then search for the answer designation name “d” from the character string described by artificial input processing in the code description text box of figure J The blocks for the total number of combinations are described by substituting the numerical values of the combinations of numerical values different for each block.
図13の<コード自動記述2ソフトウェアで2行3列で分岐する処理を記述させる処理を行わせる為の人為的な手動による操作または入力処理後の操作画面図>は、2行3列の場合の人為的な入力処理後の操作画面図であり、図14の<コード自動記述2ソフトウェアで2行3列で分岐する処理を記述させた操作画面図>は、コード自動記述2ソフトウェアの処理が終了した状態での操作画面である。図符号Lのブロック数表示テキストボックスに、8と表示されている。組合せの総数が8有ったと言う処理結果を示している。図24の<コード自動記述2ソフトウェアで2行3列で分岐する処理を記述させた処理結果>が、処理を実行し終わった結果である。図24の<コード自動記述2ソフトウェアで2行3列で分岐する処理を記述させた処理結果>に示す様に、IF文による2行3列の数値の組合せの総数分のブロックを記述して、変数の数値の組合せによる分岐処理のプログラムを記述するのに成功している。
〔実施例1〕の問題解決技術を図を使った簡単な説明を終わる。
Figure 13 <Operation screen after manual input or input processing for performing processing for describing processing for branching in 2 rows and 3 columns with
A brief description of the problem solving technique of the first embodiment with reference to the drawings ends.
〔実施例2〕の問題解決技術を図を使った簡単な説明を行う。
〔実施例2〕は、図27の<実施例2の配列コード自動記述2ソフトウェアの操作画面図>で示す様に〔実施例1〕や〔実施例3〕とは、別個に作成したソフトウェアである。但し、本発明のコード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーである。色々な入力ボックスを配置した操作画面で人為的な入力処理による入力の手間を極力少なくしたソフトウェアの例である。
The problem solving technique of [Embodiment 2] will be briefly described with reference to the drawings.
[Embodiment 2] is a software created separately from [Embodiment 1] and [Embodiment 3], as shown in <Operation screen diagram of sequence code
〔実施例2〕は、二種類のプログラムの書き方に対応している。一種類目が、配列サイズを数値で指定する場合のプログラムの書き方である。この配列サイズを数値で指定する場合のプログラムの書き方を配列サイズ数値指定処理と呼ぶ。二種類目が、配列サイズを指定する数値を変数に代入して、数値を代入した変数で配列サイズを指定する場合のプログラムの書き方である。この配列サイズを指定する数値を変数に代入して、数値を代入した変数で配列サイズを指定する場合のプログラムの書き方を配列サイズ変数指定処理と呼ぶ。
以下に、配列サイズ数値指定処理の場合の配列コード自動記述2ソフトウェアの説明を行う。
人為的な入力処理によって、ソフトウェアの操作画面に以下の処理を行う。
図符号Dのマウスを使用して図符号Uの配列型名指定ボタンをクリックして図符号Tの配列型名指定画面を「int」に選択設定して、図28の<実施例2の配列コード自動記述2ソフトウェアで配列を配列サイズ10で3個作成する処理と、配列を配列サイズ10で3個の配列を初期化する処理を記述させた操作画面図>で示す様に、図符号Cのキーボードを使用して、図符号Vの配列名指定テキストボックスに連続番号の数値と連結したい配列名を文字列で入力して、図符号Dのマウスを使用して図符号Xの配列作成個数指定ボタンをクリックする事で図符号Wの配列作成個数指定画面に、個数を3と指定して、図符号Yの配列サイズ指定テキストボックスに、図符号Cのキーボードを使用して配列サイズを数値で入力して、図符号Zの配列作成ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。実施例2では、図符号Cのキーボードを使用して図符号Yの配列サイズ指定テキストボックスに、「10」と言う配列サイズを数値で、入力した。
[Embodiment 2] corresponds to how to write two types of programs. The first type is how to write a program when the array size is specified numerically. The method of writing a program when the array size is designated by a numerical value is called array size numerical value designation processing. The second type is a method of writing a program in which a numerical value specifying an array size is assigned to a variable, and the array size is specified using a variable to which the numerical value is assigned. A method of writing a program in which a numerical value specifying the array size is assigned to a variable and the array size is specified by the variable assigned the numerical value is called an array size variable specifying process.
In the following, description will be given of the array code
The following processing is performed on the software operation screen by artificial input processing.
Using the mouse of FIG. D, click the array type name designation button of FIG. U to select and set the array type name designation screen of FIG. T to “int”. Code screen C as shown in the operation screen diagram in which the process of creating three arrays with an array size of 10 and the process of initializing three arrays with an array size of 10 are described by the
この後は、コンピューターと、本発明のコード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーの実施例2の配列コード自動記述2ソフトウェアによる自動処理である。
処理を実行し終わった結果が、図29の<実施例2の配列コード自動記述2ソフトウェアで配列を配列サイズ10で3個作成する処理と、、配列を配列サイズ10で3個の配列を初期化する処理を記述させた処理結果>である。図29の<実施例2の配列コード自動記述2ソフトウェアで配列を3個作成する処理と、3個の配列を初期化する処理を記述させた処理結果>に示す様に、配列サイズを10で数値型の配列を3個作成しろと言うプログラムと数値型の3個の配列を配列サイズを0で初期化しろと言うプログラムの記述に成功している。
これで、配列サイズ数値指定処理の場合の配列コード自動記述2ソフトウェアの説明を終わる。
After this, automatic processing is performed by the sequence code
The result of executing the processing is the process of creating three arrays with an array size of 10 by the sequence code
This concludes the description of the array code
以下に、配列サイズ変数指定処理の場合の配列コード自動記述2ソフトウェアの説明を行う。
図符号Dのマウスを使用して図符号Uの配列型名指定ボタンをクリックして図符号Tの配列型名選択画面を「int」に選択設定して、図20の<実施例2の配列コード自動記述2ソフトウェアで配列サイズを変数名を代入して配列を3個作成する処理と、3個の配列を配列サイズを変数名を代入して初期化する処理を記述させた操作画面図>で示す様に、図符号Cのキーボードを使用して、図符号Vの配列名指定テキストボックスに、連続番号の数値と連結したい配列名を文字列で入力して、図符号Dのマウスを使用して図符号Xの配列作成個数指定ボタンをクリックする事で図符号Wの配列作成個数指定画面に、個数を3と指定して、図符号Yの配列サイズ指定テキストボックスに、図符号Cのキーボードを使用して配列サイズを任意の変数名を文字列で入力して、図符号Zの配列作成ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。実施例では、図符号Cのキーボードを使用して図符号Yの配列サイズ指定テキストボックスに、配列サイズとしてアルファベットの「a」と言う変数名を入力した。
In the following, description will be given of the array code
Using the mouse of FIG. D, click the array type name designation button of FIG. U to select and set the array type name selection screen of FIG. T to “int”. Operation screen diagram that describes the process of creating three arrays by substituting the variable size for the array size with the
この後は、コンピューターと、本発明のコード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーの実施例2の配列コード自動記述2ソフトウェアによる自動処理である。
処理を実行し終わった結果が、図21の<実施例2の配列コード自動記述2ソフトウェアで配列サイズを変数名を代入して配列を3個作成する処理と、3個の配列を配列サイズを変数名を代入して初期化する処理を記述させた処理結果>である。図21の<実施例2の配列コード自動記述2ソフトウェアで配列サイズを変数名を代入して配列を3個作成する処理と、3個の配列を配列サイズを変数名を代入して初期化する処理を記述させた処理結果>に示す様に、配列サイズにアルファベットのaと言う変数名の変数を指定して数値型の配列を3個作成しろと言うプログラムと数値型の配列を配列サイズをアルファベットのaと言う変数名の変数で3個の配列を初期化しろと言うプログラムの記述に成功している。
これで、配列サイズ変数指定処理の場合の配列コード自動記述2ソフトウェアの説明を終わる。
〔実施例2〕の問題解決技術を図を使った簡単な説明を終わる。
After this, automatic processing is performed by the sequence code
The result of executing the processing is shown in FIG. 21. <Sequence code
This concludes the description of the array code
A brief description of the problem-solving technique of [Embodiment 2] using drawings is completed.
〔実施例3〕の問題解決技術を図を使った簡単な説明を行う。
〔実施例3〕は、図32<実施例3の変数コード自動記述2ソフトウェアの操作画面図>で示す様に〔実施例1〕や、〔実施例2〕とは、別個に作成したソフトウェアである。但し、本発明のコード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーである。色々な入力ボックスを配置した操作画面で人為的な入力処理による入力の手間を極力少なくしたソフトウェアの例である。
The problem solving technique of [Embodiment 3] will be briefly described with reference to the drawings.
[Embodiment 3] is software created separately from [Embodiment 1] and [Embodiment 2], as shown in FIG. 32 <Operation screen diagram of automatic
人為的な入力処理によって、ソフトウェアの操作画面に以下の処理を行う。
図符号Dのマウスを使用して図符号cの変数型名指定ボタンをクリックして図符号bの変数型名選択画面を「String」に選択設定して、図33の<実施例3の変数コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた操作画面>で示す様に、図符号Cのキーボードを使用して図符号dの変数名指定テキストボックスに、連続番号の数値と連結したい任意の変数の名前を文字列で入力して、図符号Dのマウスを使用して図符号fの変数作成個数指定ボタンをクリックする事で図符号eの変数作成個数指定画面に、個数を3個と指定して、図符号aの禁止文字指定テキストボックスには、予め「"」が入力されているので、入力作業をせずにそのままの状態で、図符号Cのキーボードを使用して、図符号gの変数作成ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。
この後は、コンピューターと、本発明のコード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーの実施例3の変数コード自動記述2ソフトウェアによる自動処理である。
処理を実行し終わった結果が、図34の<実施例3の変数コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた処理結果>である。図34<実施例3の変数コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた処理結果>に示す様に、3個のString型の変数を作成しろと言うプログラムの記述に成功している。
〔実施例3〕の問題解決技術を図を使った簡単な説明を終わる。
The following processing is performed on the software operation screen by artificial input processing.
Using the mouse of FIG. D, click the variable type name designation button of FIG. C to select and set the variable type name selection screen of FIG. B to “String”. As shown in the operation screen in which the process of creating three variables using the
After this, automatic processing by the variable code
The result of completing the processing is <Processing result in which processing for creating three variables by the variable code
A brief description of the problem-solving technique of [Embodiment 3] using drawings is completed.
本発明のコード自動記述2ソフトウェアを記録した記録媒体は、分岐処理を行う場合に必要になる分岐処理の分岐数分の配列や変数と、分岐処理の分岐数分の「case 条件の答え」の条件の答えの部分に必要な連続番号の数値を作成して、分岐毎に作成した連続番号の数値を使用して「case 条件の答え」の条件の答えの部分に連続番号の数値を連結して分岐処理を行わせるプログラムを記述させる技術と、配列や、変数の名前に、作成した連続番号を連結させて分岐処理毎に違う名前の配列や、変数を使用した処理を分岐処理数分記述させる技術と、分岐処理で使用する分岐処理の分岐数分の配列の名前に、連続番号の数値を連結させた配列の名前を作成する事で、必要数分の違う名前の配列を初期化する処理を記述させる技術と、作成した連続番号の数値を配列や変数の名前の任意の位置に連結して変数や配列を作成する処理を記述させる技術である。
作成した連続番号の数値に関する補足説明を行う。
作成した連続番号の数値は、変数や配列の名前に連結するのであるが、作成する変数や配列の名前が、一つとして同じ名前が無い状態で作成されなければならないので、作成した連続番号の数値を変数や配列の名前に連結して変数や配列を作成する事で一つとして同じ名前が無い状態で変数や配列を作成する事とした技術である。一つとして同じ名前が無い状態で変数や配列を作成する理由は、1ブロック毎に、違う変数や配列を使用する必要がある為である。
作成した連続番号の数値に関する補足説明を終わる。
The recording medium on which the code
A supplementary explanation about the numerical value of the created serial number will be given.
The number of the created sequence number is linked to the name of the variable or array, but the name of the created variable or array must be created without the same name. It is a technology that creates a variable or array without having the same name as one by creating a variable or array by concatenating the numerical value with the name of the variable or array. The reason for creating a variable or array without the same name as one is that it is necessary to use a different variable or array for each block.
The supplementary explanation about the numerical value of the created serial number ends.
本発明のコード自動記述2ソフトウェアを記録した記録媒体は、プログラムをコンピューターに記述させる技術であり、従来、存在しなかったソフトウェアである。
本発明の〔実施例1〕と、、〔実施例2〕と、〔実施例3〕では、最初から最後までの処理工程を人間が読む事が出来る文字や、人間が読む事が出来る数値や、人間が読む事が出来ない数値を使用して処理を行っているが、処理工程の一部分を2進数による処理工程に変更したり、全ての処理工程を2進数による処理工程に変更しても、簡単な処理工程の変更程度の技術的な変更なので、本発明の簡単なレパートリーであるから、本発明のコード自動記述2ソフトウェアを記録した記録媒体である事を明言する。
また、本発明の〔実施例1〕と、、〔実施例2〕と、〔実施例3〕では、全て、人間が読む事が出来る文字列として処理を行っている。基本的に処理の対象とする文字列を人間が読む事が出来ない機械語の文字コードとして扱う事で処理する事も出来る。本発明のコード自動記述2ソフトウェアを記録した記録媒体の処理を基本的に処理の対象とする文字列を人間が読む事が出来ない機械語の文字コードとして扱う事で処理する処理工程に変更したとしても、本発明の簡単なレパートリーであるから、本発明のコード自動記述2ソフトウェアを記録した記録媒体である事を明言する。
The recording medium on which the
In [Embodiment 1], [Embodiment 2], and [Embodiment 3] of the present invention, characters that can be read by humans, numerical values that can be read by humans, etc. , Processing is performed using numerical values that cannot be read by humans, but even if a part of the processing step is changed to a binary processing step or all processing steps are changed to a binary processing step, Since it is a technical change equivalent to a simple process step change, since it is a simple repertoire of the present invention, it is stated that it is a recording medium recording the
Also, in [Embodiment 1], [Embodiment 2], and [Embodiment 3] of the present invention, all are processed as character strings that can be read by humans. Basically, it can be processed by treating the character string to be processed as a machine language character code that humans cannot read. The
多分岐処理のプログラムを短時間で記述できる様になり、人件費の削減効果が大きく期待できる。また、コンパイラに添付した場合は、利便性の高い評価を得られるのでコンパイラの販売に貢献できると考えられる。
また、データーベースを作成する際にもデーターを分類して保存する事で検索処理スピードを大幅に早くする事が出来るので、本発明のコード自動記述2ソフトウェアを使用するメリットが大きいと考えられる。
また、人工知能の多分岐処理を記述する際にも有効に使用できるソフトウェアであると考えている。
また、ファイルの保存時に、分岐処理毎に違うファイル名のファイルに保存する等の処理にも使える技術である。つまり、ファイル名の末尾やファイル名の中間の位置に連続番号を挿入する事で、分岐処理毎に違うファイル名を作成して、ファイル保存すると言う処理に使える技術である。
また、複数個の配列や複数個の変数の数値の組合せに対して、数値が一定の数値である場合に処理を行うとする処理を自動的に記述させて、組合せ数分の分岐数の多分岐処理を自動的に記述させると言う技術に、本発明のブロック指定名や回答指定名の文字列を探し出して数値に置換すると言う技術を拡張する事で、利用できるであろうと考えている。拡張するとは、本発明のブロック指定名や回答指定名の文字列に類似した文字列を指定して、類似した文字列を探し出して、探し出した類似した文字列を、プログラム言語で書かれた一定の処理を行うプログラムに置換して、自動的に分岐数分の多分岐処理を記述させると言う技術的な拡張である。例えば、複数個の配列や複数個の変数の数値の組合せに対して、数値が一定の数値である場合に処理を行うとする処理を自動的に記述させて、組合せ数分の分岐数の多分岐処理を自動的に記述させると言う技術は、C#(登録商標)と呼ばれるプログラム言語で使用されているファイルやフォルダーの属性の設定等を行う事が出来るソフトウェアに、使用する事が出来る技術だと考えているのである。
複数個の配列や複数個の変数の数値の組合せに対して、数値が一定の数値である場合に処理を行うとする処理を自動的に記述させて、組合せ数分の分岐数の多分岐処理を自動的に記述させると言う技術の「数値が一定の数値である場合に処理を行うとする処理」とは、行数に相当する数値が1の時に処理を行うとするとして、行数に相当する数値が0の時には、処理を行わないとするとか、行数に相当する数値が2の時には、行数に相当する数値が1の時に行う処理とは違う処理を行うとするといった具合に変化させると言う意味である。
The program for multi-branch processing can be described in a short time, and the labor cost reduction effect can be greatly expected. In addition, when attached to a compiler, a highly convenient evaluation can be obtained, so it is thought that it can contribute to the sale of the compiler.
Also, when creating a database, the search processing speed can be significantly increased by classifying and storing the data, so that it is considered that the merit of using the
We also believe that this software can be used effectively when describing multi-branch processing of artificial intelligence.
In addition, when saving a file, this technique can also be used for processing such as saving to a file with a different file name for each branch process. In other words, it is a technique that can be used for the process of saving a file by creating a different file name for each branch process by inserting a serial number at the end of the file name or in the middle of the file name.
In addition, for a combination of numerical values of a plurality of arrays and a plurality of variables, a process for performing processing when the numerical value is a constant numerical value is automatically described so that the number of branches corresponding to the number of combinations is increased. We believe that this technique can be used by extending the technique of automatically describing branch processing to the technique of searching for a character string of a block designation name or answer designation name according to the present invention and replacing it with a numerical value. To expand, specify a character string similar to the character string of the block designation name or answer designation name of the present invention, search for a similar character string, and find the similar character string found in a certain language written in the programming language. This is a technical extension that automatically describes multi-branch processing for the number of branches by replacing it with a program that performs the above processing. For example, for a combination of numerical values of a plurality of arrays and a plurality of variables, a process that automatically performs processing when the numerical value is a constant numerical value is automatically described, and the number of branches corresponding to the number of combinations is increased. The technology to automatically describe branch processing is a technology that can be used for software that can set attributes of files and folders used in a programming language called C # (registered trademark). I think.
Multi-branch processing with the number of branches equal to the number of combinations by automatically describing the processing to be performed when the numerical value is a fixed numerical value for combinations of numerical values of multiple arrays and multiple variables "Processing that processes when the numerical value is a fixed number" in the technology that automatically describes the number of lines is assumed to be performed when the numerical value corresponding to the number of lines is 1. When the corresponding numerical value is 0, the processing is not performed, or when the numerical value corresponding to the number of rows is 2, processing different from the processing performed when the numerical value corresponding to the number of rows is 1 is used. It means to change.
人工知能を使用して、プログラムを作成すると言う処理が、本発明のコード自動記述2ソフトウェアを記録した記録媒体によって、容易に行える様になると考えられる。人工知能に、本発明のコード自動記述2ソフトウェアを記録した記録媒体が最初に必要としている人為的な入力処理を代行させる事で人工知能にプログラムを記述させて、更に、人工知能に、記述させたプログラムをコピーしてコンパイラに添付されたエディターの入力テキストボックスに貼り付けて、機械語に変換させると言う、一連の処理を人工知能に処理させる事が出来る様になると考えられる。
It is considered that the process of creating a program using artificial intelligence can be easily performed by a recording medium on which the
コード自動記述2ソフトウェアを記録した記録媒体は、図2の<コード自動記述2ソフトウェアで使用した機材の説明図>に示した様なハードウェア資源で動作するプログラムである。図2の<コード自動記述2ソフトウェアで使用した機材の説明図>に示した様なハードウェア資源は、図符号Bのコンピューター本体と図符号Aのモニターと図符号Cのキーボードと図符号Dのマウスの合計4個のパーツで構成された機材であるが、これらの合計4個のパーツで構成された機材を一般的にコンピューターと呼んでいる。図符号Bのコンピューター本体は、パーソナルコンピューターと一般的に呼ばれているコンピューターである。図符号Bのコンピューター本体には、ハードディスクドライブなどの記録媒体やCPUや本体メモリーなどと呼ばれる装置が内蔵されており、本発明のコード自動記述2ソフトウェアを記録した記録媒体は、図符号Bのコンピューター本体内部に在るハードディスクドライブなどの記録媒体にインストールされているものとする。図符号Bのコンピューター本体に接続された外部に在るハードディスクドライブなどの記録媒体に本発明のコード自動記述2ソフトウェアを記録した記録媒体がインストールされていて、図符号Bのコンピューター本体から本発明のコード自動記述2ソフトウェアを記録した記録媒体を起動する事が出来る場合は、図符号Bのコンピューター本体に接続された外部に在るハードディスクドライブなどの記録媒体に本発明のコード自動記述2ソフトウェアを記録した記録媒体がインストールされているものとする。
The recording medium on which the
本発明のコード自動記述2ソフトウェアを記録した記録媒体がインストールされている図符号Bのコンピューター本体内部に在るハードディスクドライブなどの記録媒体または、図符号Bのコンピューター本体に接続された外部に在るハードディスクドライブなどの記録媒体にインストールされている本発明のコード自動記述2ソフトウェアを記録した記録媒体を起動すると本発明のコード自動記述2ソフトウェアを記録した記録媒体は、図符号Bのコンピューター本体に内蔵された本体メモリーに適時に必要量読み込まれる。図符号Bのコンピューター本体に内蔵された本体メモリーに適時に必要量読み込まれた本発明のコード自動記述2ソフトウェアを記録した記録媒体に書かれたCPUが処理を予定している命令文が必要な時に必要量CPUに読み込まれ、そのCPUに読み込まれた命令文がCPUによって実行される事によってコンピューターによって本発明のコード自動記述2ソフトウェアを記録した記録媒体が動作する。
従って、本発明のコード自動記述2ソフトウェアを記録した記録媒体が、ハードウェア資源を使用してどのような工程で処理されるのかを簡単な表現で説明すると、本発明のコード自動記述2ソフトウェアを記録した記録媒体に書かれた命令文は、コンピューター本体のCPUによって処理されると表現して説明する事ができるものである。
The
Therefore, when the recording medium on which the
図2の<コード自動記述2ソフトウェアで使用した機材の説明図>に示した様なハードウェア資源で動作するソフトウェアが、コード自動記述2ソフトウェアを記録した記録媒体である事を段落〔0095〕と段落〔0096〕にて説明したが、コンピューターの形状は、図2の<コード自動記述2ソフトウェアで使用した機材の説明図>に示した様なハードウェア資源に限定できるものではなく、図符号Aのモニター、図符号Bのコンピューター本体、図符号Cのキーボード、図符号Dのマウスが一体化したものや、図符号Dのマウスが存在しない構成のものや、図符号Aのモニター、図符号Bのコンピューター本体の二つを一体化した構成のもの等いろいろある。今後、もっと多くのいろいろな形状のコンピューターが開発されていくであろうと考えられる。図2の<コード自動記述2ソフトウェアで使用した機材の説明図>に示した様なハードウェア資源でなくても、類似と言い得る、いわゆるコンピューターを使用して本発明のコード自動記述2ソフトウェアを記録した記録媒体を動作させている場合も本発明のコード自動記述2ソフトウェアを記録した記録媒体である事を明言する。
Paragraph [0095] indicates that the software operating on the hardware resources as shown in <Description of the equipment used in the
この段落〔0098〕から段落〔0102〕までは、〔実施例1〕と、〔実施例2〕と、〔実施例3〕の3種類の実施例で共通である。
図2から、図34は、実際とは、多少異なる事を明記する。
また、テキストボックスやリストボックスなどの画面に表示する処理工程は、常識的処理なので処理工程を説明していない。また、数値型の配列や変数に代入された数値をString型の変数や配列に代入する場合、数値を型変換処理しなければならない。しかし、常識的な処理なので型変換処理は、記述していない。また、変数や配列に既にデーターが代入されている状態の変数や配列にデーターを代入する場合は、何も断り書きをしていない場合は、全て、上書きで代入すると言う処理を行っている。変数や配列に既にデーターが代入されている状態の変数や配列にデーターを代入する場合は、初期化と言う処理をしない限り、上書きになるのが常識であるから上書きか否かを記述していない。また、配列や変数に代入できるデーター量をbyteやbitで記述しているが、大きなbyte数や小さなbyte数または、大きなbit数や小さなbit数に変更しても本発明の単純なレパートリーである事を明言する。
The paragraphs [0098] to [0102] are common to the three examples of [Example 1], [Example 2], and [Example 3].
From FIG. 2, it is clearly stated that FIG. 34 is slightly different from the actual one.
In addition, the processing steps displayed on the screen such as the text box and the list box are common sense processing, so the processing steps are not described. Also, when a numerical value assigned to a numeric type array or variable is assigned to a String type variable or array, the numerical value must be type-converted. However, the type conversion process is not described because it is a common sense process. In addition, when assigning data to a variable or array in which data has already been assigned to the variable or array, if nothing has been stated otherwise, all of the data is assigned by overwriting. When assigning data to a variable or array in which data has already been assigned to a variable or array, it is common sense that it will be overwritten unless processing is called initialization, so whether or not overwriting is described. Absent. In addition, the amount of data that can be assigned to an array or variable is described in bytes or bits, but even if it is changed to a large number of bytes, a small number of bytes, a large number of bits or a small number of bits, it is a simple repertoire of the present invention. Make a statement.
本発明の明細書には、変数を作成すると記述しているが変数が作成される場所は、図符号Bのコンピューター本体の内部にある本体メモリーに作成される。但し、OSと呼ばれるソフトウェアによって仮想メモリー領域に作成される場合もある。仮想メモリー領域とは、図符号Bのコンピューター本体の内部に在るハードディスクドライブなどの記録媒体の一部分を仮想的に本体メモリーとして使用する場合に使用する図符号Bのコンピューター本体の内部に在るハードディスクドライブなどの記録媒体の一部分の事を言う。この図符号Bのコンピューター本体の内部にある本体メモリーまたは、図符号Bのコンピューター本体の内部にあるハードディスクドライブなどの記録媒体の一部分を仮想的に本体メモリーとして使用する場合に使用する図符号Bのコンピューター本体の内部に在るハードディスクドライブなどの記録媒体の一部分の事をコンピューター内部のメモリー装置と呼ぶ事とする。従って、変数を作成すると記述している場合の変数が作成される場所を端的な表現をして説明するならば、コンピューター内部のメモリー装置内に作成されると言う表現になる。 In the specification of the present invention, it is described that a variable is created. However, the place where the variable is created is created in a main body memory inside the computer main body indicated by a reference symbol B. However, it may be created in the virtual memory area by software called an OS. The virtual memory area is a hard disk in the computer main body of the symbol B used when a part of a recording medium such as a hard disk drive in the computer main body of the symbol B is virtually used as the main memory. A part of a recording medium such as a drive. The figure memory B used when the main body memory inside the computer main body indicated by the reference numeral B or a part of a recording medium such as a hard disk drive inside the computer main body indicated by the reference numeral B is virtually used as the main body memory. A part of a recording medium such as a hard disk drive in the computer main body is called a memory device inside the computer. Therefore, if the place where the variable is created when it is described that the variable is created is described with a simple expression, it will be expressed in the memory device inside the computer.
本発明の明細書では、全て変数や一次元配列を使用してプログラムを作成しているが、多次元配列を使用したり、ジャグ配列やその他の種類の配列を使用したり、ファイルを使用したりする事でも同じ処理が出来ると考えられる。また、変数と、一次元配列と、多次元配列と、ジャグ配列と、その他の種類の配列と、ファイルの組み合わせによっても、同じ処理が出来ると考えられる。これらはプログラムの書き方の違いであって、全て本発明の符号符号分類検索ソフトウェアを記録した記録媒体の単純なレパートリーでしかないと言う事を明言する。
また、本発明のコード自動記述2ソフトウェアを記録した記録媒体は、繰り返し処理の工程の中で繰り返し処理を行う処理を記述している。繰り返し処理の工程の中で繰り返し処理を行う処理を二重ループ処理と呼び、二重ループの中で繰り返し処理を行うのを三重ループと呼び、三重ループの中で繰り返し処理を行う処理を四重ループと呼び、単純に繰り返し処理を行う場合をシングルループと呼ぶ。
繰り返し処理の工程の中で繰り返し処理を行うと処理速度が低下すると言われており、繰り返し処理の中で繰り返し処理をしないで処理をする事が常識的な処理工程である。繰り返し処理の中で繰り返し処理をしないで処理をする技術は、既に知られている常識的処理工程である。
二重ループや、三重ループや、四重ループにしない様に、処理を分割する事で繰り返し処理の中で繰り返し処理をできるだけしないで処理をする処理工程に書き換える事が出来る。
In the specification of the present invention, all variables and one-dimensional arrays are used to create programs.However, multidimensional arrays, jagged arrays, other types of arrays, and files are used. It is thought that the same processing can be done by doing. Also, it is considered that the same processing can be performed by combining a variable, a one-dimensional array, a multi-dimensional array, a jug array, other types of arrays, and a file. These are differences in the way of writing programs, and it is clearly stated that they are all a simple repertoire of recording media on which the code code classification search software of the present invention is recorded.
Further, the recording medium on which the
It is said that the processing speed decreases when the repeated processing is performed in the repeated processing steps, and it is a common-sense processing step to perform the processing without repeating the repeated processing. The technique of performing processing without repeating processing in repeated processing is a common sense processing step that is already known.
By dividing the processing so that it is not a double loop, triple loop, or quadruple loop, it can be rewritten into a processing step that performs processing without performing repeated processing as much as possible.
三重ループや、四重ループにしない様に、処理を分割する事で繰り返し処理の中で繰り返し処理をできるだけしないで処理をする処理工程に書き換える技術は、簡単なレパートリーであるから、本発明のコード自動記述2ソフトウェアを記録した記録媒体である事を明言する。処理を分割する事で繰り返し処理の中で繰り返し処理をできるだけしないで処理をする処理工程とは、三重ループになってしまう場合を例にして説明すると、二重ループの段階で処理の結果を記録して処理を終了して、再度、記録したデーターを使用して、記録したデーターをループしながら、最後の別のデーターをループして処理を行う事で、三重ループになってしまう処理を、二重ループを二回行わせると言う処理である。処理を分割する事で繰り返し処理の中で繰り返し処理をできるだけしないで処理をする処理工程も、簡単なレパートリーである事を明言する。
また、出来るだけ配列を使用しないで、String型の変数に全てのデーターを代入して処理する事でも繰り返し処理の中で繰り返し処理をしないで済む処理工程に書き換える事が出来る。出来るだけ配列を使用しないで、String型の変数に全てのデーターを代入すると、処理を高速化する事が出来るのである。出来るだけ配列を使用しないで、String型の変数に全てのデーターを代入して処理する技術だと、二重ループは、シングルループになるし、三重ループは二重ループになり、四重ループは、三重ループになる。出来るだけ配列を使用しないで、String型の変数に全てのデーターを代入して処理する技術も、簡単なレパートリーであると明言する。
また、本発明では、繰返し処理に、インデックスを使用する繰り返し処理を使用している。再帰処理と呼ばれる処理や、goto文と呼ばれる処理や、インデックスを使用しない繰り返し処理を使用しても、本発明の処理と同じ処理が出来ると考えられる。しかし、再帰処理と呼ばれる処理や、goto文と呼ばれる処理や、インデックスを使用しない繰り返し処理で同じ処理を行うと言う処理は、簡単なレパートリーであるから、全て本発明の符号符号分類検索ソフトウェアを記録した記録媒体である事を明言する。
Since the technique of rewriting the processing process to process without repeating as much as possible in the repeated processing by dividing the processing so as not to make a triple loop or a quadruple loop is a simple repertoire, the code of the present invention It is stated that it is a recording medium on which
In addition, it is possible to rewrite a processing process that does not require repeated processing in repeated processing, even if processing is performed by assigning all data to a String type variable without using an array as much as possible. If all the data is assigned to the String type variable without using the array as much as possible, the processing can be speeded up. If it is a technology that assigns all data to a String type variable and processes it without using an array as much as possible, the double loop becomes a single loop, the triple loop becomes a double loop, and the quadruple loop Become a triple loop. The technology that assigns all data to String type variables and processes them without using arrays as much as possible is also a simple repertoire.
In the present invention, an iterative process using an index is used for the iterative process. It is considered that the same processing as the processing of the present invention can be performed even if processing called recursion processing, processing called goto statement, or repetition processing without using an index is used. However, the processing called recursion processing, the processing called goto statement, and the processing of performing the same processing in an iterative process that does not use an index are simple repertoires, so all code code classification search software of the present invention is recorded. It is stated that it is a recorded medium.
人間が読む事が出来ない数値のデーターを配列に代入するには、普通は、全てのデーターを1byteずつ代入できるサイズで、人間が読む事が出来ない数値のデーターを代入できる配列を作成して、作成した配列に1byteずつ代入する。しかし、String型の人間が読む事が出来る文字列を代入できる変数に、人間が読む事が出来ない数値のデーターを代入する技術がある。このString型の人間が読む事が出来る文字列を代入できる変数に、人間が読む事が出来ない数値のデーターを代入する技術をCSV処理と呼ぶ事とする。
CSV処理は、人間が読む事が出来ない数値を1byteずつ、String型の人間が読む事が出来る数値に変換して、変換した数値と数値の間に、任意の文字を区切りマークとして挿入する事でString型の変数に全てのデーターを代入すると言う技術である。
CSV処理を使用する事で、人間が読む事が出来ない数値を扱う場合でも、全てのデーターを変数に代入できるので、人間が読む事が出来ない数値でも、出来るだけ配列を使用しないで処理を行う事が出来る。
出来るだけ配列を使用しないで、String型の変数に全てのデーターを代入する事で繰り返し処理の中で繰り返し処理をしないで済む処理工程にする事で、処理を高速化すると言う技術は、既に知られている技術の利用であり、簡単なレパートリーであると言い得る技術である。従って、出来るだけ配列を使用せずに、String型の変数に全てのデーターを代入する事で、繰り返し処理の中で繰り返し処理をしないで済む処理工程に変更したとしても、本発明のコード自動記述2ソフトウェアを記録した記録媒体である事を明言する。
To assign numerical data that cannot be read by humans to an array, it is usually necessary to create an array that can assign numerical data that cannot be read by humans with a size that allows all data to be assigned one byte at a time.
In CSV processing, a numerical value that cannot be read by humans is converted byte by byte into a numerical value that can be read by humans of the String type, and an arbitrary character is inserted as a delimiter between the converted numerical values. This is a technique that assigns all data to a String type variable.
By using CSV processing, even when dealing with numerical values that cannot be read by humans, all data can be assigned to variables, so even numerical values that humans cannot read can be processed without using arrays as much as possible. Can be done.
We already know the technology that speeds up processing by assigning all data to a String type variable as much as possible, and making it possible to avoid repeated processing in repeated processing. It is a technology that can be said to be a simple repertoire. Therefore, even if it is changed to a processing step that does not need to be repeated in the repeated processing by assigning all data to the String type variable without using the array as much as possible, the automatic code description of the
〔実施例1〕の詳しい処理工程の説明を行う。
図1の<コード自動記述2ソフトウェアのフローチャート図>を参照の事。図符号Rの人為的な手動による操作または入力処理工程と図符号Sのコード自動記述2ソフトウェアとコンピューターによる自動処理工程には、ステップ番号を右肩位置に付してある。その右肩位置に付したステップ番号順に説明する事とする。まず、本発明のコード自動記述2ソフトウェアを記録した記録媒体を起動すると、図3の<コード自動記述2ソフトウェアのIF文やその他の操作画面図>の様な操作画面が図符号Aのモニターに表示される。
Detailed processing steps of [Example 1] will be described.
Refer to <
図符号Fのコード文の選択ボタンを図符号Dのマウスなどでクリックすると図符号Eのコード文の選択画面に「IF文やその他」と、「Switch文」と、「組合せ分岐」のいずれかを選択できる様になっている。
また、図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているが、人為的な入力処理によって、任意の文字を指定する事が出来る。任意の文字にを指定する場合は、図符号Gのブロック指定名テキストボックスに、図符号Cのキーボードを使用して任意の文字を入力する事で任意の文字を指定する事が出来る。
Clicking the selection button for the code sentence of Fig. Symbol F with the mouse of Fig. D, etc., displays either the "IF statement or other", "Switch statement", or "Combination branch" on the code statement selection screen of Fig. E Can be selected.
Further, although “J” is input in advance in the block designation name text box of the graphic symbol G, an arbitrary character can be designated by an artificial input process. When an arbitrary character is designated, the arbitrary character can be designated by inputting an arbitrary character into the block designation name text box of the graphic symbol G using the keyboard of the graphic symbol C.
ステップ100の「図符号Cのキーボードを使用して図符号Jのコード記述テキストボックスに自動的に記述させたいプログラムを入力して図符号Kの実行ボタンを図符号Dのマウスでクリックする」処理工程を行う。ステップ100の処理は、人為的な手動による操作または入力処理工程である。
図符号Dのマウスを使用して図符号Fのコード文の選択ボタンをクリックして図符号Eのコード文の選択画面を「IF文やその他」または、「Switch文」または、「組合せ分岐」のいずれかに選択設定する。図符号Eのコード文の選択画面を「IF文やその他」に選択設定すると、図3の<コード自動記述2ソフトウェアのIF文やその他の操作画面図>の様な操作画面が図符号Aのモニターに表示される。図符号Eのコード文の選択画面を「Switch文」に選択設定すると、図4の<コード自動記述2ソフトウェアのSwitch文の操作画面図>の様な操作画面が図符号Aのモニターに表示される。図符号Eのコード文の選択画面を「組合せ分岐」に選択設定すると、図5の<コード自動記述2ソフトウェアの組合せ分岐の操作画面図>の様な操作画面が図符号Aのモニターに表示される。
In
Use the mouse with the symbol D to click the code statement selection button with the symbol F to display the code statement selection screen for the symbol E with “IF statement and others”, “Switch statement”, or “Combinatorial branch”. Select one of the following. When the selection screen of the code sentence of Fig. E is selected and set to "IF statement and other", an operation screen such as <IF statement of code
図符号Eのコード文の選択画面を「IF文やその他」と、「Switch文」に選択設定した場合と、図符号Eのコード文の選択画面を「組合せ分岐」に選択設定した場合とでは、操作画面が違う為、ステップ100で行う人為的な手動による操作または入力処理が違ってくる。図符号Eのコード文の選択画面を「IF文やその他」と、「Switch文」に選択設定した場合と、図符号Eのコード文の選択画面を「組合せ分岐」に選択設定した場合の二つに分けて説明する。
図符号Eのコード文の選択画面を「IF文やその他」と、「Switch文」に選択設定した場合のステップ100で行う人為的な手動による操作または入力処理は、以下の様な処理を行う。
図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているが、図符号Gのブロック指定名テキストボックスの文字を変更したい場合は、任意の文字に指定変更する事が出来る様になっている。図符号Gのブロック指定名テキストボックスの文字列を変更したい場合は、図符号Cのキーボードを使用して、図符号Gのブロック指定名テキストボックスに任意の文字列を入力する。図符号Hのブロック数指定画面を図符号Dのマウスを使用して図符号Iのブロック数指定ボタンをクリックして任意の数値に設定する。図符号Hのブロック数指定画面に入力された数値をブロック数と呼ぶ。
When the selection screen of the code sentence of Fig. E is selected and set to "IF statement or other" and "Switch statement", and when the selection screen of the code statement of Fig. E is selected and set to "combined branch" Since the operation screen is different, an artificial manual operation or input process performed in
The artificial manual operation or input process performed in
“J” is input in the block designation name text box of FIG. G in advance, but if you want to change the character in the block designation name text box of FIG. G, you can change the designation to any character. It is like. In order to change the character string in the block designation name text box of graphic symbol G, an arbitrary character string is input to the block designation name text box of graphic symbol G using the keyboard of graphic symbol C. In the block number designation screen of the figure symbol H, the block number designation button of the figure symbol I is clicked using the mouse of the figure symbol D and set to an arbitrary numerical value. A numerical value input to the block number designation screen indicated by symbol H is referred to as a block number.
図符号Eのコード文の選択画面を「IF文やその他」に設定した場合は、図符号Cのキーボードを使用して、図符号Gのブロック指定名テキストボックスに、図符号Gのブロック指定名テキストボックスに入力されたブロック指定名を、プログラムで使用する変数や配列の名前の前後のどちらかの位置または、変数や配列の名前の中間の位置に相当する任意の位置に使用して「配列の初期化を行う処理の変数や配列の1個分のプログラム」や、「配列や変数を作成する処理の変数や配列の1個分のプログラム」や、「IF文による分岐処理の1ブロック分のプログラム」などの自動的に記述させたい処理を行うプログラムを、図符号Jのコード記述テキストボックスに入力する。
図符号Eのコード文の選択画面を「Switch文」に選択設定した場合は、「Switch文による分岐処理の1ブロック分のプログラム」を記述する。「Switch文による分岐処理の1ブロック分のプログラム」を記述するには、「case条件の答え」の条件の答えの部分にブロック指定名を必ず記述して、「Switch文による分岐処理の1ブロック分のプログラム」の自動的に記述させたい処理を行うプログラムを図符号Jのコード記述テキストボックスに入力する。
図符号Kの実行ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。
図符号Eのコード文の選択画面を「IF文やその他」と、「Switch文」に選択設定した場合のステップ100で行う人為的な手動による操作または入力処理の説明を終わる。
When the selection screen of the code sentence of the graphic symbol E is set to “IF statement or other”, the block designation name of the graphic symbol G is displayed in the block designation name text box of the graphic symbol G using the keyboard of the graphic symbol C. Use the block specification name entered in the text box either before or after the variable or array name used in the program, or at any position corresponding to the middle position of the variable or array name. ”Program for one variable or array for processing to initialize”, “Program for one variable or array for processing to create array or variable”, or “One block for branch processing by IF statement” A program for performing a process to be described automatically, such as “program of”, is input to the code description text box of the symbol J.
When the selection screen of the code sentence of FIG. E is selected and set to “Switch sentence”, “a program for one block of branch processing by the Switch sentence” is described. To describe “a program for one block of branch processing by the Switch statement”, be sure to write the block designation name in the answer part of the condition of “case condition answer”, and “1 block of branch processing by the Switch statement” A program for performing a process to be automatically described in “minute program” is input to a code description text box of a symbol J.
The execution button indicated by symbol K is clicked using the mouse indicated by symbol D to start processing.
The description of the artificial manual operation or input process performed in
図符号Eのコード文の選択画面を「組合せ分岐」に選択設定した場合のステップ100で行う人為的な手動による操作または入力処理は、以下の様な処理を行う。
図符号Gのブロック指定名テキストボックスには、予め「J」が入力されているが、図符号Gのブロック指定名テキストボックスの文字を変更したい場合は、任意の文字に指定変更する事が出来る様になっている。図符号Gのブロック指定名テキストボックスの文字を変更したい場合は、図符号Cのキーボードを使用して、図符号Gのブロック指定名テキストボックスに任意の文字を入力する。図符号Nの行数指定ボタンを図符号Dのマウスでクリックして図符号Mの行数指定画面の行数を任意の数値に設定する。但し、図符号Mの行数指定画面の行数は、最低値が2である。図符号Pの列数指定ボタンを図符号Dのマウスでクリックして図符号Oの列数指定画面の列数を任意の数値に設定する。
以下に、図符号Oの列数指定画面の列数の説明をする。
図符号Oの列数指定画面の列数は、最低値が2である。しかし、図符号Oの列数指定画面の列数は、最低値を1に変更しても本発明のレパートリーである事を明言する。
図符号Oの列数指定画面の列数の説明を終わる。
図符号Qの回答指定名テキストボックスには、予め「d」が入力されているが、変更したい場合は、変更できるようになっている。図符号Qの回答指定名テキストボックスに入力されている文字列を、回答指定名と呼ぶ事とする。図符号Qの回答指定名テキストボックスに入力されている文字列を変更したい場合は、図符号Cのキーボードを使用して、任意の文字列に変更する。
図符号Qの回答指定名テキストボックスと、図符号Gのブロック指定名テキストボックスに入力する文字列の説明を行う。
図符号Qの回答指定名テキストボックスと、図符号Gのブロック指定名テキストボックスに入力する文字列は、両方が同じ文字列であってはならない。図符号Qの回答指定名テキストボックスと、図符号Gのブロック指定名テキストボックスに入力する文字列は、別個の文字列を任意に決定して入力する。図符号Qの回答指定名テキストボックスと、図符号Gのブロック指定名テキストボックスに入力する文字は、実施例では、1文字を使用しているが、複数個の文字を入力できるので、文字列と記述している。
図符号Qの回答指定名テキストボックスと、図符号Gのブロック指定名テキストボックスに入力する文字列の説明を終わる。
「組合せ分岐の場合のIF文による1ブロック分の処理のプログラム」を記述する。「組合せ分岐の場合のIF文による1ブロック分の処理のプログラム」を記述するには、図符号Oの列数指定画面の列数と同じ数の複数個の変数や配列を記述して、記述した変数や配列の数と同じ数の変数や、配列に代入された数値を示す為の数値を記述する部分に、図符号Qの回答指定名テキストボックスで指定された回答指定名を記述して、変数や、配列と、回答指定名の中間の位置に、「==」などの記号を記述して、「条件が真である場合の処理するプログラムを記述する」部分に処理をするプログラムを記述し、IF文の必要な部分に必要に応じてブロック指定名を記述して、「}」までのIF文による1ブロック分の処理のプログラムを図符号Jのコード記述テキストボックスに入力する。
図符号Kの実行ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。
図符号Eのコード文の選択画面を「組合せ分岐」に選択設定した場合のステップ100で行う人為的な手動による操作または入力処理の説明を終わる。
The artificial manual operation or input processing performed in
“J” is input in the block designation name text box of FIG. G in advance, but if you want to change the character in the block designation name text box of FIG. G, you can change the designation to any character. It is like. When it is desired to change the character of the block designation name text box of the graphic symbol G, an arbitrary character is input to the block designation name text box of the graphic symbol G using the keyboard of the graphic symbol C. The number of lines designation button indicated by the reference numeral N is clicked with the mouse indicated by the reference numeral D, and the number of lines on the line number designation screen indicated by the reference numeral M is set to an arbitrary numerical value. However, the minimum value of the number of lines on the number-of-lines designation screen of the symbol M is 2. Click the column number designation button indicated by the symbol P with the mouse indicated by the symbol D and set the number of columns on the column number designation screen indicated by the symbol O to an arbitrary value.
Hereinafter, the number of columns in the column number designation screen indicated by the symbol O will be described.
The minimum value of the number of columns on the column number designation screen of the symbol O is 2. However, it is clearly stated that the number of columns on the column number designation screen indicated by the symbol O is the repertoire of the present invention even if the minimum value is changed to 1.
The description of the number of columns on the number-of-columns designation screen indicated by symbol O ends.
In the answer designation name text box indicated by the symbol Q, “d” is entered in advance, but can be changed if desired. A character string input in the answer designation name text box indicated by a symbol Q is referred to as an answer designation name. When it is desired to change the character string input in the answer designation name text box indicated by the symbol Q, it is changed to an arbitrary character string using the keyboard indicated by the symbol C.
A character string to be input to the answer designation name text box indicated by the symbol Q and the block designation name text box indicated by the symbol G will be described.
The character strings entered in the answer designation name text box indicated by the symbol Q and the block designation name text box indicated by the symbol G must not be the same character string. Character strings to be input to the answer designation name text box indicated by the symbol Q and the block designation name text box indicated by the symbol G are arbitrarily determined and input. In the embodiment, one character is used as the character to be entered in the answer designation name text box with the symbol Q and the block designation name text box with the symbol G. However, since a plurality of characters can be entered, the character string It is described.
The description of the character string input in the answer designation name text box indicated by the symbol Q and the block designation name text box indicated by the symbol G ends.
Describe "Program for processing one block by IF statement in case of combination branch". To describe “a program for processing one block with an IF statement in the case of combinational branching”, describe a number of variables and arrays as many as the number of columns in the column number designation screen of figure code O. Describe the answer designation name specified in the answer designation name text box of figure symbol Q in the part that describes the same number of variables as the number of variables or arrays and the numeric value to indicate the numeric value assigned to the array. Write a symbol such as “==” in the middle of the variable or array and the specified response name, and write a program to process in the “Write a program to process when the condition is true” part. Write a block designation name in the necessary part of the IF statement as needed, and input the processing program for one block by the IF statement up to “}” into the code description text box of FIG.
The execution button indicated by symbol K is clicked using the mouse indicated by symbol D to start processing.
The description of the artificial manual operation or input processing performed in
自動的に記述させたい処理を行うプログラムの説明を行う。
自動的に記述させたい処理を行うプログラムとは、変数や配列を作成するプログラムを記述させたい場合は、変数や配列を作成するプログラムの変数や配列の1個分の記述であり、配列の初期化をするプログラムを記述させたい場合は、配列を初期化するプログラムの配列の1個分の記述であり、IF文やSwitch文による分岐処理を行うプログラムを記述させたい場合は、IF文やSwitch文による分岐処理を行うプログラムの例としての1ブロック分の処理のプログラムを記述したプログラムであり、1ブロック毎に変えたい変数の名前や配列の名前には、必ず、ブロック指定名を使用して記述する事が必要であり、Switch文による分岐処理を行うプログラムの場合は、必ず、「case 条件の答え」の条件の答えの部分に必ず、ブロック指定名を使用して記述する事が必要であり、組合せ分岐のIF文の1ブロック分の処理のプログラムの場合は、複数個の変数や複数個の配列の組合せによる分岐処理を記述したIF文の1ブロック分の処理のプログラムであり、IF文の条件式の部分に必ず、複数個の変数や配列と、変数や配列と同じ数の回答指定名が必要となるプログラムである。
変数や配列を作成するプログラムを記述させたい場合と、配列の初期化をするプログラムを記述させたい場合と、IF文による多分岐処理を行うプログラムを記述させたい場合と、Switch文による分岐処理を行うプログラムを記述させたい場合と、複数個の変数や複数個の配列の組合せ分岐のIF文による多分岐処理のプログラムを記述させたい場合がある。
変数や配列を作成するプログラムを記述させたい場合と、配列の初期化をするプログラムを記述させたい場合は、IF文による多分岐処理を行うプログラムを記述させたい場合の処理技術をそのまま使用する技術である。
Switch文による分岐処理を行うプログラムを記述させたい場合は、特有のSwitch文の文法があるので違う処理となるが、連続番号を作成して、作成した連続番号をブロック指定名と置換すると言う処理の部分は、IF文による多分岐処理を行うプログラムを記述させたい場合の処理技術と同じである。従って、Switch文による分岐処理を行うプログラムを記述させたい場合は、IF文による多分岐処理を行うプログラムを記述させたい場合の処理技術をそのまま使用する技術であり、簡単なレパートリーである。
複数個の変数や複数個の配列の組合せ分岐のIF文による多分岐処理のプログラムを記述させたい場合は、全く違う処理工程となる。
組合せ分岐のIF文の1ブロック分の処理のプログラムの場合を言い換えると、複数個の変数や複数個の配列の組合せを回答指定名を使用して分岐処理の分岐条件として記述し、ブロック指定名を指定したい場合は、ブロック指定名を使用したい部分にブロック指定名を記述したプログラムを、例として1ブロック分だけ記述したプログラムである。この1ブロック分のプログラムを図符号Jのコード記述テキストボックスに人為的な入力処理で入力するのである。
また、ブロック指定名は、連続番号の数値に置換する必要のない部分には、絶対に使用してはならない文字列であると言う事を記述条件とする。
また、回答指定名も、作成した数値の組合せの数値に置換する必要のない部分には、絶対に使用してはならない文字列である事を条件とする。
また、「case 条件の答え」の条件の答えの部分に必ず、ブロック指定名を使用して記述する事が必要であると記述しているが、「case」の後には、必ず、連続番号の数値を入れる事になるので、コンピューターとソフトウェアによる自動処理で連続番号の数値を記述させる事も可能である。従って、自動で「case」の後に、連続番号の数値を記述させる場合は、人為的な入力処理でブロック指定名を使って指定する必要はない。この様なコンピューターとソフトウェアによる自動処理で「case」の後に、連続番号の数値を記述させる技術を使用しても、本発明の簡単なレパートリーである事を明記する。
自動的に記述させたい処理を行うプログラムの説明を終わる。
Describes the program that performs the process that you want to be described automatically.
A program that performs processing that you want to be described automatically is a description of one variable or array in the program that creates a variable or array when you want to describe a program that creates a variable or array. If you want to describe a program that will be converted to an array, it is a description of one array of the program that initializes the array. If you want to write a program that performs branch processing using an IF statement or a Switch statement, This is a program that describes a processing program for one block as an example of a program that performs branch processing by statements. Be sure to use a block designation name for the name of a variable or array that you want to change for each block. In the case of a program that performs branch processing using a Switch statement, be sure to use the block specification name in the answer part of the condition of “case condition answer”. In the case of a program for processing one block of a combinational branch IF statement, the processing of one block of the IF statement that describes the branching process using a combination of multiple variables and multiple arrays is required. This is a program that always requires multiple variables and arrays and the same number of answer designation names as the variables and arrays in the conditional expression part of the IF statement.
If you want to write a program that creates variables and arrays, if you want to write a program that initializes an array, if you want to write a program that performs multi-branch processing using an IF statement, and branch processing using a Switch statement There are cases where it is desired to describe a program to be executed, and cases where a multi-branch processing program using an IF statement of a combination branch of a plurality of variables or a plurality of arrays is desired.
A technology that uses the processing technology as it is when you want to write a program that creates variables and arrays, and when you want to write a program that initializes arrays. It is.
If you want to describe a program that performs a branch process using a Switch statement, the processing is different because there is a specific Switch statement grammar, but a process of creating a serial number and replacing the created serial number with a block designation name This part is the same as the processing technique when it is desired to describe a program that performs multi-branch processing using an IF statement. Therefore, when it is desired to describe a program that performs a branch process using a Switch statement, this is a technique that directly uses the processing technique used to describe a program that performs a multi-branch process using an IF statement, which is a simple repertoire.
If you want to write a program for multi-branch processing using an IF statement for multiple variables or multiple branches of arrays, this is a completely different process.
In other words, in the case of a program for processing one block of a combination branch IF statement, a combination of multiple variables or multiple arrays is described as a branch condition for branch processing using an answer specification name, and a block specification name Is a program in which only one block is described as an example of a program in which the block specification name is described in a portion where the block specification name is to be used. This one-block program is input to the code description text box of the symbol J by an artificial input process.
In addition, the block designation name has a description condition that it is a character string that must not be used in a portion that does not need to be replaced with a numerical value of a serial number.
In addition, it is a condition that the answer designation name is a character string that must not be used in a portion that does not need to be replaced with a numeric value of the created numeric combination.
In addition, it is described that it is necessary to use a block designation name in the answer part of the condition of “case condition answer”. Since numerical values are entered, it is possible to describe numerical values of serial numbers by automatic processing by a computer and software. Therefore, when the numerical value of the serial number is automatically described after “case”, it is not necessary to specify the block designation name by an artificial input process. It is clearly stated that even if a technique for describing the numerical value of the serial number after “case” in such automatic processing by a computer and software is used, it is a simple repertoire of the present invention.
The explanation of the program that performs the process that you want to be described automatically ends.
図符号Eのコード文の選択画面の選択についての説明を行う。
図符号Eのコード文の選択画面を「IF文やその他」に選択設定した場合は、自動的に記述させたいプログラムは、「配列の初期化を行う処理の変数や配列の1個分のプログラム」と「変数や配列を作成する処理の変数や配列の1個分のプログラム」と「IF文による分岐処理の1ブロック分のプログラム」の3種類が記述可能なプログラムである。
図符号Eのコード文の選択画面を「Switch文」に選択設定した場合は、自動的に記述させたいプログラムは、「Switch文による分岐処理の1ブロック分のプログラム」だけが記述可能なプログラムである。
図符号Eのコード文の選択画面を「組合せ分岐」に選択設定した場合は、自動的に記述させたいプログラムは、「組合せ分岐の場合のIF文による1ブロック分の処理のプログラム」だけが記述可能なプログラムである。
図符号Eのコード文の選択画面の選択についての説明を終わる。
The selection of the selection screen for the code sentence with the symbol E will be described.
When the selection screen for the code sentence of Fig. E is selected and set to "IF sentence or other", the program to be described automatically is "program for variable of processing for initializing array or program for one array. ”And“ a program for one variable or array for processing to create a variable or array ”and“ a program for one block for branch processing by an IF statement ”can be described.
If the selection screen of the code sentence of Fig. E is selected and set to "Switch sentence", the program to be described automatically is a program that can only describe "a program for one block of branch processing by the Switch sentence". is there.
When the selection screen for the code sentence of Fig. E is selected and set to "combination branch", the only program that is to be described automatically is "the program for processing one block by the IF statement in the case of combination branch" It is a possible program.
The description of the selection of the code sentence selection screen of FIG.
次に、ステップ101の「図符号Jのコードをファイルに保存して、保存したファイルから一行ずつ配列に読み込む」処理工程の処理を行う。ステップ101は、コード自動記述2ソフトウェアとコンピューターによる自動処理工程である。
図符号Jのコード記述テキストボックスに入力された自動的に記述させたいプログラムを1byteずつ全て代入できるbyte数でString型の変数を作成する。この変数をコントロール変数と呼ぶ。コントロール変数に図符号Jのコード記述テキストボックスに入力された自動的に記述させたいプログラムの1ブロック分の処理を記述したプログラムを1byteずつ全て代入する。コントロール変数に代入力された文字列を全て1byteずつテキスト形式でファイルに記録して保存する。保存したファイルをコントロール1ファイルと呼ぶ。
Next, the processing of the processing step of “save the code of graphic symbol J in a file and read it into the array line by line from the saved file” in
Create a string type variable with the number of bytes that can be substituted for each byte of the program that you want to be described automatically entered in the code description text box of Fig. J. This variable is called a control variable. The program that describes the processing for one block of the program that is input to the code description text box indicated by the symbol J and to be described automatically is substituted for each control variable, one byte at a time. All character strings input to the control variable are recorded and saved in a file in 1-byte text format. The saved file is called a
コントロール1ファイルに記述されている内容の説明を行う。
コントロール1ファイルには、「組合せ分岐」の場合は、複数個の変数や複数個の配列の組合せを回答指定名を使用して分岐処理の分岐条件として記述し、ブロック指定名を指定したい場合は、ブロック指定名を使用したい部分にブロック指定名を記述したプログラムを、例として1ブロック分だけ記述したプログラムを記述したテキスト形式の文字列が記述されている。
また、コントロール1ファイルには、「Switch文」や、「IF文やその他」による分岐処理の場合は、数値を記述する位置にブロック指定名を記述していたり、変数や配列の名前の任意の位置にブロック指定名を使用していたりする分岐処理の1ブロック分のプログラムを例として記述されている。
また、配列や変数を作成したり、初期化する場合は、配列や変数の一個分の作成をしたり、配列や変数の一個分を初期化するプログラムをブロック指定名を変数や配列の名前の任意の位置に記述したプログラムが記述されている。
コントロール1ファイルに記述されている内容の説明を終わる。
The contents described in the
In the case of “combined branch” in the
In the case of branch processing by “Switch statement” or “IF statement or others” in the
Also, when creating or initializing an array or variable, create a single array or variable, or initialize a single array or variable with a block specification name of the variable or array name. A program described at an arbitrary position is described.
The explanation of the contents described in the
コントロール1ファイルに記述されている文字列を1行分ずつ全て代入できる配列サイズでString型の200byteの配列を作成する。作成した配列をコントロールライン配列と呼ぶ。コントロール1ファイルをテキスト形式で開いて、1行分ずつの200byteずつ、全てのデーターをコントロールライン配列の末尾に代入する。
16bitの変数を作成する。作成した変数を回数変数と呼ぶ。回数変数に、図符号Hのブロック数指定画面に入力されている任意の分岐の数に相当するブロック数の数値を代入する。String型の100byteの変数を作成する。作成した変数をブロック指定名変数と呼ぶ。ブロック指定名変数に図符号Gのブロック指定名テキストボックスに入力されている任意の文字列を代入する。100byteのString型の変数を作成する。作成した変数を設定変数と呼ぶ。設定変数には、図符号Eのコード文の選択画面で設定された文字列を図符号Eのコード文の選択画面から取得して代入する。図符号Eのコード文の選択画面で設定された文字列とは、「IF文やその他」と、「Switch文」と、「組合せ分岐」と言う設定された設定の文字列の事である。
以下に分岐処理を行う。この選択設定1分岐処理と呼ぶ。
選択設定1分岐で、図符号Eのコード文の選択画面を「IF文やその他」と、「Switch文」に選択設定した場合は、ステップ102に進む。
選択設定1分岐で、図符号Eのコード文の選択画面を「組合せ分岐」に選択設定した場合は、ステップ104に進み、その次に、ステップ105に進む。
選択設定1分岐処理を終わる。
Create a 200 byte array of String type with an array size that can substitute all the character strings described in the
Create a 16bit variable. The created variable is called a count variable. A numerical value of the number of blocks corresponding to the number of arbitrary branches input on the block number designation screen of the symbol H is substituted into the number variable. Create a 100-byte variable of type String. The created variable is called a block designation variable. An arbitrary character string input in the block designation name text box of the symbol G is assigned to the block designation name variable. Create a 100-byte String variable. The created variable is called a setting variable. For the setting variable, the character string set on the code sentence selection screen of the graphic symbol E is acquired from the code text selection screen of the graphic symbol E and substituted. The character string set on the code sentence selection screen of FIG.
Branch processing is performed as follows. This is called the selection setting 1 branch process.
In the selection setting 1 branch, when the selection screen of the code sentence of the symbol E is selected and set to “IF sentence or other” and “Switch sentence”, the process proceeds to step 102.
In the selection setting 1 branch, when the selection screen of the code sentence of the symbol E is selected and set to “combination branch”, the process proceeds to step 104, and then proceeds to step 105.
The selection setting 1 branch process ends.
次に、ステップ102の「図符号Gの文字列を探してカウント変数に置換して図符号Eの設定によって分岐する」処理工程の処理を行う。ステップ102は、コード自動記述2ソフトウェアとコンピューターによる自動処理工程である。
コントロールライン配列の配列サイズと同じ配列サイズでString型の200byteの配列を作成する。作成した配列を仮データ1配列と呼ぶ。コントロールライン配列の配列サイズを、回数変数に代入されている数値で乗算して算出された数値を配列サイズとして、String型の200byteの配列を作成する。作成した配列を記述文配列と呼ぶ。200byteのString型の変数を作成する。作成した変数を仮ダット1変数と呼ぶ。String型の100byteの変数を作成する。作成した変数を仮ダット2変数と呼ぶ。16bitの変数を作成する。作成した変数をインデックス1変数と呼ぶ。インデックス1変数に0を代入する。16bitの変数を作成する。作成した変数をカウント変数と呼ぶ。カウント変数に0を代入する。
Next, the processing of the processing step of “find the character string of graphic symbol G and replace it with a count variable and branch according to the setting of graphic symbol E” in step 102 is performed. Step 102 is an automatic processing step by code
Create a 200-byte array of String type with the same array size as the control line array. The created array is called a
以下に、繰り返し処理を行う。この繰り返し処理をプログラム記述繰り返し処理と呼ぶ。
プログラム記述繰り返し処理では、以下の処理を一回行う毎にカウント変数に1を加算すると言う処理を行って、カウント変数に代入された数値が回数変数に代入された数値になるまで処理を繰り返し行う。
以下に、繰り返し処理を行う。この繰り返し処理をサーチ繰り返し処理と呼ぶ。
サーチ繰り返し処理では、コントロールライン配列の最初の位置から最後の位置までに代入されている文字列に対して以下の処理を行う。コントロールライン配列のインデックスは、最初は、0である。コントロールライン配列のインデックスを使用してコントロールライン配列のデーターを取得して仮ダット1変数に代入する。
The following is repeated. This repetitive processing is called program description repetitive processing.
In the program description repetitive processing, each time the following processing is performed once, 1 is added to the count variable, and the processing is repeated until the numerical value assigned to the count variable becomes the numerical value assigned to the count variable. .
The following is repeated. This iterative process is called a search iterative process.
In the search repetition process, the following process is performed on the character string assigned from the first position to the last position of the control line array. The index of the control line array is 0 at first. The control line array data is acquired using the index of the control line array and assigned to the temporary dat 1 variable.
以下に、分岐処理を行う。この分岐処理を発見分岐処理と呼ぶ。
発見分岐処理では、文字列操作関数を使用して、仮ダット1変数に代入された文字列の中にブロック指定名変数に代入された文字列が有るかどうかを検査して、仮ダット1変数に代入された文字列の中にブロック指定名変数に代入された文字列が有る場合と無い場合とに分岐する。
発見分岐処理で、文字列操作関数を使用して、仮ダット1変数に代入された文字列の中にブロック指定名変数に代入された文字列が有る場合は、以下の処理を行う。
カウント変数に代入された数値を仮ダット2変数に上書きで代入する。
文字列操作関数のリプレース関数を使用して、仮ダット1変数に代入されている文字列の中に、複数個のブロック指定名が有る場合は、複数個のブロック指定名を全て仮ダット2変数に代入されている数値に置換して、置換した文字列を仮ダット1変数に上書きで代入する。
発見分岐処理で、文字列操作関数を使用して、仮ダット1変数に代入された文字列の中にブロック指定名変数に代入された文字列が無い場合は、以下の処理を行う。
何も行わない。
発見分岐処理を終わる。
仮データー1配列のインデックスに、コントロールライン配列のインデックスを使用して、仮データー1配列に、仮ダット1変数に代入された文字列を代入する。
コントロールライン配列のインデックスに1を加算してサーチ繰り返し処理の最初に戻って処理を繰り返し行う。コントロールライン配列の全てのデーターに処理を行い終わったら、サーチ繰り返し処理を終わる。
A branch process is performed below. This branch processing is called discovery branch processing.
In the discovery branch process, a character string manipulation function is used to check whether there is a character string assigned to the block specification name variable in the character string assigned to the
In the find branch process, when the character string assigned to the block designation name variable is included in the character string assigned to the temporary dat 1 variable using the character string manipulation function, the following processing is performed.
The numerical value assigned to the count variable is assigned to the temporary dat 2 variable by overwriting.
If there are multiple block designation names in the character string assigned to the temporary dat 1 variable using the replace function of the character string manipulation function, all the block designation names are all temporary dat 2 variables. Replace with the numerical value assigned to, and substitute the substituted character string with the
If there is no character string assigned to the block designation name variable among the character strings assigned to the temporary dat 1 variable using the character string manipulation function in the discovery branch processing, the following processing is performed.
Do nothing.
The discovery branch process ends.
Using the index of the control line array as the index of the
Add 1 to the index of the control line array and return to the beginning of the search repetition process to repeat the process. When all the data in the control line array has been processed, the search repetition process ends.
以下に、繰り返し処理を行う。この繰り返し処理を回数記述繰り返し処理と呼ぶ。
回数記述繰り返し処理では、以下の処理を行う。
仮ダット1配列のインデックスは、最初は、0である。仮ダット1配列のインデックスを使用して、仮データー1配列の文字列を取得して、インデックス1変数に代入されている数値を記述文配列のインデックスとして使用して、取得した仮データー1配列の文字列を記述文配列に代入する。インデックス1変数に、1を加算する。
仮ダット1配列の最後の位置の文字列の処理が終わるまで、回数記述繰り返し処理を繰り返し処理を行い、仮ダット1配列の最後の位置の文字列の処理が終わったら、回数記述繰り返し処理を終わる。
カウント変数に1を加算する。
プログラム記述繰り返し処理の最初の処理に戻って、処理を繰り返して、カウント変数に代入された数値が、回数変数に代入された数値になるまで処理を繰り返して、カウント変数の数値が回数変数に代入された数値になったら、プログラム記述繰り返し処理を終わる。
コントロールライン配列の配列サイズを、記述文配列の配列サイズを取得して、記述文配列と同じ配列サイズに変更して、記述文配列の最初から最後までの位置に代入されている200byteずつの文字列を全て、コントロールライン配列の最初から最後の位置に、コピーする。
The following is repeated. This iterative process is referred to as a count description iterative process.
In the repetition description process, the following processing is performed.
The index of the temporary dat 1 array is initially 0. The character string of the
The number description repetition process is repeated until the processing of the character string at the last position of the temporary dat 1 array is completed. When the processing of the character string at the last position of the temporary dat 1 array is completed, the number description repetition process ends. .
Add 1 to the count variable.
Return to the first process of the program description repetition process, repeat the process, and repeat the process until the numerical value assigned to the count variable becomes the numerical value assigned to the count variable, and the numerical value of the count variable is assigned to the count variable. When the obtained value is reached, the program description repetition process is terminated.
Change the array size of the control line array to the same array size as the description sentence array after obtaining the array size of the description sentence array, and insert 200 bytes of characters assigned to the position from the beginning to the end of the description sentence array. Copy all columns from the beginning to the end of the control line sequence.
文字列操作関数についての説明を行う。
文字列操作関数とは、文字列を操作する為のコンパイラ付属の関数である。文字列操作関数には、多種多様な処理を行う関数がある。以下に簡単に説明する。
本発明に使用したコンパイラ以外のコンパイラには、文字列操作関数と同等の処理を行う文字列操作関数が付属していない場合がある。従って、文字列操作関数のリプレース関数を使用しない処理に書き換えたり、スピリット関数を使わない処理に書き換えても、インサート関数を使用しない処理に書き換えても、リムーブ関数を使用しない処理に書き換えても、インデックスオフ関数を使用しない処理に書き換えても、コンパイラの仕様の為の違いであって、書き方の違い程度の変更であるから、本発明の簡単なレパートリーであると明言する。
リプレース関数とは、任意の文字列の中の任意の文字列を探し出して、指定した任意の文字列に置換すると言う処理を行う関数である。任意の文字列の中に、任意の文字列が複数個あっても、指定した任意の文字列に複数個、全て置換すると言う特殊な処理をする関数である。このリプレース関数は、コンパイラ付属の関数である。
また、文字列操作関数には、検索したい文字列の中から任意の指定の文字列が有った場合に、任意の指定の文字列の先頭の位置を調べると言う処理を行うインデックスオフ関数と言う関数がある。インデックスオフ関数を使用して任意の指定の文字列の先頭位置を探させて、もしも、検索したい文字列の中に、任意の指定の文字列が無かった場合は、インデックスオフ関数は、-1と言う数値を答えとして返す様に作られている。
また、文字列の任意の位置に任意の文字列を挿入すると言う処理を行うインサート関数と言う関数がある。
また、文字列の任意の位置から何文字を削除すると言うリムーブ関数と言う関数がある。
スピリット関数と言う関数が有る。スピリット関数とは、指定した文字列で文字を分割処理すると言う関数である。
また、文字列操作関数には、指定した文字列が、検索したい文字列の中に有るかどうかを検査すると言う処理を行う関数が有る。この関数をコンテインズ関数と言う。
また、文字列操作関数そのものを全て作成して処理しても、本発明のレパートリーで有る事を明言する。
文字列操作関数についての説明を終わる。
The character string manipulation function will be described.
The character string manipulation function is a function attached to the compiler for manipulating the character string. There are functions that perform various types of character string manipulation functions. Briefly described below.
A compiler other than the compiler used in the present invention may not be provided with a character string manipulation function that performs processing equivalent to the character string manipulation function. Therefore, even if it is rewritten to a process that does not use the replace function of the character string manipulation function, rewritten to a process that does not use the spirit function, rewritten to a process that does not use the insert function, or rewritten to a process that does not use the remove function, Even if it is rewritten to a process that does not use the index-off function, it is a difference due to the compiler specifications and a change of the difference in the writing method.
The replace function is a function that performs a process of finding an arbitrary character string in an arbitrary character string and replacing it with a specified arbitrary character string. This is a function that performs a special process of replacing all of a plurality of arbitrary character strings with a specified arbitrary character string even if there are a plurality of arbitrary character strings. This replacement function is a function attached to the compiler.
In addition, the character string manipulation function includes an index-off function that performs a process of checking the start position of an arbitrary specified character string when there is an arbitrary specified character string from among the character strings to be searched. There is a function to say. Use the index-off function to find the start position of any specified character string, and if there is no specified character string in the character string that you want to search, the index-off function is -1 It is made to return the numerical value called as an answer.
In addition, there is a function called an insert function that performs processing of inserting an arbitrary character string at an arbitrary position of the character string.
In addition, there is a function called a remove function that deletes how many characters from an arbitrary position in a character string.
There is a function called a spirit function. The spirit function is a function that divides characters by a specified character string.
In addition, the character string manipulation function includes a function for performing a process of checking whether or not a specified character string is in a character string to be searched. This function is called a contains function.
Further, it is clearly stated that even if all the character string manipulation functions themselves are created and processed, they are still in the repertoire of the present invention.
The explanation of the character string manipulation function ends.
プログラム記述繰り返し処理の補足説明。
プログラム記述繰り返し処理では、プログラム記述繰り返し処理の中で、サーチ繰り返し処理を行い、サーチ繰り返し処理が終わってから、回数記述繰り返し処理を行っている。サーチ繰り返し処理と回数記述繰り返し処理が並列に並んだ処理で、全体としては、二重ループである。
この様に繰り返し処理の中で繰り返し処理を行うと言う様な処理は、繰り返し処理の中で繰り返し処理を行えば行う程、処理速度が著しく低下すると言う現象が確認されている。この処理速度の低下の問題は、繰り返し処理の中で繰り返し処理を行う事を極力行わない事で問題を回避する事が出来る。
繰り返し処理の中で繰り返し処理を行った結果を配列に記録して処理を終了して、再度、記録した配列を繰り返し処理で参照して処理を行う事で三重ループを二重ループに変更する事が出来る。この繰り返し処理の中で繰り返し処理を行った結果を配列に記録して処理を終了して、再度、記録した配列を繰り返し処理で参照して処理を行う事で三重ループを二重ループに変更する処理技術を処理分断回避処理工程と呼ぶ。
Supplementary explanation of program description repetition processing.
In the program description repetitive process, the search repetitive process is performed in the program description repetitive process, and the count description repetitive process is performed after the search repetitive process is completed. The search repetition process and the count description repetition process are arranged in parallel, and as a whole, a double loop.
It has been confirmed that a process such as performing a repetitive process in a repetitive process in this way has a remarkable decrease in processing speed as the repetitive process is performed. This problem of a reduction in processing speed can be avoided by not performing repeated processing as much as possible in repeated processing.
The result of the repeated processing in the repeated processing is recorded in the array, the processing is completed, and the triple loop is changed to the double loop by referring to the recorded array in the repeated processing again. I can do it. The result of the repeated processing in this repeated processing is recorded in the array, the processing is terminated, and the triple loop is changed to the double loop by referring again to the recorded array in the repeated processing. The processing technique is called a processing division avoidance processing step.
プログラム記述繰り返し処理で行っている処理を処理分断技術を使って、処理を分断して二重ループをシングルループに変更する事ができない処理である。しかし、違う処理技術を使ってシングルに変更できたので、詳しく説明する。
第一IF文ループ処理、第二IF文ループ処理と呼ぶ。
また、第一IF文ループ処理、第二IF文ループ処理などの処理技術は、特殊な例である。二重ループをシングルループに変更する為に、繰り返し処理の中で繰り返し処理のインデックスの数値をIF文で制御する事で繰り返し処理を減らす技術をIF文ループ回避処理工程と呼ぶ。IF文ループ回避処理工程は、二重ループをシングルループにする記述であるが、IF文ループ回避処理工程を使用して、三重ループの処理から、二重ループや、シングルループに変更する技術も、第一IF文ループ処理、第二IF文ループ処理を参考にすれば簡単に記述できる処理工程であると思われる。本発明のコード自動記述2ソフトウェアを記録した記録媒体では、三重ループになっている箇所が二か所だけ有る。その三重ループになっていると言う二か所か所は、「組合せ分岐」のステップ104の組合せ分岐文作成繰り返し処理の部分と、「組合せ分岐」のステップ104の3列以上組合せ作成繰り返し処理の部分である。
It is a process that cannot be changed from a double loop to a single loop by dividing the process performed by the program description repetition process using the process division technique. However, since it could be changed to single using a different processing technology, it will be explained in detail.
This is called first IF statement loop processing and second IF statement loop processing.
Processing techniques such as the first IF sentence loop process and the second IF sentence loop process are special examples. In order to change the double loop to a single loop, the technique of reducing the repetition process by controlling the numerical value of the index of the repetition process with the IF sentence in the repetition process is called an IF sentence loop avoidance process step. The IF statement loop avoidance process is a description that turns the double loop into a single loop, but there is also a technology that uses the IF statement loop avoidance process to change from triple loop processing to double loop or single loop. The first IF statement loop processing and the second IF statement loop processing are considered to be processing steps that can be easily described. In the recording medium on which the
3列以上組合せ作成繰り返し処理の部分は、2列組合せ配列作成繰り返し処理を行った後で、3列目以降の組合せを作成する処理を行うと言う処理を行っている部分である。2列組合せ配列作成繰り返し処理を行なわずに、最初から全ての繰り返し処理を繰り返し処理の中で行おうとすると、四重ループになるところを分割処理して三重ループで処理している部分である。3列以上組合せ作成繰り返し処理の部分は、これ以上、処理分断回避処理工程を使用して、返し処理の中で繰り返し処理をできるだけしないで処理を行う処理工程にする事が出来ないであろうから記述しない。
しかし、「組合せ分岐」のステップ104の組合せ分岐文作成繰り返し処理の部分は、第一IF文ループ処理や、第二IF文ループ処理を参考に三重ループを二重ループや、シングルループに変更可能である。「組合せ分岐」のステップ104の組合せ分岐文作成繰り返し処理部分をIF文ループ回避処理工程を使用して二重ループや、シングルループに書き換えても、本発明の簡単なレパートリーであると言い得るので、本発明のコード自動記述2ソフトウェアを記録した記録媒体である事を明記する。また、「組合せ分岐」のステップ104の組合せ分岐文作成繰り返し処理の部分を処理分断回避処理工程を使用する事で、三重ループを二重ループに変更したとしても、本発明の簡単なレパートリーと言い得る変更であるから、本発明のコード自動記述2ソフトウェアを記録した記録媒体である事を明記する。
The part of the combination creation repetition process for three or more columns is a part for performing a process of creating a combination for the third and subsequent columns after performing the two-column combination array creation repetition process. If all the repetition processing is performed in the repetition processing from the beginning without performing the two-column combination array creation repetition processing, the portion that becomes a quadruple loop is divided and processed in a triple loop. Since the part of the combination creation repetition process of 3 or more columns will no longer be a process process that uses the process division avoidance process process to perform the process without repeating the return process as much as possible. Do not write.
However, the combination branch statement creation / repeat process in
第一IF文ループ処理の詳しい説明を行う。
コントロールライン配列の配列サイズと同じ配列サイズでString型の200byteの配列を作成する。作成した配列を仮データ1配列と呼ぶ。コントロールライン配列の配列サイズを、回数変数に代入されている数値で乗算して算出された数値を配列サイズとして、String型の200byteの配列を作成する。作成した配列を記述文配列と呼ぶ。200byteのString型の変数を作成する。作成した変数を仮ダット1変数と呼ぶ。String型の100byteの変数を作成する。作成した変数を仮ダット2変数と呼ぶ。16bitの変数を作成する。作成した変数をインデックス1変数と呼ぶ。インデックス1変数に0を代入する。16bitの変数を作成する。作成した変数をカウント変数と呼ぶ。カウント変数に0を代入する。記述文配列の配列サイズと同じ配列サイズで、String型の200byteの配列を作成する。作成した配列を総ブロック配列と呼ぶ。
Detailed explanation of the first IF statement loop processing will be given.
Create a 200-byte array of String type with the same array size as the control line array. The created array is called a
以下に繰り返し処理を行う。この繰り返し処理を仮総ブロック作成繰り返し処理と呼ぶ。
仮総ブロック作成繰り返し処理では、コントロールライン配列のインデックスとして、インデックス1変数を使用して、コントロールライン配列に代入されている文字列を、一行分の200byteずつ取得して、総ブロック配列のインデックスは、最初は、0であるとして、総ブロック配列のインデックスを使用して、取得したコントロールライン配列に代入されている一行分の200byteずつの文字列を総ブロック配列に代入する。インデックス1変数に1を加算する。
以下に分岐処理を行う。この分岐処理をブロック数分岐処理と呼ぶ。
ブロック数分岐処理では、以下の処理を行う。
ブロック数分岐処理で、インデックス1変数に代入されている数値が、コントロールライン配列の配列サイズと等しい場合は、インデックス1変数に0を代入する。
ブロック数分岐処理で、インデックス1変数に代入されている数値が、コントロールライン配列の配列サイズと等しくない場合は、何もしない。
ブロック数分岐処理を終わる。
総ブロック配列のインデックスに1を加算して、仮総ブロック作成繰り返し処理の最初に戻って、処理を繰り返し行う。仮ブロック作成繰り返し処理で、総ブロック配列の最初から最後までの位置に、文字列を代入し終わったら、仮総ブロック作成繰り返し処理を終了する。
The following process is repeated. This iterative process is called a provisional total block creation repetitive process.
In the provisional total block creation repetition process, the
Branch processing is performed as follows. This branch processing is called block number branch processing.
In the block number branch processing, the following processing is performed.
If the numerical value assigned to the
If the numerical value assigned to the
The block number branch process ends.
Add 1 to the index of the total block array, return to the beginning of the temporary total block creation repetition process, and repeat the process. In the temporary block creation repetition process, when the character string has been substituted into the positions from the beginning to the end of the total block array, the temporary total block creation repetition process ends.
インデックス1変数に0を代入する。
以下に繰り返し処理を行う。この繰り返し処理を総ブロック指定名置換繰り返し処理と呼ぶ。
総ブロック指定名置換繰り返し処理では、総ブロック配列のインデックスが最初は、0であるとして、総ブロック配列のインデックスを使用して、総ブロック配列の文字列を取得して、取得した文字列を仮ダット1変数に代入する。
以下に分岐処理を行う。この分岐処理を各ブロック名置換分岐処理と呼ぶ。各ブロック名置換分岐処理では、以下の処理を行う。
各ブロック名置換分岐処理で、文字列操作関数を使用して、仮ダット1変数に代入されている文字列の中に、ブロック指定名変数に代入されているブロック指定名の文字列があるかどうかの検査を行った結果、仮ダット1変数に代入されている文字列の中に、ブロック指定名の文字列が有った場合は、以下の処理を行う。
仮ダット2変数に、カウント変数に代入されている数値を代入する。
文字列操作関数のリプレース関数を使用して、仮ダット1変数に代入されている文字列の中に、ブロック指定名が有ったら、複数個あるなら、複数個のブロック指定名を全てを仮ダット2変数に代入された数値に置換して、記述文配列のインデックスとして総ブロック配列のインデックスを使用して、置換し終わった文字列を記述文配列に代入する。
各ブロック名置換分岐処理で、文字列操作関数を使用して、仮ダット1変数に代入されている文字列の中に、ブロック指定名の文字列があるかどうかの検査を行った結果、仮ダット1変数に代入されている文字列の中に、ブロック指定名の文字列が無い場合は、以下の処理を行う。
記述文配列のインデックスとして総ブロック配列のインデックスを使用して、仮ダット1変数に代入されている文字列を記述文配列に代入する。
各ブロック名置換分岐処理を終了する。
Assign 0 to the
The following process is repeated. This iterative process is called total block designation name replacement iterative process.
In the total block designation name replacement repetition process, assuming that the total block array index is initially 0, the total block array index is used to obtain the character string of the total block array, and the acquired character string is temporarily Assign to the
Branch processing is performed as follows. This branch process is referred to as each block name replacement branch process. In each block name replacement branch process, the following process is performed.
In each block name replacement branch process, whether or not there is a character string of the block designation name assigned to the block designation name variable among the character strings assigned to the temporary dat 1 variable using the character string manipulation function As a result of checking whether or not there is a block designation name character string in the character string assigned to the temporary dat 1 variable, the following processing is performed.
The numerical value assigned to the count variable is assigned to the temporary dat 2 variable.
If there is a block specification name in the character string assigned to the temporary dat 1 variable using the replace function of the character string manipulation function, if there are multiple block specification names, all the block specification names are temporarily Substituting with the numerical value assigned to the
In each block name replacement branch process, the character string manipulation function is used to check whether the character string assigned to the temporary dat 1 variable has a character string with a block designation name. If the character string assigned to the
Using the index of the total block array as the description sentence array index, the character string assigned to the temporary dat 1 variable is assigned to the description sentence array.
Each block name replacement branch process is terminated.
インデックス1変数に1を加算する。
以下に分岐処理を行う。この分岐処理をカウント分岐処理と呼ぶ。
カウント分岐処理では、インデックス1変数に代入された数値がコントロールライン配列の配列サイズと等しい場合は、インデックス1変数に0を代入して、カウント変数に、1を加算する。
カウント分岐処理では、インデックス1変数に代入された数値がコントロールライン配列の配列サイズと等しくない場合は、何もしない。
カウント分岐処理を終わる。
総ブロック配列のインデックスに1を加算する。
総ブロック指定名置換繰り返し処理の最初に戻って処理を繰り返し行う。総ブロック配列の最後のデーターの処理がおわったら、総ブロック指定名置換繰り返し処理を終了する。
第一IF文ループ処理の詳しい説明を終わる。
Add 1 to the
Branch processing is performed as follows. This branch processing is called count branch processing.
In the count branch process, when the numerical value assigned to the
In the count branch process, nothing is performed when the numerical value assigned to the
The count branch process ends.
Add 1 to the index of the total block array.
Return to the beginning of the total block designation name replacement repeat process and repeat the process. When the processing of the last data in the total block array is completed, the total block designation name replacement repetition process is terminated.
The detailed explanation of the first IF statement loop processing ends.
第二IF文ループ処理の詳しい説明を行う。
コントロールライン配列の配列サイズと同じ配列サイズでString型の200byteの配列を作成する。作成した配列を仮データ1配列と呼ぶ。コントロールライン配列の配列サイズを、回数変数に代入されている数値で乗算して算出された数値を配列サイズとして、String型の200byteの配列を作成する。作成した配列を記述文配列と呼ぶ。200byteのString型の変数を作成する。作成した変数を仮ダット1変数と呼ぶ。String型の100byteの変数を作成する。作成した変数を仮ダット2変数と呼ぶ。16bitの変数を作成する。作成した変数をインデックス1変数と呼ぶ。インデックス1変数に0を代入する。16bitの変数を作成する。作成した変数をカウント変数と呼ぶ。カウント変数に0を代入する。
Detailed explanation of the second IF statement loop processing will be given.
Create a 200-byte array of String type with the same array size as the control line array. The created array is called a
以下に繰り返し処理を行う。この繰り返し処理を記述文作成繰り返し処理と呼ぶ。
記述文作成繰り返し処理では、記述文配列のインデックスの最初は、0であるとして、コントロール配列のインデックスとして、インデックス1変数に代入された数値を使用してコントロール配列の文字列を一行分の200byte分の文字列を取得して、仮ダット1変数に代入する。
以下に、分岐処理を行う。この分岐処理をブロック指定名検査分岐処理と呼ぶ。
ブロック指定名検査分岐処理では、以下の処理を行う。
ブロック指定名検査分岐処理で、仮ダット1変数に代入されている文字列の中に、ブロック指定名変数に代入されているブロック指定名の文字列が有る場合は、以下の処理を行う。
仮ダット2変数にカウント変数に代入されている数値を代入する。
文字列操作関数のリプレース関数を使用して、仮ダット1変数に代入されている文字列の中に、複数個のブロック指定名が有る場合は、複数個のブロック指定名を全て仮ダット2変数に代入されている数値に置換して、置換した文字列を仮ダット1変数に代入する。記述文配列のインデックスを使用して、記述文配列に、仮ダット1変数に代入された文字列を代入する。
ブロック指定名検査分岐処理で、仮ダット1変数に代入されている文字列の中に、ブロック指定名変数に代入されているブロック指定名の文字列が無い場合は、以下の処理を行う。
記述文配列のインデックスを使用して、記述文配列に、仮ダット1変数に代入された文字列を代入する。
ブロック指定名検査分岐処理を終わる。
The following process is repeated. This iterative process is called a description sentence creation iterative process.
In the description sentence creation repetition process, the index of the description sentence array is assumed to start with 0, and the control array character string for 200 bytes for one line is used as the control array index, using the numerical value assigned to the
A branch process is performed below. This branch processing is called block designation name check branch processing.
In the block designation name check branch processing, the following processing is performed.
In the block designation name check branch process, when the character string assigned to the
The numerical value assigned to the count variable is assigned to the temporary dat 2 variable.
If there are multiple block designation names in the character string assigned to the temporary dat 1 variable using the replace function of the character string manipulation function, all the block designation names are all temporary dat 2 variables. Is substituted with the numerical value assigned to, and the substituted character string is assigned to the temporary dat 1 variable. Using the index of the description sentence array, the character string assigned to the temporary dat 1 variable is assigned to the description sentence array.
In the block designation name check branch process, when the character string assigned to the
Using the index of the description sentence array, the character string assigned to the temporary dat 1 variable is assigned to the description sentence array.
Ends block name check branch processing.
インデックス1変数に1を加算する。
以下に分岐処理を行う。この分岐処理をカウント2分岐処理と呼ぶ。
カウント2分岐処理では、以下の処理を行う。
カウント2分岐処理で、インデックス1変数に代入された数値が、コントロールライン配列の配列サイズと等しい場合は、インデックス1変数に0を代入して、カウント変数に1を加算する。
カウント2分岐処理で、インデックス1変数に代入された数値が、コントロールライン配列の配列サイズと等しくない場合は、何も行わない。
カウント2分岐処理を終わる。
記述文配列のインデックスに1を加算して、記述文作成繰り返し処理の最初に戻って処理を繰り返し行う。記述文配列の最後のデーターを代入し終わったら、記述文作成繰り返し処理を終了する。
第二IF文ループ処理の詳しい説明を終わる。
Add 1 to the
Branch processing is performed as follows. This branch process is referred to as a count two branch process.
In the
If the numerical value assigned to the
If the numerical value assigned to the
The
Add 1 to the index of the description sentence array, and return to the beginning of the description sentence creation repeat process to repeat the process. When the last data of the description sentence array has been assigned, the description sentence creation repetition process ends.
The detailed explanation of the second IF statement loop processing ends.
また、サーチ繰り返し処理では、コントロールライン配列の最初の位置から最後の位置までに代入されている一行分の200byte分の文字列に対して繰り返し処理を行うと言う処理になっている。コントロールライン配列に代入されているデーターが一行ずつ配列の要素に代入されているのが原因でコントロールライン配列の最初から最後の位置に代入されている文字列を繰り返し処理で処理しなければならなくなっているのである。コントロールライン配列を使用しせずに、コントロール変数に代入された文字列を対象に、発見分岐処理や、回数記述繰り返し処理を行う処理工程に変更すれば、サーチ繰り返し処理を何度も繰り返して処理を行う必要がなくなるのである。結果、処理工程は、プログラム記述繰り返し処理の中で、発見分岐処理を行い、回数記述繰り返し処理を行って、プログラム記述繰り返し処理を終わる処理工程となる。繰返し処理する処理回数が大きく減る処理工程になるのである。この様な、基本的に処理対象とする文字列を変数に代入して処理する問題回避処理技術を変数回避処理工程と呼ぶ。
この様なIF文ループ配列回避処理工程や、変数回避処理工程や、処理分断回避処理工程を使用して、本発明のコード自動記述2ソフトウェアを記録した記録媒体のどこの処理であっても、二重の繰り返し処理や、三重の繰り返し処理である部分をシングルループや二重ループに回避した処理に変更したとしても、本発明の簡単なレパートリーであるので、本発明のコード自動記述2ソフトウェアを記録した記録媒体であると明言する。
また、プログラム記述繰り返し処理の補足説明の説明で、説明している問題回避処理技術の変数回避処理工程と、IF文ループ配列回避処理工程と、処理分断回避処理工程は、本発明の一部分でのみ有効な処理技術ではなく、一般的に広く利用できる技術である事を明言する。
IF文ループ配列回避処理工程は、本発明の簡単なレパートリーとしての記述である。
余談であるが、IF文ループ配列回避処理工程は、二重ループよりも、ほんの少し、処理スピードが遅い事を確認した事を記述する事にした。
In the search repetition process, the process is repeated for a character string of 200 bytes for one line assigned from the first position to the last position in the control line array. Because the data assigned to the control line array is assigned to the elements of the array line by line, the character strings assigned to the last position of the control line array must be processed in an iterative process. -ing Without changing the control line array, the search repetition process is repeated many times by changing to the process that performs the discovery branch process and the repeated number description process for the character string assigned to the control variable. There is no need to do. As a result, the processing step is a processing step in which the discovery branch processing is performed in the program description repetitive processing, the number description repetitive processing is performed, and the program description repetitive processing is finished. This is a processing step in which the number of times of repeated processing is greatly reduced. Such a problem avoidance processing technique that basically performs processing by substituting a character string to be processed into a variable is called a variable avoidance processing step.
Using such an IF statement loop array avoidance process step, a variable avoidance process step, and a process fragmentation avoidance process step, any process on the recording medium recorded with the
In addition, the variable avoidance processing step, IF statement loop array avoidance processing step, and process division avoidance processing step of the problem avoidance processing technology described in the supplementary explanation of the program description repetition processing are only part of the present invention. It is stated that it is not an effective processing technology but a technology that can be widely used in general.
The IF statement loop array avoidance processing step is a description as a simple repertoire of the present invention.
As an aside, the IF statement loop array avoidance process was described as confirming that the processing speed was slightly slower than the double loop.
変数回避処理工程の詳しい処理工程のを説明行う。
コントロール変数と同じbyte数でString型の変数を作成する。作成した変数を仮ダット1変数と呼ぶ。コントロール変数と同じbyte数に、回数変数に代入されている数値で掛けて算出された数値のbyte数でString型の変数を作成する。作成した変数を記述文変数と呼ぶ。仮ダット1変数と同じbyte数でString型の変数を作成する。作成した変数を仮ダット2変数と呼ぶ。16bitの変数を作成する。作成した変数をカウント変数と呼ぶ。カウント変数に0を代入する。
以下に、繰り返し処理を行う。この繰り返し処理をプログラム記述繰り返し処理と呼ぶ。
プログラム記述繰り返し処理では、以下の処理を一回行う毎にカウント変数に1を加算すると言う処理を行って、カウント変数に代入された数値が回数変数に代入された数値になるまで処理を繰り返し行う。
Detailed processing steps of the variable avoidance processing step will be described.
Create a String type variable with the same number of bytes as the control variable. The created variable is called a temporary dat 1 variable. Create a String type variable with the number of bytes calculated by multiplying the same number of bytes as the control variable by the number assigned to the count variable. The created variable is called a description variable. Create a string type variable with the same number of bytes as the temporary dat 1 variable. The created variable is called a temporary dat 2 variable. Create a 16bit variable. The created variable is called a count variable. Assign 0 to the count variable.
The following is repeated. This repetitive processing is called program description repetitive processing.
In the program description repetitive processing, each time the following processing is performed once, 1 is added to the count variable, and the processing is repeated until the numerical value assigned to the count variable becomes the numerical value assigned to the count variable. .
以下に、分岐処理を行う。この分岐処理を発見分岐処理と呼ぶ。
発見分岐処理では、文字列操作関数のコンテインズ関数を使用して、コントロール変数に代入された文字列の中にブロック指定名変数に代入されたブロック指定名の文字列が有るかどうかを検査して、文字列が有る場合と無い場合とに分岐する。
発見分岐処理で、文字列操作関数のコンテインズ関数を使用して、コントロール変数に代入された文字列の中にブロック指定名変数に代入されたブロック指定名の文字列が有るかどうかを検査して、文字列が有る場合は、以下の処理を行う。
仮ダット2変数にカウント変数に代入された数値を代入する。
文字列操作関数のリプレース関数を使用して、コントロール変数の中に、ブロック指定名変数に代入されたブロック指定名の文字列が、複数個あったら、複数個の全てを仮ダット2変数に代入された数値に置換して、仮ダット1変数に代入する。
発見分岐処理で、文字列操作関数を使用して、コントロール変数に代入された文字列の中にブロック指定名変数に代入されたブロック指定名の文字列が有るかどうかを検査して、文字列が無い場合は、何も処理しない。
発見分岐処理を終了する。
A branch process is performed below. This branch processing is called discovery branch processing.
In discovery branch processing, use the contains function of the character string manipulation function to check whether the character string assigned to the control variable contains the character string of the block specification name assigned to the block specification name variable. Branches when there is a character string and when it does not exist.
In the find branch process, use the contains function of the character string manipulation function to check whether the character string assigned to the control variable has a character string with the block specification name assigned to the block specification name variable. If there is a character string, the following processing is performed.
The numerical value assigned to the count variable is assigned to the temporary dat 2 variable.
Use the replace function of the character string manipulation function, and if there are multiple character strings of the block specification name assigned to the block specification name variable in the control variable, assign all of them to the temporary dat 2 variable. It substitutes for the numerical value and substitutes it into the temporary dat 1 variable.
In discovery branch processing, use a character string manipulation function to check whether the character string assigned to the control variable has a character string with the block specification name assigned to the block specification name variable. If there is no, do nothing.
The discovery branch process is terminated.
記述文変数に代入されている文字列と仮ダット1変数に代入されている文字列を記述文変数に代入されている文字列の後方に連結して文字列を作成して、作成した文字列を記述文変数に代入する。カウント変数に1を加算する。
プログラム記述繰り返し処理の最初に戻って処理を繰り返して、カウント変数に代入された数値が回数変数に代入された数値になったら、プログラム記述繰り返し処理を終わる。
変数回避処理工程の詳しい処理工程の説明を終わる。
変数回避処理工程は、出来るだけ配列を使用しないで変数を使用する事で処理を高速化する事と、繰り返し処理の中で繰り返し処理をすると言う処理をできるだけ少なくする技術であり、一般的に知られている常識的な技術である。繰り返し処理の中で繰り返し処理をしなければならないような処理をしている場合に利用できる技術である。
また、処理分断回避処理工程も、一般的に知られている常識的技術である。繰り返し処理の中で繰り返し処理を行い、更に、繰り返し処理の中で繰り返し処理を行うと言う様な三重の繰り返し処理を繰り返し処理の中で繰り返し処理を行うと言う、二重の繰り返し処理程度に繰り返し処理を減らす技術である。
プログラム記述繰り返し処理の補足説明を終わる。
The character string created by concatenating the character string assigned to the descriptive statement variable and the character string assigned to the
Returning to the beginning of the program description repeating process, the process is repeated, and when the numerical value assigned to the count variable becomes the numerical value assigned to the count variable, the program description repeating process ends.
The detailed description of the variable avoidance process is finished.
The variable avoidance process is a technology that speeds up the process by using variables without using arrays as much as possible and reduces the number of processes that are repeated in the repeated process as much as possible. It is a common sense technology that has been used. This is a technique that can be used when processing that must be repeated in the repeated processing.
Moreover, the process division avoidance process is also a commonly known common sense technique. Repeat the process in the repetition process, and repeat the repeat process in the repeat process. This technology reduces processing.
This completes the supplementary explanation of the program description repetition process.
以下に、分岐処理を行う。この分岐処理を選択設定2分岐と呼ぶ。
選択設定2分岐では、設定変数に代入された文字列が、「Switch文」の場合と「IF文やその他」に分岐する。
選択設定2分岐で、設定変数に代入された文字列が、「Switch文」の場合は、ステップ103の処理に進み、ステップ103の次にステップ105に進む。選択設定2分岐で、設定変数に代入された文字列が、「IF文やその他」の場合は、ステップ105に進む。
選択設定2分岐を終了する。
A branch process is performed below. This branching process is called a selection setting two branch.
In the selection setting 2 branch, the character string assigned to the setting variable branches to “Switch statement” and “IF statement and others”.
If the character string assigned to the setting variable in the selection setting 2 branch is “Switch statement”, the process proceeds to step 103, and then proceeds to step 105 after
The selection setting 2 branch ends.
ステップ103の「Case文の前後の文を付加してSwitch文を完成させる」処理工程の処理を行う。ステップ103は、コード自動記述2ソフトウェアとコンピューターによる自動処理工程である。
テップ103は、選択設定分岐で、図符号Eのコード文の選択画面を「Switch文」に選択設定した場合の処理工程である。
コントロールライン配列の配列サイズに4個を加算した数値を配列サイズとして、200byteのString型の配列を作成する。作成した配列をスイッチ配列と呼ぶ。スイッチ配列の最初の位置に「switch (n)」と言うSwitch文の最初の行に必要な文字列を代入する。スイッチ配列の末尾に「{」と言うSwitch文の二行目の行に必要な文字列を代入する。
以下に、繰り返し処理を行う。この繰り返し処理をケース代入繰り返し処理と呼ぶ。
ケース代入繰り返し処理では、コントロールライン配列の最初から最後までの位置に代入された一行分ずつの200byteずつの文字列を順番通りに取得して、スイッチ配列の末尾に一行分ずつの200byteずつ代入する。
ケース代入繰り返し処理を終了する。
ケース配列の末尾に、「default:」と言うSwitch文の最後から二行目の行に必要な文字列を代入する。
ケース配列の末尾に、「}」と言うSwitch文の最後の行に必要な文字列を代入する。
コントロールライン配列の配列サイズをスイッチ配列の配列サイズに変更する。スイッチ配列の最初から最後の位置に代入されている一行ずつの200byteずつの文字列を全て、コントロールライン配列の最初の位置から最後の位置までの位置に、コピーする。
次に、ステップ105に進む。
In
Step 103 is a processing step in the case where the selection screen of the code sentence of the symbol E is selected and set to “Switch sentence” in the selection setting branch.
Create a 200-byte String array using the array size of the control line array plus four. The created array is called a switch array. Assign the required character string to the first line of the Switch statement "switch (n)" at the first position of the switch array. Assign the necessary character string to the second line of the Switch statement called "{" at the end of the switch array.
The following is repeated. This iterative process is called a case substitution iterative process.
In case substitution repetition processing, the 200-byte character string for each line assigned to the position from the beginning to the end of the control line array is acquired in order, and 200 bytes for each line are substituted at the end of the switch array. .
The case substitution repetition process is terminated.
At the end of the case array, substitute the necessary character string in the second line from the end of the Switch statement "default:".
At the end of the case array, substitute the necessary string in the last line of the Switch statement called "}".
Change the array size of the control line array to the array size of the switch array. Copies all 200-byte character strings for each line assigned to the first to last positions in the switch array to the positions from the first position to the last position in the control line array.
Next, the process proceeds to step 105.
ステップ104の「図符号Gの文字列と図符号Qの文字列を探して組合せの数値に置換する」処理工程の処理を行う。104は、コード自動記述2ソフトウェアとコンピューターによる自動処理工程である。
16bitの変数を作成する。作成した変数を行数指定変数と呼ぶ。
図符号Mの行数指定画面で指定された任意の行数に相当する任意の数値を取得して、取得した任意の数値を行数指定変数に代入する。16bitの変数を作成する。作成した変数を列数指定変数と呼ぶ。図符号Oの列数指定画面で指定された変数や配列の数に相当する列数の任意の数値を取得して、取得した列数の数値を列数指定変数に代入する。100byteのString型の変数を作成する。作成した変数を回答指定名変数と呼ぶ。図符号Qの回答指定名テキストボックスに指定されている任意の文字列を取得して、回答指定名変数に代入する。String型の100byteの変数を作成する。作成した変数をブロック指定名変数と呼ぶ。ブロック指定名変数に図符号Gのブロック指定名テキストボックスに入力されている回答指定名変数に代入されていない任意の文字列を代入する。16bitの変数を作成する。作成した変数を組合せ数1変数と呼ぶ。組合せ数1変数に0を代入する。16bitの変数を作成する。作成した変数を組合せ数2変数と呼ぶ。組合せ数2変数に0を代入する。200byteのString型の組合せ変数に代入されている数値を配列サイズとして、String型の200byteの配列を作成する。作成した配列を、組合せ配列と呼ぶ。16bitの変数を作成する。作成した変数をインデックス1変数と呼ぶ。インデックス1変数に0を代入する。16bitの変数を2個作成する。作成した変数をそれぞれ、A数値変数、B数値変数と呼ぶ。
The processing of the processing step of “retrieve character string of graphic symbol G and graphic character of graphic symbol Q and replace with a numerical value of combination” in
Create a 16bit variable. The created variable is called a line number specification variable.
An arbitrary numerical value corresponding to an arbitrary number of lines designated on the line number designation screen of FIG. M is acquired, and the obtained arbitrary numerical value is substituted into a line number designation variable. Create a 16bit variable. The created variable is called the column number specification variable. Arbitrary numerical values of the number of columns corresponding to the number of variables and arrays specified on the column number specifying screen of FIG. Create a 100-byte String variable. The created variable is called an answer designation name variable. An arbitrary character string designated in the answer designation name text box indicated by the symbol Q is acquired and assigned to the answer designation name variable. Create a 100-byte variable of type String. The created variable is called a block designation variable. An arbitrary character string that is not assigned to the answer designation name variable that is input in the block designation name text box of FIG. Create a 16bit variable. The created variable is called a variable with one combination. Assign 0 to the variable with 1 combination. Create a 16bit variable. The created variable is called a variable with 2 combinations. Assign 0 to the number of
以下に分岐処理を行う。この分岐処理を列数分岐処理と呼ぶ。
列数分岐処理では、以下の処理を行う。
列数分岐処理で、列数変数に代入された数値が2の場合は、以下の処理を行う。
行数指定変数に代入されている数値を二乗した数値を算出させて、組合せ変数に代入する。
String型の200byteの組合せ変数に代入された数値を配列サイズとして、String型の200byteの配列を作成する。作成した配列を新組合せ1配列と呼ぶ。
Branch processing is performed as follows. This branch processing is called column number branch processing.
In the column number branch processing, the following processing is performed.
In the column number branching process, when the numerical value assigned to the column number variable is 2, the following processing is performed.
Calculate the square value of the numerical value assigned to the row number specification variable and assign it to the combination variable.
Create a 200-byte array of String type using the numerical values assigned to the 200-byte combination variable of String type as the array size. The created array is called a
String型の200byteの組合せ変数に代入された数値を配列サイズとして、String型の200byteの配列を作成して、作成した配列を新組合せコピー配列と呼ぶ。
以下に繰り返し処理を行う。以下の繰り返し処理を2列組合せ配列作成繰り返し処理と呼ぶ。
2列組合せ配列作成繰り返し処理では、以下の処理を行う。A数値変数に代入された数値が、行数指定変数に代入された数値になるまで、A数値変数に、1を加算して処理を繰り返し行う。
以下に繰り返し処理を行う。以下の繰り返し処理を行数繰り返し処理と呼ぶ。
行数繰り返し処理では、行数指定変数に代入された数値を行数繰り返し処理の繰り返し回数として処理を繰り返し行う。
任意の文字の一文字を記号として決めて、決めた記号を区切り記号と呼ぶ事とする。A数値変数に代入された数値に、区切り記号を連結して文字列を作成して、作成した文字列に、B数値変数に代入された数値を連結して文字列を作成して、作成した文字列を新組合せコピー配列のインデックスとして、インデックス1変数に代入された数値を使用して、新組合せコピー配列に代入する。
B数値変数に、1を加算する。インデックス1変数に、1を加算する。
行数繰り返し処理の最初に戻って処理を繰り返し行う。
行数指定変数に代入されている数値まで行数繰り返し処理を行ったら、行数繰り返し処理を終了する。
A数値変数に、1を加算する。
B数値変数に、0を代入する。
2列組合せ配列作成繰り返し処理の最初に戻って、2列組合せ配列作成繰り返し処理を繰り返し行う。A数値変数に代入された数値が、行数指定変数に代入された数値になったら、2列組合せ配列作成繰り返し処理を終了する。
A 200-byte array of String type is created using the numerical values assigned to the 200-byte combination variable of the String type as the array size, and the created array is called a new combination copy array.
The following process is repeated. The following iterative process is called a two-column combination array creation iterative process.
In the two-row combination array creation repetition process, the following process is performed. The process is repeated by adding 1 to the A numeric variable until the numeric value assigned to the A numeric variable becomes the numeric value assigned to the row number designation variable.
The following process is repeated. The following repetition process is referred to as a line number repetition process.
In the line number repetition process, the process is repeated using the numerical value assigned to the line number designation variable as the repetition number of the line number repetition process.
An arbitrary character is determined as a symbol, and the determined symbol is called a delimiter. Created a string by concatenating delimiters to the numeric value assigned to the A numeric variable, and created the string by concatenating the numeric value assigned to the B numeric variable to the created string. Using the numeric value assigned to the
Return to the beginning of the line number repetition process and repeat the process.
When the number of lines is repeated up to the numerical value assigned to the number-of-lines designation variable, the number of lines repetition process is terminated.
A
B Assign 0 to the numeric variable.
Returning to the beginning of the two-column combination array creation repetition process, the two-column combination array creation repetition process is repeated. When the numerical value assigned to the A numerical variable becomes the numerical value assigned to the row number designating variable, the two-column combination array creation repetition process is terminated.
新組合せコピー配列に代入されている全てのデーターを新組合せ1配列の最初の位置から最後の位置までに上書きで代入する。
組合せ配列の配列サイズを新組合せ1配列の配列サイズで、200byteの配列に変更して、新組合せ1配列に代入されている200byteずつの全ての文字列を、組合せ配列の最初から最後までの位置に上書きで代入する。
区切り記号の説明を行う。
〔実施例1〕では、任意の文字を区切り記号とする場合、「,」を記号として使用した。
区切り記号の説明を終わる。
All data assigned to the new combination copy array is assigned by overwriting from the first position to the last position of the
Change the array size of the combination array to the 200-byte array with the array size of the
Describe the delimiters.
In [Example 1], when an arbitrary character is used as a delimiter, “,” is used as a symbol.
End of explanation of delimiters.
列数分岐処理で、列数変数に代入された数値が3以上の場合は、以下の処理を行う。
行数指定変数に代入されている数値を二乗して算出した数値を、組合せ変数に代入する。
組合せ変数に代入された数値に行数指定変数に代入された数値を乗算した数値を組合せ数2変数に代入する。
String型の200byteの組合せ2変数に代入された数値を配列サイズとして、String型の200byteの配列を作成する。作成した配列を新組合せ2配列と呼ぶ。
In the column number branch processing, when the numerical value assigned to the column number variable is 3 or more, the following processing is performed.
The numerical value calculated by squaring the numerical value assigned to the row number specification variable is assigned to the combination variable.
A numerical value obtained by multiplying the numerical value assigned to the combination variable by the numerical value assigned to the row number designation variable is assigned to the
Creates a 200-byte array of String type using the numerical values assigned to the 200-
段落〔0137〕の2列組合せ配列作成繰り返し処理を行う。段落〔0137〕の2列組合せ配列作成繰り返し処理が終わったら、新組合せコピー配列に代入されている全てのデーターを新組合せ2配列の最初の位置から最後の位置までに上書きで代入する。
組合せ配列の配列サイズを新組合せ2配列の配列サイズで200byteの配列に変更して、新組合せ2配列に代入されている200byteずつの全ての文字列を、組合せ配列の最初から最後までの位置に上書きで代入する。
組合せ数2変数に、組合せ配列の配列サイズを取得して代入する。
組合せ数2変数に代入された数値を、行数指定変数に代入された数値で乗算した数値を算出して、算出した数値を組合せ数2変数に上書きで代入する。
The two-row combination array creation process of paragraph [0137] is repeated. When the two-column combination array creation repetition process in paragraph [0137] is completed, all data assigned to the new combination copy array is assigned by overwriting from the first position to the last position of the new combination two array.
Change the array size of the combination array to a 200 byte array with the array size of the
The array size of the combination array is acquired and assigned to the
A numerical value obtained by multiplying the numerical value assigned to the
組合せ数2変数に代入された数値を配列サイズとしてString型の200byteの配列を作成する。作成した配列を組合せコピー2配列と呼ぶ。A数値変数に、0を代入し、B数値変数に、0を代入する。インデックス1変数に0を代入する。
以下に、繰り返し処理を行う。この繰り返し処理を3列以上組合せ作成繰り返し処理と呼ぶ。3列以上組合せ作成繰り返し処理を、列数指定変数に代入されている数値から2を減算した回数処理を繰り返し終わったら、3列以上組合せ作成繰り返し処理を終了する。
3列以上組合せ作成繰り返し処理では、以下に繰り返し処理を行う。この繰り返し処理を3列以上組合せ作成2繰り返し処理と呼ぶ。
3列以上組合せ作成2繰り返し処理では、組合せ数2変数に代入された数値とA数値変数に代入された数値が同じ数値になるまで、A数値変数に代入された数値に、1を加算して処理を繰り返す。以下に繰り返し処理を行う。この繰り返し処理を3列以上組合せ作成3繰り返し処理と呼ぶ。
3列以上組合せ作成3繰り返し処理では、行数指定変数に代入された数値と、インデックス1変数に代入された数値が同じ数値になるまで、インデックス1変数に代入された数値に、1を加算して処理を繰り返す。組合せ配列のインデックスとしてA数値変数に代入された数値を使用して組合せ配列に代入されている文字列を取得して、取得した文字列に、区切り記号と、B数値変数に代入された数値を連結して、連結して作成した文字列を組合せコピー2配列のインデックスとしてインデックス1変数に代入された数値を使用して、組合せコピー2配列に代入する。インデックス1変数に1を加算する。B数値変数に1を加算する。3列以上組合せ作成3繰り返し処理の最初に戻って、処理を繰り返す。行数指定変数に代入された数値と、インデックス1変数に代入された数値が同じ数値になったら、3列以上組合せ作成3繰り返し処理を終了する。
Create a 200-byte array of String type using the numerical value assigned to the variable number of combinations as the array size. The created sequence is called a
The following is repeated. This repetition process is called a combination creation repetition process of three or more columns. When the number of times of subtracting 2 from the numerical value assigned to the number-of-columns designation variable is repeated for the combination creation repetition process for three or more columns, the combination creation repetition process for three or more columns is terminated.
In the combination creation repetition process for three or more columns, the following repetition process is performed. This iterative process is called
In the 3 or
In 3 or
A数値変数に1を加算する。B数値変数に、0を代入する。
組合せ数2変数に代入された数値とA数値変数に代入された数値が同じ数値になったら、3列以上組合せ作成2繰り返し処理を終了する。
組合せ配列を組合せコピー2配列の配列サイズで200byteの配列に変更する。
組合せコピー2配列に代入された最初の位置から最後の位置までに代入された文字列を組合せ配列の最初の位置から最後の位置までに全て上書きで代入する。
組合せ配列の配列サイズを取得して、組合せ数2変数に代入する。組合せ数2変数に代入された数値を、行数指定変数に代入された数値で乗算した数値を算出して、算出した数値を組合せ数2変数に上書きで代入する。
3列以上組合せ作成繰り返し処理の最初に戻って繰り返し処理を繰り返す。3列以上組合せ作成繰り返し処理を、列数指定変数に代入されている数値から2を減算した回数処理を繰り返し終わったら、3列以上組合せ作成繰り返し処理を終了する。
これで、列数分岐処理を終了する。
A
If the numerical value assigned to the
The combination array is changed to an array of 200 bytes with the array size of the
The character strings assigned from the first position to the last position assigned to the
The array size of the combination array is acquired and assigned to the number of
Return to the beginning of the combination creation repetition process for three or more columns and repeat the repetition process. When the number of times of subtracting 2 from the numerical value assigned to the number-of-columns designation variable is repeated for the combination creation repetition process for three or more columns, the combination creation repetition process for three or more columns is terminated.
This terminates the column number branching process.
組合せ数2変数に、組合せ配列の配列サイズを取得して代入する。
図符号Lのブロック数表示テキストボックスに、組合せ数2変数に代入された数値を表示する。
配列サイズが、コントロールライン配列の配列サイズと同じ配列サイズのString型の200byteの配列を作成する。作成した配列を仮プログラム配列と呼ぶ。コントロールライン配列の配列サイズの数値を、組合せ数2変数に代入された数値で乗算した数値を、配列サイズとしてString型の200byteの配列を作成する。作成した配列をプログラム配列と呼ぶ。String型の200byteの変数を2個作成する。作成した2個の変数をそれぞれ、仮データ1変数、仮データ2変数と呼ぶ。インデックス1変数に0を代入する。16bitの変数を作成する。作成した変数をカウント2変数と呼ぶ。カウント2変数に0を代入する。16bitの変数を作成する。作成した変数をインデックス2変数と呼ぶ。インデックス2変数に0を代入する。
The array size of the combination array is acquired and assigned to the
In the block number display text box indicated by the reference numeral L, the numerical value assigned to the
Create a 200-byte array of String type whose array size is the same as the control line array size. The created array is called a temporary program array. A 200-byte array of String type is created with the array size obtained by multiplying the numerical value of the array size of the control line array by the numerical value assigned to the
以下に繰り返し処理を行う。この繰り返し処理を組合せ分岐文作成繰り返し処理と呼ぶ。
組合せ分岐文作成繰り返し処理では、カウント2変数に代入されている数値が、組合せ数2変数に代入されている数値になるまで、以下の処理を繰り返し行う。
以下に繰り返し処理を行う。以下の繰り返し処理をプログラム配列作成繰り返し処理と呼ぶ。
コントロールライン配列のインデックスが、最初は、0であるとして、コントロールライン配列のインデックスを使用して、コントロールライン配列の200byteの文字列を、仮データ1変数に代入する。
The following process is repeated. This iterative process is referred to as a combined branch sentence creation iterative process.
In the combination branch statement creation repetition process, the following processing is repeatedly performed until the numerical value assigned to the
The following process is repeated. The following iterative process is called a program array creation repetitive process.
Assuming that the index of the control line array is initially 0, a 200-byte character string of the control line array is substituted into the
以下に分岐処理を行う。この分岐処理を回答分岐処理と呼ぶ。
回答分岐処理で、文字列操作関数のコンテインズ関数を使用して仮データ1変数に代入された200byteの文字列の中に、回答指定名変数に代入された回答指定名に指定された文字列が有るかどうかを検査して、有った場合は、以下の処理を行う。
16bitの変数を2個作成する。作成した2個の変数をそれぞれ、インデックス3変数、インデックス4変数と呼ぶ。インデックス3変数に、0を代入する。インデックス4変数に、0を代入する。8bitの変数を作成する。作成した変数をアンサー変数と呼ぶ。アンサー変数に、0を代入する。組合せ配列に代入されたデーターを区切り記号で分割したデーターを全て代入できる配列サイズでString型の4byteの配列を作成する。作成した配列を区切り分割配列と呼ぶ。16bitの変数を作成する。作成した変数を回答文字数変数と呼ぶ。文字列操作関数のスピリット関数と言う、任意の文字で文字列を分割する処理を行う関数を使用して、組合せ配列のインデックスとして、インデックス2変数に代入された数値を使用して、組合せ配列に代入された文字列を取得して、取得した文字列を区切り記号で分割して、分割した文字列を区切り分割配列に代入する。
回答指定名変数に代入された回答指定名に指定された文字列の文字数を取得して、回答文字数変数に代入する。
Branch processing is performed as follows. This branch processing is called answer branch processing.
In the answer branch process, the character string specified for the answer designation name assigned to the answer designation name variable is included in the 200-byte string assigned to the
Create two 16-bit variables. The two created variables are called an
The number of characters of the character string designated in the answer designation name assigned to the answer designation name variable is acquired and substituted into the answer character count variable.
以下に繰り返し処理を行う。以下の繰り返し処理を回答置換繰り返し処理と呼ぶ。
回答置換繰り返し処理では、アンサー変数に代入された数値が、0以外の数値になるまで処理を繰り返し行う。
文字列操作関数のインデックスオフ関数を使用して、仮データ1変数に代入されている文字列の中に有る、回答指定名変数に代入された回答指定名に指定された文字列の先頭位置を取得して、インデックス3変数に代入する。
文字列操作関数のインデックスオフ関数の説明を行う。
検索したい文字列中から、指定した文字列を探し出して、探し出した先頭の位置を検索したい文字列の何番目から文字列が有ると言う具合に、数値として答える関数である。検索したい文字列の中に指定した文字列が無かった場合は、-1を数値として答える関数である。コンパイラ付属の関数なので、使用するコンパイラによっては、この関数が無い場合もある。同じ処理が出来る処理を作成しても、本発明のレパートリーである事を明言する。
文字列操作関数のインデックスオフ関数の説明を終わる。
以下に分岐処理を行う。この分岐処理を最終回答分岐処理と呼ぶ。
最終回答分岐処理で、インデックス3変数に代入された数値が0より大きい数値の場合は、以下の処理を行う。
文字列操作関数のリムーブ関数を使用して、インデックス3変数に代入された数値を仮データ1変数に代入されている文字列の先頭位置として使用して、回答文字数変数に代入された数値を文字数として使用して、文字数分の文字列を、仮データ1変数に代入された文字列から削除した文字列を作成して、作成した文字列を仮データ1変数に代入する。
The following process is repeated. The following iterative process is called an answer replacement iterative process.
In the answer replacement repetition process, the process is repeated until the numerical value assigned to the answer variable becomes a numerical value other than 0.
Using the index-off function of the character string manipulation function, find the start position of the character string specified in the response specification name assigned to the response specification name variable in the character string assigned to the
Describes the index-off function of the string manipulation function.
This is a function that searches for a specified character string from the character string to be searched, and answers as a numerical value, such as the number of the character string from which the character string to be searched is located at the first position searched. This function returns -1 as a numerical value when the specified character string is not found in the character string to be searched. Since this is a function attached to the compiler, this function may not exist depending on the compiler used. Even if a process capable of performing the same process is created, it is clearly stated that it is a repertoire of the present invention.
The description of the index-off function of the character string manipulation function ends.
Branch processing is performed as follows. This branch process is called final answer branch process.
When the numerical value assigned to the
Using the remove function of the character string manipulation function, the numerical value assigned to the
文字列操作関数のインサート関数を使用して、区切り分割配列のインデックスとして、インデックス4変数に代入された数値を使用して、区切り分割配列に代入された文字列を取得して、インデックス3変数に代入された数値を、仮データ1変数に代入された文字列の位置として使用して、仮データ1変数に代入された文字列の位置に、区切り分割配列から取得した文字列を挿入した文字列を作成して、仮データ1変数に代入する。
インデックス4変数に、1を加算する。
最終回答分岐処理で、インデックス3変数に代入された数値が-1の場合は、以下の処理を行う。
アンサー変数に1を代入する。
最終回答分岐処理を終了する。
回答置換繰り返し処理の最初に戻って、アンサー変数に代入された数値が、0以外の数値になるまで回答置換繰り返し処理を繰り返して、アンサー変数に代入された数値が1になったら、回答置換繰り返し処理を終わる。
回答分岐処理で、文字列操作関数のコンテインズ関数を使用して仮データ1変数に代入された200byteの文字列の中に、回答指定名変数に代入された回答指定名に指定された文字列が有るかどうかを検査して、仮データ1変数に代入された200byteの文字列の中に回答指定名変数に代入された回答指定名に指定された文字列が無かった場合は、何も処理を行なわない。
Using the insert function of the character string manipulation function, using the numeric value assigned to the index 4 variable as the index of the delimited partition array, obtain the character string assigned to the delimited partition array, and use it as the
Add 1 to the index 4 variable.
When the numerical value assigned to the
Assign 1 to the answer variable.
End the final answer branching process.
Return to the beginning of the answer replacement iteration process, repeat the answer substitution iteration process until the number assigned to the answer variable becomes a number other than 0, and when the number assigned to the answer variable reaches 1, the answer substitution iteration is repeated. End processing.
In the answer branch process, the character string specified for the answer designation name assigned to the answer designation name variable is included in the 200-byte string assigned to the
以下に分岐処理を行う。この分岐処理をブロック分岐処理と呼ぶ。
ブロック分岐処理では、文字列操作関数のコンテインズ関数を使用して仮データ1変数に代入された文字列の中に、ブロック指定名変数に代入されたブロック指定名の文字列が有るかどうかを検査して、仮データ1変数に代入された文字列の中に、ブロック指定名変数に代入されたブロック指定名の文字列が有る場合と無い場合に分岐処理する。仮データ1変数に代入された文字列の中に、ブロック指定名変数に代入されたブロック指定名の文字列が有る場合は、以下の処理を行う。
カウント2変数に代入されている数値を仮データ2変数に代入する。
文字列操作関数のリプレース関数と言う関数を使用して、仮データ1変数に代入された文字列の中に有ったブロック指定名変数に代入されたブロック指定名の文字列をカウント2変数に代入された数値に置換した文字列を作成して、仮データ1変数に代入する。
ブロック分岐処理で、仮データ1変数に代入された文字列の中に、ブロック指定名変数に代入されたブロック指定名の文字列が無い場合は、何も行わない。
ブロック分岐処理を終了する。
仮ブロック配列のインデックスに、コントロールライン配列のインデックスを使用して、仮データ1変数に代入されている文字列を仮ブロック配列に代入する。
プログラム配列作成繰り返し処理の最初に戻って、処理を繰り返す。コントロールライン配列の最初の位置から最後の位置までに代入された文字列を全て処理し終わったら、プログラム配列作成繰り返し処理を終了する。
Branch processing is performed as follows. This branch processing is called block branch processing.
In block branch processing, check whether the character string assigned to the
The numerical value assigned to the
Using a function called the replace function of the character string manipulation function, the character string of the block designation name assigned to the block designation name variable in the character string assigned to the
In the block branch process, if the character string assigned to the
Block branch processing ends.
The character string assigned to the
Return to the beginning of the program array creation repetition process and repeat the process. When all the character strings assigned from the first position to the last position in the control line array have been processed, the program array creation repetition process ends.
以下に繰り返し処理を行う。この繰り返し処理を組合せ記述繰り返し処理と呼ぶ。
組合せ記述繰り返し処理で、仮プログラム配列のインデックスは、最初は、0であるとして、仮プログラム配列の文字列を取得して、プログラム配列のインデックスに、インデックス1変数に代入された数値を使用して、取得した文字列をプログラム配列に代入する。
インデックス1変数に、1を加算する。
仮プログラム配列のインデックスに、1を加算して、組合せ記述繰り返し処理の最初に戻って、処理を繰り返し行う。仮プログラム配列の最後の位置に代入された文字列まで、全ての処理が終わったら、組合せ記述繰り返し処理を終了する。
カウント2変数に、1を加算する。
カウント2変数に代入された数値が、組合せ2変数の数値になるまで、組合せ分岐文作成繰り返し処理を繰り返し行う。カウント2変数に代入された数値が、組合せ2変数の数値になったら、組合せ分岐文作成繰り返し処理を終わる。
コントロールライン配列の配列サイズをプログラム配列の配列サイズに変更する。
プログラム配列の最初から最後までの位置に代入されている文字列を一行分ずつの200byteずつ取得して、コントロールライン配列の最初の位置から最後の位置までにコピーする。
次にステップ105に進む。
The following process is repeated. This iterative process is called a combination description iterative process.
In the combination description repetition process, the index of the temporary program array is initially assumed to be 0, and the character string of the temporary program array is acquired, and the numerical value assigned to the
Add 1 to the
Add 1 to the index of the temporary program array, return to the beginning of the combination description repetition process, and repeat the process. When all the processes up to the character string substituted at the last position of the temporary program array are completed, the combination description repetition process is terminated.
Add 1 to the
The combination branch statement creation repetition process is repeated until the numerical value assigned to the
Change the control line array size to the program array size.
The character string assigned to the position from the beginning to the end of the program array is fetched by 200 bytes for each line, and copied from the first position to the end position of the control line array.
Next, the process proceeds to step 105.
次に、ステップ105の「自動記述したプログラムコードをファイルに保存する」処理工程の処理を行う。ステップ105は、コード自動記述2ソフトウェアとコンピューターによる自動処理工程である。
コントロールライン配列の最初の位置から最後の位置に代入されている文字列を一行分ずつの200byteずつテキスト形式でファイルに保存する。
〔実施例1〕の詳しい処理工程の説明を終わる。
Next, the processing of the “save automatically written program code in a file” processing step in
The character string assigned from the first position to the last position in the control line array is saved in a text format in 200 bytes for each line.
The detailed description of the processing steps of [Embodiment 1] ends.
〔実施例2〕は、本発明のコード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーとして記述したものである。その為、〔実施例2〕のフローチャート図は無い。
〔実施例2〕の詳しい処理工程の説明を行う。
人為的な入力処理によって、ソフトウェアの操作画面に以下の処理を行う。
図符号Tの配列型名選択画面は、図符号Uの配列型名指定ボタンを図符号Dのマウスを使用してクリックする事で、「int」と、「String」のどちらかを選択指定できる様になっている。また、図符号Rの作成個数指定ボタンを図符号Dのマウスを使用してクリックする事で図符号Qの作成個数指定画面に、個数を指定する事が出来る様になっている。
図符号Dのマウスを使用して図符号Uの配列型名指定ボタンをクリックして図符号Tの配列型名選択画面を「int」または、「String」に選択設定して、図符号Pの配列名指定テキストボックスに、図18の<実施例2の配列コード自動記述2ソフトウェアで配列を3個作成する処理と、3個の配列を初期化する処理を記述させた操作画面図>で示す様に、図符号Cのキーボードを使用して入力して、図符号Dのマウスを使用して図符号Rの作成個数指定ボタンをクリックする事で図符号Qの作成個数指定画面に、個数を指定して、図符号Sの配列サイズ指定テキストボックスに、図符号Cのキーボードを使用して配列サイズを数値で入力して、図符号Tの配列作成ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。
[Embodiment 2] is described as a simple repertoire of a recording medium on which the
Detailed processing steps of [Example 2] will be described.
The following processing is performed on the software operation screen by artificial input processing.
The array type name selection screen of the figure symbol T can be selected and designated either “int” or “String” by clicking the array type name designation button of the figure symbol U with the mouse of the figure symbol D. It is like. In addition, by clicking the creation number designation button for the figure symbol R using the mouse for the figure symbol D, the number can be designated on the creation number designation screen for the figure symbol Q.
Click the array type name designation button of the diagram code U using the mouse of the diagram code D, and select and set the array type name selection screen of the diagram code T to “int” or “String”. FIG. 18 shows <Operation screen diagram in which processing for creating three arrays and processing for initializing the three arrays are described by the software for automatically describing
この後は、コンピューターと、本発明のコード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーの実施例2の配列コード自動記述2ソフトウェアによる自動処理である。
100byteのString型の変数を作成する。作成した変数を配列名前変数と呼ぶ。配列名前変数に、図符号Pの配列名指定テキストボックスに入力された文字列を代入する。6byteのString型の変数を作成する。作成した変数を型名変数と呼ぶ。型名変数に、図符号Tの配列型名選択画面で選択設定された文字列を代入する。16bitの変数を作成する。作成した変数を個数変数と呼ぶ。個数変数に図符号Qの作成個数指定画面で指定された個数を示す数値を代入する。100byteのString型の変数を作成する。作成した変数を配列名変数と呼ぶ。配列名変数に、図符号Pの配列名指定テキストボックスに入力された文字列を代入する。100byteのString型の変数を作成する。作成した変数を配列サイズ変数と呼ぶ。配列サイズ変数に図符号Sの配列サイズ指定テキストボックスに代入された数値または、文字や文字列を代入する。16bitの変数を作成する。作成した変数をサイズ変数と呼ぶ。サイズ変数に0を代入する。100byteの変数を作成する。作成した変数を文字数値変数と呼ぶ。図符号Sの配列サイズ指定テキストボックスに代入された数値または、文字や文字列を取得して、取得した文字を文字コードに変換して文字数値変数に代入する。
After this, automatic processing is performed by the sequence code
Create a 100-byte String variable. The created variable is called an array name variable. The character string input in the array name designation text box indicated by symbol P is assigned to the array name variable. Create a 6-byte String variable. The created variable is called a type name variable. A character string selected and set on the array type name selection screen indicated by the symbol T is assigned to the type name variable. Create a 16bit variable. The created variable is called the number variable. A numerical value indicating the number designated on the creation number designation screen for the figure symbol Q is substituted into the number variable. Create a 100-byte String variable. The created variable is called an array name variable. The character string input in the array name designation text box indicated by symbol P is assigned to the array name variable. Create a 100-byte String variable. The created variable is called an array size variable. A numerical value or a character or character string assigned to the array size designation text box of the symbol S is assigned to the array size variable. Create a 16bit variable. The created variable is called a size variable. Assign 0 to the size variable. Create a 100byte variable. The created variable is called a character numeric variable. A numerical value or a character or a character string assigned to the array size designation text box of FIG.
個数変数の配列サイズで200byteのString型の配列を作成する。作成した配列をアレイ1配列と呼ぶ。16bitの変数を作成する。作成した変数をインデックス変数と呼ぶ。インデックス変数に0を代入する。
以下に、分岐処理を行う。この分岐処理を数配配列作成分岐と呼ぶ。
数配配列作成分岐では、文字数値変数に代入された文字コードが65未満か65以上かで分岐する。
Create a 200-byte String type array with the array size of the number variable. The created array is called an
A branch process is performed below. This branch process is referred to as a sequence arrangement creation branch.
In the sequence arrangement creation branch, a branch is made if the character code assigned to the character numeric variable is less than 65 or greater than 65.
数配配列作成分岐の説明を行う。
ASCIIコードでは、64までが、数値とその他の文字コードで、65以上がアルファベットやその他の文字列となっているので、65を基準に分岐すれば数値とアルファベットのどちらが入力されているのかが判断できると言う事になるのである。
以下の数配配列初期化分岐でも、文字数値変数に代入された文字コードが65未満か65以上かで分岐する処理が行われるが、同じ様に、代入された文字コードが数値なのかアルファベットなのかを判断させる分岐処理である。
数配配列作成分岐の説明を終わる。
An explanation will be given of the branching of the sequence arrangement.
With ASCII codes, up to 64 are numeric values and other character codes, and 65 and above are alphabets and other character strings. If you branch based on 65, you can determine whether numeric values or alphabets are entered. You will be able to do it.
Even in the following sequence arrangement initialization branch, processing is performed depending on whether the character code assigned to the character numeric variable is less than 65 or greater than 65, but in the same way, whether the assigned character code is numeric or alphabetic This is a branch process for determining whether or not.
This concludes the description of the sequence arrangement creation branch.
数配配列作成分岐で、文字数値変数に代入された文字コードが65未満の場合は、以下の処理を行う。
以下に、繰り返し処理を行う。この繰り返し処理を数値配列作成繰り返し処理と呼ぶ。
数値配列作成繰り返し処理では、以下の繰り返し処理を行う。
数値配列作成繰り返し処理では、型名変数に代入された文字列に「[]」の文字を連結して文字列を作成して、作成した文字列に、配列名変数に代入された文字列を連結して文字列を作成して、作成した文字列に、インデックス変数に代入された数値を連結して文字列を作成して、作成した文字列に、「 = new 」と言う文字列を連結して文字列を作成して、作成した文字列に、型名変数を連結して文字列を作成して、作成した文字列に、「[」を連結して文字列を作成して、作成した文字列に、配列サイズ変数に代入された数値を連結して文字列を作成して、作成した文字列に、「];」と言う文字列を連結して文字列を作成して、アレイ1配列のインデックスとしてインデックス変数に代入された数値を使用してアレイ1配列に作成した文字列を代入する。
インデックス変数に1を加算して、数値配列作成繰り返し処理の最初に戻って処理を繰り返し行う。インデックス変数に代入された数値が個数変数に代入された数値になったら、数値配列作成繰り返し処理を終了する。
If the character code assigned to the numeric character variable is less than 65 in the sequence arrangement creation branch, the following processing is performed.
The following is repeated. This iterative process is referred to as a numerical array creation iterative process.
In the numerical array creation repetition process, the following repetition process is performed.
In the numerical array creation iteration process, the character string assigned to the type name variable is concatenated with the character “[]” to create a character string, and the character string assigned to the array name variable is added to the created character string. Create a string by concatenating, create a string by concatenating the numerical value assigned to the index variable to the created string, and concatenate the string "= new" to the created string Create a string by concatenating the type name variable to the created string, create a string, and create a string by concatenating "[" to the created string. Create a character string by concatenating the numeric value assigned to the array size variable to the created character string, concatenate the character string "];" to the created character string, and create a character string. Using the numerical value assigned to the index variable as the index of one array, the character string created in the
Add 1 to the index variable and repeat the process by returning to the beginning of the numerical array creation repetition process. When the numerical value assigned to the index variable becomes the numerical value assigned to the number variable, the numerical value array creation repetition process ends.
数配配列作成分岐で、文字数値変数に代入された文字コードが65以上の場合は、以下の処理を行う。
以下に、繰り返し処理を行う。この繰り返し処理を変数配列作成繰り返し処理と呼ぶ。
変数配列作成繰り返し処理では、型名変数に代入された文字列に「[]」の文字を連結して文字列を作成して、作成した文字列に、配列名変数に代入された文字列を連結して文字列を作成して、作成した文字列に、インデックス変数に代入された数値を連結して文字列を作成して、作成した文字列に、「 = new 」と言う文字列を連結して文字列を作成して、作成した文字列に、型名変数を連結して文字列を作成して、作成した文字列に、「[」を連結して文字列を作成して、作成した文字列に、配列サイズ変数に代入された文字または、文字列を連結して文字列を作成して、作成した文字列に、「];」と言う文字列を連結して文字列を作成して、アレイ1配列のインデックスとしてインデックス変数に代入された数値を使用してアレイ1配列に作成した文字列を代入する。
インデックス変数に1を加算して、変数配列作成繰り返し処理の最初に戻って処理を繰り返し行う。インデックス変数に代入された数値が個数変数に代入された数値になったら、変数配列作成繰り返し処理を終了する。
数配配列作成分岐を終わる。
If the character code assigned to the numeric character variable is 65 or more in the sequence arrangement creation branch, the following processing is performed.
The following is repeated. This iterative process is called a variable array creation iterative process.
In the variable array creation iteration process, the character string assigned to the type name variable is concatenated with the character “[]” to create a character string, and the character string assigned to the array name variable is added to the created character string. Create a string by concatenating, create a string by concatenating the numerical value assigned to the index variable to the created string, and concatenate the string "= new" to the created string Create a string by concatenating the type name variable to the created string, create a string, and create a string by concatenating "[" to the created string. Create a character string by concatenating the character assigned to the array size variable or the character string to the created character string, and concatenating the character string "];" to the created character string. Then, the
Add 1 to the index variable and return to the beginning of the variable array creation repetition process to repeat the process. When the numerical value assigned to the index variable becomes the numerical value assigned to the number variable, the variable array creation repetition process ends.
The sequence arrangement creation branch ends.
個数変数に代入された数値を配列サイズとして、200byteのString型の配列を作成する。作成した配列をアレイ2配列と呼ぶ。
以下に、分岐処理を行う。この分岐処理を数配配列初期化分岐処理と呼ぶ。
数配配列初期化分岐では、文字数値変数に代入された文字コードが65未満か65以上かで分岐する。
数配配列初期化分岐では、文字数値変数に代入された文字コードが65未満の場合は、以下の処理を行う。
以下に、繰り返し処理を行う。この繰り返し処理を数値配列初期化繰り返し処理と呼ぶ。
数値配列初期化繰り返し処理では、以下の繰り返し処理を行う。
数値配列初期化繰り返し処理では、配列名変数に代入された文字列に、インデックス変数に代入された数値を連結して文字列を作成して、作成した文字列に、「 = new 」と言う文字列を連結して文字列を作成して、作成した文字列に、型名変数を連結して文字列を作成して、作成した文字列に、「[」を連結して文字列を作成して、作成した文字列に、サイズ変数に代入された数値を連結して文字列を作成して、作成した文字列に、「];」と言う文字列を連結して文字列を作成して、アレイ2配列のインデックスとしてインデックス変数に代入された数値を使用してアレイ2配列に作成した文字列を代入する。
インデックス変数に1を加算して、数値配列初期化繰り返し処理の最初に戻って処理を繰り返し行う。インデックス変数に代入された数値が個数変数に代入された数値になったら、数値配列初期化繰り返し処理を終了する。
Create a 200-byte String type array, using the numerical value assigned to the number variable as the array size. The created array is called an
A branch process is performed below. This branch process is referred to as a sequence arrangement initialization branch process.
In a sequence arrangement initialization branch, a branch is made depending on whether the character code assigned to the numeric character variable is less than 65 or greater than 65.
In the sequence arrangement initialization branch, when the character code assigned to the character numeric variable is less than 65, the following processing is performed.
The following is repeated. This iterative process is referred to as a numerical array initialization iterative process.
In the numerical array initialization repetition process, the following repetition process is performed.
In the numeric array initialization iteration process, a string is created by concatenating the numeric value assigned to the index variable to the string assigned to the array name variable, and the character "= new" is created in the created string. Create a string by concatenating columns, create a string by concatenating type name variables to the created string, and create a string by concatenating "[" to the created string. Create a character string by concatenating the numerical value assigned to the size variable to the created character string, and create a character string by concatenating the character string "];" to the created character string. The character string created in the
Add 1 to the index variable and repeat the process by returning to the beginning of the numerical array initialization repetition process. When the numerical value assigned to the index variable becomes the numerical value assigned to the number variable, the numerical array initialization repetition process is terminated.
数配配列初期化分岐では、文字数値変数に代入された文字コードが65以上の場合は、以下の処理を行う。
以下に、繰り返し処理を行う。この繰り返し処理を変数配列初期化繰り返し処理と呼ぶ。
変数配列初期化繰り返し処理では、以下の繰り返し処理を行う。
変数配列初期化繰り返し処理では、配列名変数に代入された文字列に、インデックス変数に代入された数値を連結して文字列を作成して、作成した文字列に、「 = new 」と言う文字列を連結して文字列を作成して、作成した文字列に、型名変数を連結して文字列を作成して、作成した文字列に、「[」を連結して文字列を作成して、作成した文字列に、配列サイズ変数に代入された文字または、文字列を連結して文字列を作成して、作成した文字列に、「];」と言う文字列を連結して文字列を作成して、アレイ2配列のインデックスとしてインデックス変数に代入された数値を使用してアレイ2配列に作成した文字列を代入する。
インデックス変数に1を加算して、変数配列初期化繰り返し処理の最初に戻って処理を繰り返し行う。インデックス変数に代入された数値が個数変数に代入された数値になったら、変数配列初期化繰り返し処理を終了する。
数配配列初期化分岐処理を終わる。
In the sequence arrangement initialization branch, if the character code assigned to the character numeric variable is 65 or more, the following processing is performed.
The following is repeated. This iterative process is called variable array initialization iterative process.
In the variable array initialization repetition process, the following repetition process is performed.
In the variable array initialization iteration process, a character string is created by concatenating the numerical value assigned to the index variable to the character string assigned to the array name variable, and the character "= new" is created in the created character string. Create a string by concatenating columns, create a string by concatenating type name variables to the created string, and create a string by concatenating "[" to the created string. Create a character string by concatenating the character assigned to the array size variable or the character string to the created character string, and concatenating the character string "];" to the created character string. A column is created, and the created character string is substituted into the
Add 1 to the index variable and return to the beginning of the variable array initialization repeat process to repeat the process. When the numerical value assigned to the index variable becomes the numerical value assigned to the number variable, the variable array initialization repetition process is terminated.
The sequence arrangement initialization branch process ends.
100byteのString型の変数を2個作成する。作成した変数を各々、文章1変数と文章2変数と呼ぶ。
文章1変数に、「配列作成」と言う文字列を代入する。文章2変数に、「配列初期化」と言う文字列を代入する。
ファイルを作成して、テキスト形式で文章1変数に代入された100byteの文字列を全て書き込む。
アレイ1配列の最初から最後の位置までに代入されている全ての文字列を一行分ずつの200byteずつ、テスキト形式でファイルの末尾に書き込む。テキスト形式で文章2変数に代入された100byteの文字列を全て書き込む。アレイ2配列の最初から最後の位置までに代入されている全ての文字列を一行分ずつの200byteずつ、テキスト形式でファイルの末尾に書き込む。
ファイルを保存して、処理を終了する。
サイズ変数の説明を行う。
サイズ変数に0を代入して使用しているが、配列サイズ変数に代入された数値を使用して文字列を作成しても、本発明のコード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーである事を明言する。
サイズ変数の説明を終わる。
〔実施例2〕の詳しい処理工程の説明を終わる。
Create two 100-byte String variables. The created variables are called
A character string “array creation” is assigned to the
Create a file and write all 100-byte character strings assigned to the
All character strings assigned from the beginning to the last position of the
Save the file and finish the process.
Explain the size variable.
Although 0 is assigned to the size variable and used, even if a character string is created using the numerical value assigned to the array size variable, the recording medium storing the
End of the description of the size variable.
The detailed description of the processing steps in [Example 2] is finished.
〔実施例3〕は、本発明のコード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーとして記述したものである。その為、〔実施例3〕フローチャート図は無い。
〔実施例3〕の詳しい処理工程の説明を行う。
[Embodiment 3] is described as a simple repertoire of a recording medium on which the
Detailed processing steps of [Example 3] will be described.
人為的な入力処理によって、ソフトウェアの操作画面に以下の処理を行う。
図符号Dのマウスを使用して図符号Wの型名指定ボタンをクリックして図符号Vの型名選択画面を「String」または、「int」に選択設定して、図23の<実施例3の変数コード自動記述2ソフトウェアで変数を3個作成する処理を記述させた操作画面>で示す様に、図符号Cのキーボードを使用して図符号Xの変数名指定テキストボックスに、連続番号の数値と連結したい任意の変数の名前を文字列で入力して、図符号Dのマウスを使用して図符号Zの作成個数指定ボタンをクリックする事で図符号Yの作成個数指定画面に、個数を指定して、図符号Uの禁止文字指定テキストボックスには、予め「"」が入力されているが、図符号Uの禁止文字指定テキストボックスで、指定されている文字を別の文字に変更する場合は、図符号Cのキーボードを使用して図符号Uの禁止文字指定テキストボックスに文字を入力する事で、別の文字を禁止文字指定する。図符号Cのキーボードを使用して、図符号aの変数作成ボタンを図符号Dのマウスを使用してクリックして処理を開始させる。
The following processing is performed on the software operation screen by artificial input processing.
23. Using the mouse of FIG. D, click the type name designation button of FIG. W to select and set the type name selection screen of FIG. V to “String” or “int”. 3 Variable code
この後は、コンピューターと、本発明の変数コード自動記述2ソフトウェアを記録した記録媒体の簡単なレパートリーの実施例3の変数コード自動記述2ソフトウェアによる自動処理である。
100byteのString型の変数を作成する。作成した変数を型名変数と呼ぶ。型名変数に、図符号Vの型名指定画面に指定された文字列を代入する。100byteのString型の変数を作成する。作成した変数を変数名前変数と呼ぶ。16bitの変数を作成する。作成した変数を個数変数と呼ぶ。個数変数に、図符号Yの作成個数指定画面で指定された数値を代入する。1byteのString型で変数を作成する。作成した変数を禁止変数と呼ぶ。禁止変数に図符号Uの禁止文字指定テキストボックスで、指定されている文字を代入する。配列サイズが個数変数に代入された数値を配列サイズとして、200byteのString型の配列を作成する。作成した変数を作成変数配列と呼ぶ。
After this, automatic processing by the variable code
Create a 100-byte String variable. The created variable is called a type name variable. The character string designated on the type name designation screen indicated by the symbol V is assigned to the type name variable. Create a 100-byte String variable. The created variable is called a variable name variable. Create a 16bit variable. The created variable is called the number variable. The numerical value designated on the creation number designation screen for the figure symbol Y is substituted for the number variable. Create a variable with 1-byte String type. The created variable is called a forbidden variable. The character designated in the prohibited character designation text box of the symbol U is assigned to the prohibited variable. Create a 200-byte String array using the array size as the array size and the numerical value assigned to the number variable. The created variable is called a created variable array.
以下に、分岐処理を行う。この分岐処理を数配作成分岐と呼ぶ。
数配作成分岐処理では、以下の分岐処理を行う。
図符号Vの型名指定画面の指定が、「String」の場合と「int」の場合とで分岐処理を行う。
図符号Vの型名指定画面の指定が、「String」の場合は、繰り返し処理を行う。
この繰り返し処理を文字配列作成繰り返し処理と呼ぶ。
文字配列作成繰り返し処理では、型名変数に代入された文字列に、「 」の文字、すなわち、スペースの文字を連結した文字列を作成して、作成した文字列に変数名前変数に代入された文字列を連結して文字列を作成して、作成した文字列にインデックスの数値を連結した文字列を作成して、作成した文字列に「 = 0;」と言う文字列を連結して文字列を作成して、作成変数配列のインデックスを使用して、作成した文字列を作成変数配列に代入する。
作成変数配列のインデックスに1を加算して、文字配列作成繰り返し処理の最初に戻って処理を繰り返し行う。作成変数配列のインデックスが、個数変数に代入された数値になったら、文字配列作成繰り返し処理を終了する。
A branch process is performed below. This branching process is referred to as a number generation branch.
In the number creation branch process, the following branch process is performed.
Branch processing is performed depending on whether the designation of the model name designation screen of the reference numeral V is “String” or “int”.
When the designation of the model name designation screen of the symbol V is “String”, the process is repeated.
This repetition process is called a character array creation repetition process.
In the repeated character array creation process, a character string concatenated with the character “”, that is, a space character, is created in the character string assigned to the type name variable, and the created character string is assigned to the variable name variable. Create a string by concatenating the strings, create a string by concatenating the numeric value of the index to the created string, and concatenate the string "= 0;" to the created string Create a column and assign the created string to the creation variable array using the index of the creation variable array.
Add 1 to the index of the creation variable array, and return to the beginning of the character array creation repeat process to repeat the process. When the index of the creation variable array becomes the numerical value assigned to the number variable, the character array creation repetition process is terminated.
図符号Vの型名指定画面の指定が、「int」の場合は、繰り返し処理を行う。
この繰り返し処理を数値配列作成繰り返し処理と呼ぶ。
数値配列作成繰り返し処理では、型名変数に代入された文字列に、「 」の文字、すなわち、スペースの文字を連結した文字列を作成して、作成した文字列に変数名前変数に代入された文字列を連結して文字列を作成して、作成した文字列にインデックスの数値を連結した文字列を作成して、作成した文字列に「 = 」と言う文字列を連結して文字列を作成して、作成した文字列に禁止変数に代入された文字を連結して文字列を作成して、作成した文字列に再度、禁止変数に代入された文字を連結して文字列を作成して、作成した文字列に「;」の文字を連結して文字列を作成して、作成変数配列のインデックスを使用して、作成した文字列を作成変数配列に代入する。
When the designation of the model name designation screen of the symbol V is “int”, the iterative process is performed.
This iterative process is referred to as a numerical array creation iterative process.
In the numerical array creation repetition process, a character string concatenated with the character of “”, that is, a space character, is created in the character string assigned to the type name variable, and assigned to the variable name variable in the created character string. Create a string by concatenating the strings, create a string by concatenating the numerical value of the index to the created string, and concatenate the string "=" to the created string. Create a character string by concatenating the character assigned to the prohibited variable to the created character string, and create a character string by concatenating the character assigned to the prohibited variable again to the created character string. Then, a character string is created by concatenating the character “;” to the created character string, and the created character string is assigned to the created variable array using the index of the created variable array.
作成変数配列のインデックスに1を加算して、数値配列作成繰り返し処理の最初に戻って処理を繰り返し行う。数値変数配列のインデックスが、個数変数に代入された数値になったら、数値配列作成繰り返し処理を終了する。
数配作成分岐処理を終了する。
作成変数配列に代入された全ての文字列を一行分ずつの200byteずつ、テキスト形式でファイルに書き込んで保存する。
〔実施例3〕の詳しい処理工程の説明を終わる。
Add 1 to the index of the created variable array, and return to the beginning of the numerical array creation repetition process to repeat the process. When the index of the numerical variable array becomes the numerical value assigned to the number variable, the numerical array creation repetition process is terminated.
Termination number creation branch processing ends.
All character strings assigned to the created variable array are written into a file in text format in 200 bytes, one line at a time, and saved.
The detailed description of the processing steps of [Embodiment 3] ends.
A:モニター
B:コンピューター本体
C:キーボード
D:マウス
E:コード文の選択画面
F:コード文の選択ボタン
G:ブロック指定名テキストボックス
H:ブロック数指定画面
I:ブロック数指定ボタン
J:コード記述テキストボックス
K:実行ボタン
L:ブロック数表示テキストボックス
M:行数指定画面
N:行数指定ボタン
O:列数指定画面
P:列数指定ボタン
Q:回答指定名テキストボックス
R:人為的な手動による操作または入力処理工程
S:コード自動記述2ソフトウェアとコンピューターによる自動処理工程
T:配列型名指定画面
U:配列型名指定ボタン
V:配列名指定テキストボックス
W:配列作成個数指定画面
X:配列作成個数指定ボタン
Y:配列サイズ指定テキストボックス
Z:配列作成ボタン
a:禁止文字指定テキストボックス
b:変数型名選択画面
c:変数型名指定ボタン
d:変数名指定テキストボックス
e:変数作成個数指定画面
f:変数作成個数指定ボタン
g:変数作成ボタン
A: Monitor B: Computer main body C: Keyboard D: Mouse E: Code sentence selection screen F: Code sentence selection button G: Block designation name text box H: Block number designation screen I: Block number designation button J: Code description Text box K: Execution button L: Block number display text box M: Row number designation screen N: Row number designation button O: Column number designation screen P: Column number designation button Q: Answer designation name text box R: Artificial manual Operation or input processing step S:
b: Variable type name selection screen
c: Variable type name specification button
d: Variable name specification text box
e: Variable creation count specification screen
f: Variable creation count specification button
g: Variable creation button
Claims (1)
関数とは、ある処理を行う処理工程の事を言い、ソフトウェアと同じ意味で使用する事とし、
変数や配列を作成すると記述しているが変数や配列が作成される場所は、コンピューター本体の内部にある本体メモリーに作成される事とし、
また、1byteは、8bitである事とし、
また、コンピューターで普通に使われているテキスト文字(日本国では、文字コード二文字以上で一文字を表す文字と文字コード一文字で表す半角英数字の文字の事)を、テキスト文字または、文字と略して呼んだり、テキスト文字とリンクされている数値を文字コードと言う事があるとし、文字コードとは、0〜255までの人間が読む事が出来ない機械語の数値であるとする事とし、
変数の型とは、人間が読む事が出来る文字列を代入する事ができる変数の型としてstring型と言う型と、人間が読む事が出来ない数値を代入する事が出来る型とがあり、変数を作成する場合に、string型の場合のみ「何bitのstring型で変数を作成する」または、「何byteのstring型で変数を作成する」と言う表現でstring型の変数を作成する事とし、string型の変数ではない、人間が読む事が出来ない数値を代入する事が出来る変数を作成する場合は、「何bitの変数を作成する」または、「何byteの変数を作成する」と言う表現で変数を作成する事とし、
人間が読み書き出来ない数値を代入できる配列を作成する場合は、「幾つの配列サイズで何bitまたは、何byteで配列を作成する」と言う表現をする事とし、人間が読み書き出来る文字列を代入できる配列を作成する場合は、「幾つのサイズで何bitまたは、何byteのString型の配列を作成する」という表現をする事とし、
ファイルを開いたり保存したりする形式には、テキスト形式という形式があり、テキスト形式と指定すると、文字列や文字を自動的に文字コードと言う数値から、人間が読む事ができる文字に変換される形式であり、テキスト形式で何byteずつデーターをファイルに記録して保存すると言う表現で説明する事とし、ファイルを開いたり保存したりする形式には、バイナリー形式と言う形式があり、バイナリー形式を指定すると、人間が読む事ができる文字から、自動的に文字コードと言う人間が読む事が出来ない機械語の数値に変換される形式であり、バイナリー形式でファイルを開いて、何byteずつデーターを読み込むと言う表現で説明する事とし、
人間が読む事が出来ない数値を数値と略して表現する場合がある事とし、
1ブロック分のプログラムとは、分岐処理の一つ分の処理の事を言う事とし、
文字列操作関数とは、文字列を操作する為のコンパイラ付属の関数であり、文字列操作関数には、多種多様な処理を行う関数があり、スピリット関数とは、指定した文字列で文字を分割処理すると言う関数の事であるとし、リプレース関数とは、任意の文字列の中の任意の文字列を探し出して、指定した任意の文字列に置換すると言う処理を行う関数であり、任意の文字列の中に、任意の文字列が複数個あっても、指定した任意の文字列に複数個、全て置換すると言う特殊な処理をする関数である事とし、このリプレース関数は、コンパイラ付属の関数の事であるとし、インデックスオフ関数は、検索したい文字列中から、指定した文字列を探し出して、探し出した先頭の位置を検索したい文字列の何番目から文字列が有ると言う具合に、数値として答える関数であるが、検索したい定文字列の中に指定した文字列が無かった場合は、-1を数値として答える関数であるとし、
ブロック指定名とは、1ブロック毎に違う名前の変数や、配列や、数値を使いたい場合に、連続番号を作成して、作成した連続番号を配列や、変数の名前の任意の位置に連結させて使用する為に、作成した連続番号と置換する位置を示す目印として使用する文字列の事であり、作成した連続番号を数値として使用する為に、作成した連続番号と置換する位置を示す目印として使用する文字列の事であるとし、
回答指定名とは、組合せ分岐の1ブロック分の複数の変数や配列に代入された数値の組合せによる分岐処理で使用されている複数の変数や配列に代入されている数値を示す為の数値に、組合せの数値を作成して作成した組合せの数値を使用する為に、作成した組合せの数値に置換する位置を明示する為の目印として任意に指定した文字列の事であるとし、
複数個の変数や配列の組合せを回答指定名を使用して分岐処理の分岐条件として記述し、ブロック指定名を指定したい場合は、ブロック指定名を使用したい部分にブロック指定名を記述したプログラムを、例として1ブロック分だけ記述したプログラムを記述したテキスト形式のファイルをコントロール1ファイルと呼ぶ事とし、
コントロール1ファイルに記述された文字列を1行分ずつ全て代入できる配列サイズでString型の200byteの配列を作成し、作成した配列をコントロールライン配列と呼ぶ事とし、コントロール1ファイルをテキスト形式で開いて、1行分ずつの200byteずつ、全てのデーターをコントロールライン配列の末尾に代入する事とし、16bitの変数を作成し、作成した変数を回数変数と呼ぶ事とし、回数変数に、任意の分岐の数に相当するブロック数の数値を代入する事とし、String型の100byteの変数を作成する事とし、作成した変数をブロック指定名変数と呼ぶ事とし、ブロック指定名変数に任意の文字列を代入する事とし、100byteのString型の変数を作成する事とし、作成した変数を設定変数と呼ぶ事とし、16bitの変数を作成する事とし、作成した変数を行数指定変数と呼ぶ事とし、行数に相当する任意の数値を行数指定変数に代入する事とし、16bitの変数を作成する事とし、作成した変数を列数指定変数と呼ぶ事とし、変数や配列の数に相当する列数の任意の数値を列数指定変数に代入する事とし、100byteのString型の変数を作成する事とし、作成した変数を回答指定名変数と呼ぶ事とし、任意の文字列を回答指定名変数に代入する事とし、String型の100byteの変数を作成する事とし、作成した変数をブロック指定名変数と呼ぶ事とし、ブロック指定名変数に回答指定名変数に代入されていない任意の文字列を代入する事とし、16bitの変数を作成する事とし、作成した変数を組合せ数1変数と呼ぶ事とし、組合せ数1変数に0を代入する事とし、16bitの変数を作成する事とし、作成した変数を組合せ数2変数と呼ぶ事とし、組合せ数2変数に0を代入する事とし、200byteのString型の組合せ変数に代入されている数値を配列サイズとして、String型の200byteの配列を作成する事とし、作成した配列を組合せ配列と呼ぶ事とし、16bitの変数を作成する事とし、作成した変数をインデックス1変数と呼ぶ事とし、インデックス1変数に0を代入する事とし、16bitの変数を2個作成する事とし、作成した変数をそれぞれ、A数値変数、B数値変数と呼ぶ事とし、
以下に分岐処理を行う事とし、この分岐処理を列数分岐処理と呼ぶ事とし、列数分岐処理では、以下の処理を行う事とし、
列数分岐処理で、列数変数に代入された数値が2の場合は、以下の処理を行う事とし、行数指定変数に代入されている数値を二乗した数値を算出させて、組合せ変数に代入する事とし、String型の200byteの組合せ変数に代入された数値を配列サイズとして、String型の200byteの配列を作成する事とし、作成した配列を新組合せ1配列と呼ぶ事とし、String型の200byteの組合せ変数に代入された数値を配列サイズとして、String型の200byteの配列を作成して、作成した配列を新組合せコピー配列と呼ぶ事とし、
以下に繰り返し処理を行う事とし、以下の繰り返し処理を2列組合せ配列作成繰り返し処理と呼ぶ事とし、2列組合せ配列作成繰り返し処理では、以下の処理を行う事とし、A数値変数に代入された数値が、行数指定変数に代入された数値になるまで、A数値変数に、1を加算して処理を繰り返し行う事とし、
以下に繰り返し処理を行う事とし、以下の繰り返し処理を行数繰り返し処理と呼ぶ事とし、行数繰り返し処理では、行数指定変数に代入された数値を行数繰り返し処理の繰り返し回数として処理を繰り返し行う事とし、任意の文字の一文字を記号として決めて、決めた記号を区切り記号と呼ぶ事とし、A数値変数に代入された数値に区切り記号を連結して文字列を作成して、作成した文字列に、B数値変数に代入された数値を連結して文字列を作成して、作成した文字列を新組合せコピー配列のインデックスとして、インデックス1変数に代入された数値を使用して、新組合せコピー配列に代入する事とし、B数値変数に、1を加算し、インデックス1変数に、1を加算し、行数繰り返し処理の最初に戻って処理を繰り返し行う事とし、行数指定変数に代入されている数値まで行数繰り返し処理を行ったら、行数繰り返し処理を終了する事とし、
A数値変数に、1を加算し、B数値変数に、0を代入する事とし、2列組合せ配列作成繰り返し処理の最初に戻って、2列組合せ配列作成繰り返し処理を繰り返し行う事とし、A数値変数に代入された数値が、行数指定変数に代入された数値になったら、2列組合せ配列作成繰り返し処理を終了する事とし、
新組合せコピー配列に代入されている全てのデーターを新組合せ1配列の最初の位置から最後の位置までに上書きで代入する事とし、組合せ配列の配列サイズを新組合せ1配列の配列サイズで、200byteの配列に変更して、新組合せ1配列に代入されている200byteずつの全ての文字列を、組合せ配列の最初から最後までの位置に上書きで代入する事とし、
列数分岐処理で、列数変数に代入された数値が3以上の場合は、以下の処理を行う事とし、行数指定変数に代入されている数値を二乗して算出した数値を、組合せ変数に代入する事とし、組合せ変数に代入された数値に行数指定変数に代入された数値を乗算した数値を組合せ数2変数に代入する事とし、String型の200byteの組合せ2変数に代入された数値を配列サイズとして、String型の200byteの配列を作成する事とし、作成した配列を新組合せ2配列と呼ぶ事とし、
2列組合せ配列作成繰り返し処理を行う事とし、2列組合せ配列作成繰り返し処理が終わったら、新組合せコピー配列に代入されている全てのデーターを新組合せ2配列の最初の位置から最後の位置までに上書きで代入する事とし、
組合せ配列の配列サイズを新組合せ2配列の配列サイズで200byteの配列に変更して、新組合せ2配列に代入されている200byteずつの全ての文字列を、組合せ配列の最初から最後までの位置に上書きで代入する事とし、
組合せ数2変数に、組合せ配列の配列サイズを取得して代入する事とし、組合せ数2変数に代入された数値を、行数指定変数に代入された数値で乗算した数値を算出して、算出した数値を組合せ数2変数に上書きで代入する事とし、
組合せ数2変数に代入された数値を配列サイズとしてString型の200byteの配列を作成する事とし、作成した配列を組合せコピー2配列と呼ぶ事とし、A数値変数に、0を代入し、B数値変数に、0を代入する事とし、インデックス1変数に0を代入する事とし、
以下に、繰り返し処理を行う事とし、この繰り返し処理を3列以上組合せ作成繰り返し処理と呼ぶ事とし、3列以上組合せ作成繰り返し処理を、列数指定変数に代入されている数値から2を減算した回数処理を繰り返し終わったら、3列以上組合せ作成繰り返し処理を終了する事とし、3列以上組合せ作成繰り返し処理では、
以下に繰り返し処理を行う事とし、この繰り返し処理を3列以上組合せ作成2繰り返し処理と呼ぶ事とし、3列以上組合せ作成2繰り返し処理では、組合せ数2変数に代入された数値とA数値変数に代入された数値が同じ数値になるまで、A数値変数に代入された数値に、1を加算して処理を繰り返す事とし、
以下に繰り返し処理を行う事とし、この繰り返し処理を3列以上組合せ作成3繰り返し処理と呼ぶ事とし、3列以上組合せ作成3繰り返し処理では、行数指定変数に代入された数値と、インデックス1変数に代入された数値が同じ数値になるまで、インデックス1変数に代入された数値に、1を加算して処理を繰り返す事とし、組合せ配列のインデックスとしてA数値変数に代入された数値を使用して組合せ配列に代入されている文字列を取得して、取得した文字列に、区切り記号と、B数値変数に代入された数値を連結して、連結して作成した文字列を組合せコピー2配列のインデックスとしてインデックス1変数に代入された数値を使用して、組合せコピー2配列に代入する事とし、インデックス1変数に1を加算し、B数値変数に1を加算し、3列以上組合せ作成3繰り返し処理の最初に戻って、処理を繰り返す事とし、行数指定変数に代入された数値と、インデックス1変数に代入された数値が同じ数値になったら、3列以上組合せ作成3繰り返し処理を終了する事とし、
A数値変数に1を加算し、B数値変数に、0を代入する事とし、組合せ数2変数に代入された数値とA数値変数に代入された数値が同じ数値になったら、3列以上組合せ作成2繰り返し処理を終了する事とし、
組合せ配列を組合せコピー2配列の配列サイズで200byteの配列に変更する事とし、組合せコピー2配列に代入された最初の位置から最後の位置までに代入された文字列を組合せ配列の最初の位置から最後の位置までに全て上書きで代入する事とし、
組合せ配列の配列サイズを取得して、組合せ数2変数に代入する事とし、組合せ数2変数に代入された数値を、行数指定変数に代入された数値で乗算した数値を算出して、算出した数値を組合せ数2変数に上書きで代入する事とし、
3列以上組合せ作成繰り返し処理の最初に戻って繰り返し処理を繰り返す事とし、3列以上組合せ作成繰り返し処理を、列数指定変数に代入されている数値から2を減算した回数処理を繰り返し終わったら、3列以上組合せ作成繰り返し処理を終了する事とし、
列数分岐処理を終了する事とし、
組合せ数2変数に、組合せ配列の配列サイズを取得して代入する事とし、配列サイズが、コントロールライン配列の配列サイズと同じ配列サイズのString型の200byteの配列を作成する事とし、作成した配列を仮プログラム配列と呼ぶ事とし、コントロールライン配列の配列サイズの数値を、組合せ数2変数に代入された数値で乗算した数値を、配列サイズとしてString型の200byteの配列を作成する事とし、作成した配列をプログラム配列と呼ぶ事とし、String型の200byteの変数を2個作成する事とし、作成した2個の変数をそれぞれ、仮データ1変数、仮データ2変数と呼ぶ事とし、インデックス1変数に0を代入し、16bitの変数を作成する事とし、作成した変数をカウント2変数と呼ぶ事とし、カウント2変数に0を代入する事とし、16bitの変数を作成する事とし、作成した変数をインデックス2変数と呼ぶ事とし、インデックス2変数に0を代入する事とし、
以下に繰り返し処理を行う事とし、この繰り返し処理を組合せ分岐文作成繰り返し処理と呼ぶ事とし、組合せ分岐文作成繰り返し処理では、カウント2変数に代入されている数値が、組合せ数2変数に代入されている数値になるまで、以下の処理を繰り返し行う事とし、
以下に繰り返し処理を行う事とし、以下の繰り返し処理をプログラム配列作成繰り返し処理と呼ぶ事とし、コントロールライン配列のインデックスが、最初は、0であるとして、コントロールライン配列のインデックスを使用して、コントロールライン配列の200byteの文字列を、仮データ1変数に代入する事とし、
以下に分岐処理を行う事とし、この分岐処理を回答分岐処理と呼ぶ事とし、回答分岐処理で、文字列操作関数のコンテインズ関数を使用して仮データ1変数に代入された200byteの文字列の中に、回答指定名変数に代入された回答指定名に指定された文字列が有るかどうかを検査して、有った場合は、以下の処理を行う事とし、
16bitの変数を2個作成する事とし、作成した2個の変数をそれぞれ、インデックス3変数、インデックス4変数と呼ぶ事とし、インデックス3変数に、0を代入し、インデックス4変数に、0を代入する事とし、8bitの変数を作成する事とし、作成した変数をアンサー変数と呼ぶ事とし、アンサー変数に、0を代入する事とし、組合せ配列に代入されたデーターを区切り記号で分割したデーターを全て代入できる配列サイズでString型の4byteの配列を作成する事とし、作成した配列を区切り分割配列と呼ぶ事とし、16bitの変数を作成する事とし、作成した変数を回答文字数変数と呼ぶ事とし、文字列操作関数のスピリット関数と言う任意の文字で文字列を分割する処理を行う関数を使用して、組合せ配列のインデックスとして、インデックス2変数に代入された数値を使用して、組合せ配列に代入された文字列を取得して、取得した文字列を区切り記号で分割して、分割した文字列を区切り分割配列に代入する事とし、回答指定名変数に代入された回答指定名に指定された文字列の文字数を取得して、回答文字数変数に代入する事とし、
以下に繰り返し処理を行う事とし、以下の繰り返し処理を回答置換繰り返し処理と呼ぶ事とし、回答置換繰り返し処理では、アンサー変数に代入された数値が、0以外の数値になるまで処理を繰り返し行う事とし、文字列操作関数のインデックスオフ関数を使用して、仮データ1変数に代入されている文字列の中に有る回答指定名変数に代入された回答指定名に指定された文字列の先頭位置を取得して、インデックス3変数に代入する事とし、
以下に分岐処理を行う事とし、この分岐処理を最終回答分岐処理と呼ぶ事とし、最終回答分岐処理で、インデックス3変数に代入された数値が0より大きい数値の場合は、以下の処理を行う事とし、
文字列操作関数のリムーブ関数を使用して、インデックス3変数に代入された数値を仮データ1変数に代入されている文字列の先頭位置として使用して、回答文字数変数に代入された数値を文字数として使用して、文字数分の文字列を、仮データ1変数に代入された文字列から削除した文字列を作成して、作成した文字列を仮データ1変数に代入する事とし、文字列操作関数のインサート関数を使用して、区切り分割配列のインデックスとして、インデックス4変数に代入された数値を使用して、区切り分割配列に代入された文字列を取得して、インデックス3変数に代入された数値を、仮データ1変数に代入された文字列の位置として使用して、仮データ1変数に代入された文字列の位置に、区切り分割配列から取得した文字列を挿入した文字列を作成して、仮データ1変数に代入する事とし、インデックス4変数に、1を加算する事とし、最終回答分岐処理で、インデックス3変数に代入された数値が-1の場合は、以下の処理を行う事とし、
アンサー変数に1を代入する事とし、最終回答分岐処理を終了する事とし、
回答置換繰り返し処理の最初に戻って、アンサー変数に代入された数値が、0以外の数値になるまで回答置換繰り返し処理を繰り返して、アンサー変数に代入された数値が1になったら、回答置換繰り返し処理を終わる事とし、
回答分岐処理で、文字列操作関数のコンテインズ関数を使用して仮データ1変数に代入された200byteの文字列の中に、回答指定名変数に代入された回答指定名に指定された文字列が有るかどうかを検査して、仮データ1変数に代入された200byteの文字列の中に回答指定名変数に代入された回答指定名に指定された文字列が無かった場合は、何も処理を行なわない事とし、
以下に分岐処理を行う事とし、この分岐処理をブロック分岐処理と呼ぶ事とし、ブロック分岐処理では、文字列操作関数のコンテインズ関数を使用して仮データ1変数に代入された文字列の中に、ブロック指定名変数に代入されたブロック指定名の文字列が有るかどうかを検査して、仮データ1変数に代入された文字列の中に、ブロック指定名変数に代入されたブロック指定名の文字列が有る場合と無い場合に分岐処理する事とし、仮データ1変数に代入された文字列の中に、ブロック指定名変数に代入されたブロック指定名の文字列が有る場合は、以下の処理を行う事とし、
カウント2変数に代入されている数値を仮データ2変数に代入する事とし、文字列操作関数のリプレース関数と言う関数を使用して、仮データ1変数に代入された文字列の中に有ったブロック指定名変数に代入されたブロック指定名の文字列をカウント2変数に代入された数値に置換した文字列を作成して、仮データ1変数に代入する事とし、
ブロック分岐処理で、仮データ1変数に代入された文字列の中に、ブロック指定名変数に代入されたブロック指定名の文字列が無い場合は、何も行わない事とし、
ブロック分岐処理を終了する事とし、
仮ブロック配列のインデックスに、コントロールライン配列のインデックスを使用して、仮データ1変数に代入されている文字列を仮ブロック配列に代入する事とし、プログラム配列作成繰り返し処理の最初に戻って、処理を繰り返す事とし、コントロールライン配列の最初の位置から最後の位置までに代入された文字列を全て処理し終わったら、プログラム配列作成繰り返し処理を終了する事とし、
以下に繰り返し処理を行う事とし、この繰り返し処理を組合せ記述繰り返し処理と呼ぶ事とし、組合せ記述繰り返し処理で、仮プログラム配列のインデックスは、最初は、0であるとして、仮プログラム配列の文字列を取得して、プログラム配列のインデックスに、インデックス1変数に代入された数値を使用して、取得した文字列をプログラム配列に代入する事とし、インデックス1変数に、1を加算する事とし、仮プログラム配列のインデックスに、1を加算して、組合せ記述繰り返し処理の最初に戻って、処理を繰り返し行う事とし、仮プログラム配列の最後の位置に代入された文字列まで、全ての処理が終わったら、組合せ記述繰り返し処理を終了する事とし、
カウント2変数に、1を加算する事とし、カウント2変数に代入された数値が、組合せ2変数の数値になるまで、組合せ分岐文作成繰り返し処理を繰り返し行う事とし、カウント2変数に代入された数値が、組合せ2変数の数値になったら、組合せ分岐文作成繰り返し処理を終わる事とし、
コントロールライン配列の配列サイズをプログラム配列の配列サイズに変更する事とし、プログラム配列の最初から最後までの位置に代入されている文字列を一行分ずつの200byteずつ取得して、コントロールライン配列の最初の位置から最後の位置までにコピーする事とし、
コントロールライン配列の最初の位置から最後の位置に代入されている文字列を一行分ずつの200byteずつテキスト形式でファイルに保存すると言う処理を行う事で、複数個の変数や複数個の配列に代入された数値の組合せ数分の分岐処理をプログラム言語を使用したプログラムを記述させるソフトウェアを記録した記録媒体。
“Calculation” and “Process” are used interchangeably.
A function is a process that performs a certain process and is used in the same meaning as software.
Although it is described that a variable or array is created, the location where the variable or array is created is created in the main memory inside the computer.
Also, 1 byte is 8 bits,
In addition, text characters that are commonly used on computers (in Japan, two or more characters that represent one character and one-byte alphanumeric characters that represent one character code) are abbreviated as text characters or characters. The character code is a numerical value linked to a text character and called a character code, and the character code is a numerical value in machine language 0 to 255 that humans cannot read,
There are two types of variables: a string type as a variable type that can be assigned a human-readable string, and a type that can be assigned a numeric value that cannot be read by humans. When creating a variable, create a string type variable with the expression “how many bits to create a variable with string type” or “how many bytes to create a variable with string type” only for the string type. When creating a variable that is not a string type variable and can be assigned a numerical value that cannot be read by human beings, “how many bits of variable are created” or “how many bytes of variable are created” Create a variable with the expression
When creating an array that can be assigned a numerical value that cannot be read and written by humans, the expression "creates an array with how many bits or bytes with several array sizes" and assign a character string that humans can read and write. When creating an array that can be used, the expression "Create a string type array of how many bits or bytes in what size"
There is a format called text format for opening and saving files. When text format is specified, character strings and characters are automatically converted from numerical values called character codes to human-readable characters. The format is to describe how many bytes of data are recorded and saved in a file in text format, and there are formats called binary format for opening and saving files, binary format If you specify, characters that can be read by humans are automatically converted to machine code numbers that humans cannot read, called character codes. Open a file in binary format, and how many bytes I will explain in terms of reading the data,
Numerals that humans cannot read are sometimes abbreviated as numerical values,
A program for one block means one branch process.
A string manipulation function is a function attached to the compiler for manipulating a character string, and a string manipulation function includes a function that performs a wide variety of processing. A spirit function is a function that operates on a specified character string. The replace function is a function that searches for an arbitrary character string in an arbitrary character string and replaces it with the specified arbitrary character string. Even if there are multiple arbitrary character strings in the character string, it is assumed that this is a function that performs a special process of replacing all of the specified character strings with the specified arbitrary character string. The index-off function searches for the specified character string from the character string to be searched, and finds that the character string starts from the number of the character string to be searched for the first position searched. number Is a answering function as, and if the specified string in a constant character string to be searched was not a function to answer -1 as a number,
With block designation name, if you want to use variable, array, or numerical value with different name for each block, create serial number and connect the created serial number to any position of array or variable name In order to use it, it is a character string used as a mark indicating the position to replace the created serial number, and in order to use the created serial number as a numerical value, it indicates the position to replace the created serial number Suppose that it is a character string used as a landmark,
The answer designation name is a numerical value to indicate the numerical value assigned to the multiple variables and arrays used in the branch processing by the combination of the numerical values assigned to the multiple variables and arrays for one block of the combination branch. In order to use the numerical value of the combination created by creating the numerical value of the combination, it is assumed that it is a character string arbitrarily specified as a mark for clearly indicating the position to be replaced with the numerical value of the created combination,
If you want to specify a block specification name by specifying a combination of multiple variables or arrays as a branch condition for a branch process using an answer specification name, specify a block specification name in the part where you want to use the block specification name. As an example, a text file that describes a program that contains only one block is called a control 1 file.
Create a 200 byte array of String type with an array size that can substitute all the character strings described in the Control 1 file one line at a time. The created array is called a control line array, and the Control 1 file is opened in text format. Then, 200 bytes for each line, all data is assigned to the end of the control line array, a 16-bit variable is created, and the created variable is called a count variable. Substituting a numerical value for the number of blocks corresponding to the number of, creating a 100-byte variable of String type, calling the created variable a block designation name variable, and assigning an arbitrary character string to the block designation name variable It is assumed that a 100-byte String variable is created, the created variable is called a setting variable, a 16-bit variable is created, and the created variable is designated by the number of rows. It is called a variable, an arbitrary numerical value corresponding to the number of rows is assigned to a row number specification variable, a 16-bit variable is created, and the created variable is called a column number specification variable. Assign an arbitrary number of columns corresponding to the number of columns to the column number specification variable, create a 100-byte String type variable, call the created variable the answer specification name variable, and any character The column is assigned to the answer specified name variable, the String type 100 byte variable is created, the created variable is called the block specified name variable, and the block specified name variable is assigned to the answer specified name variable. An arbitrary character string is assigned, a 16-bit variable is created, a created variable is called a combination number 1 variable, a 0 is assigned to a combination number 1 variable, and a 16-bit variable is created. The created variable is called a variable with 2 combinations. It is assumed that 0 is assigned to the combination number 2 variable, and the array size is set to the numerical value assigned to the 200 byte String type combination variable, and the created array is This is called a combination array, a 16-bit variable is created, the created variable is called an index 1 variable, 0 is assigned to the index 1 variable, and two 16-bit variables are created. The created variables are called A numeric variable and B numeric variable respectively.
In the following, branch processing is performed, this branch processing is referred to as column number branch processing, and in the column number branch processing, the following processing is performed:
If the number assigned to the column number variable is 2 in the column number branching process, the following processing is performed, and the value obtained by squaring the number assigned to the row number designation variable is calculated, and the combination variable is set. It is assumed that the value assigned to the 200-byte combination variable of the String type is the array size, a 200-byte array of the String type is created, the created array is called a new combination 1 array, and the String type Create a 200-byte array of String type using the numerical value assigned to the 200-byte combination variable as the array size, and call the created array a new combination copy array.
The following iterative process is performed, the following iterative process is referred to as a two-column combination array creation repetition process, and in the two-column combination array creation repetition process, the following process is performed and assigned to the A numeric variable. Until the numerical value becomes the numerical value assigned to the row number specification variable, add 1 to the A numerical variable and repeat the process.
The following iterative process is performed, and the following iterative process is referred to as a line number repetition process. In the line number repetition process, the process is repeated using the numerical value assigned to the line number specification variable as the number of repetitions of the line number repetition process. A character string is created by concatenating the delimiter with the numerical value assigned to the A numeric variable. Create a character string by concatenating the numeric value assigned to the B numeric variable to the character string, and use the numeric value assigned to the index 1 variable as the index of the new combination copy array. It is assumed that the value is assigned to the combined copy array, 1 is added to the B numeric variable, 1 is added to the index 1 variable, and the process is repeated after returning to the beginning of the line number repetition process. Once you have made the number of rows repetition processing to a value that is assigned to, and that to end the row number of repeating processing,
Add 1 to the A numeric variable and assign 0 to the B numeric variable. Return to the beginning of the 2-column combination array creation repetition process and repeat the 2-column combination array creation repetition process. When the numerical value assigned to the variable becomes the numerical value assigned to the row number specification variable, the two-column combination array creation repetition process is terminated.
All data assigned to the new combination copy array is assigned by overwriting from the first position to the last position of the new combination 1 array, and the array size of the combination array is 200 bytes in the array size of the new combination 1 array. Change to this array, and replace all the 200-byte character strings assigned to the new combination 1 array by overwriting the positions from the beginning to the end of the combination array.
If the number assigned to the column number variable is 3 or more in the column number branch processing, the following processing is performed, and the value calculated by squaring the number assigned to the row number designation variable is the combination variable. It is assumed that the numerical value assigned to the combination variable is multiplied by the numerical value assigned to the row number specification variable and assigned to the combination number 2 variable, and assigned to the String type 200-byte combination 2 variable. Create a 200-byte array of String type with the numerical value as the array size, and call the created array a new combination 2 array.
The two-column combination array creation repetition process is performed, and after the two-column combination array creation repetition process is completed, all data assigned to the new combination copy array is transferred from the first position to the last position of the new combination two array. Substituting with overwriting,
Change the array size of the combination array to a 200 byte array with the array size of the new combination 2 array, and place all the 200-byte character strings assigned to the new combination 2 array at the positions from the beginning to the end of the combination array. Substituting with overwriting,
The array size of the combination array is obtained and assigned to the combination number 2 variable, and the numerical value assigned to the combination number 2 variable is multiplied by the value assigned to the row number specification variable to calculate the value. And assign the value to the combination number 2 variable by overwriting.
Create a 200-byte array of String type with the numerical value assigned to the combination number 2 variable as the array size, call the created array a combination copy 2 array, assign 0 to the A numerical variable, and set the B numerical value. Suppose that 0 is assigned to the variable, 0 is assigned to the index 1 variable,
In the following, iterative processing is performed, and this iterative processing is referred to as “combine creation repetition processing for three or more columns”, and “competition creation repeated processing for three or more columns” is subtracted from the numerical value assigned to the column number designation variable. When the number of times processing is completed, the combination creation repetition process for 3 columns or more is terminated.
In the following, iterative processing is performed, and this iterative processing is referred to as 3 or more column combination creation 2 iteration processing. In 3 or more column combination creation 2 iteration processing, the numerical value assigned to the combination number 2 variable and the A numeric variable are Until the assigned numerical value is the same, add 1 to the numerical value assigned to the A numerical variable and repeat the process.
In the following, iterative processing is performed, and this iterative processing is referred to as “3 or more column combination creation 3 iterative processing”. 1 is added to the numerical value assigned to the index 1 variable and the process is repeated until the numerical value assigned to the same numerical value is used, and the numerical value assigned to the A numerical variable is used as the index of the combination array. Get the character string assigned to the combination array, concatenate the obtained character string with the delimiter and the numerical value assigned to the B numeric variable, and concatenate the created character string into the combination copy 2 array Using the numerical value assigned to the index 1 variable as an index, assign it to the combination copy 2 array, add 1 to the index 1 variable, and add 1 to the B numeric variable 3 or more combination creation 3 Return to the beginning of the repetition process and repeat the process. If the numerical value assigned to the row number specification variable and the numerical value assigned to the index 1 variable are the same numerical value, combine 3 or more columns. Create 3 Iterating process will be terminated,
1 is added to A numeric variable, and 0 is assigned to B numeric variable. If the numeric value assigned to 2 combination variables and the numeric value assigned to A numeric variable are the same, combine 3 or more columns. Create 2 Iterating process will end,
The combination array is changed to an array of 200 bytes in the array size of the combination copy 2 array, and the character string assigned from the first position assigned to the combination copy 2 array to the last position is changed from the first position of the combination array. Suppose you want to assign all by overwriting until the last position,
Obtain the array size of the combination array, assign it to the combination number 2 variable, calculate the numerical value by multiplying the numerical value assigned to the combination number 2 variable by the numerical value assigned to the row number specification variable, and calculate And assign the value to the combination number 2 variable by overwriting.
Return to the beginning of the 3 or more-column combination creation repetition process and repeat the repetition process. After repeating the 3 or more-column combination creation repetition process by subtracting 2 from the numerical value assigned to the column number specification variable, The combination creation repetition process for 3 or more columns will be terminated.
End the column number branching process,
The array size of the combination array is acquired and assigned to the variable number of 2 variables, and the array size is the same as the array size of the control line array. Is called a temporary program array, and a 200-byte array of String type is created as the array size by multiplying the numerical value of the array size of the control line array by the numerical value assigned to the combination number 2 variable. This array is called a program array, two 200-byte variables of String type are created, and the two created variables are called temporary data 1 variable and temporary data 2 variable, respectively. 0 is assigned to, and a 16-bit variable is created. The created variable is called a count 2 variable, and 0 is assigned to the count 2 variable. A 16-bit variable is created. And things, and that is called a variable that was created with the index 2 variable, and that assigns 0 to index 2 variable,
In the following, iterative processing is performed, and this iterative processing is called combination branch statement creation iteration processing. In the combination branch statement creation iteration processing, the numerical value assigned to the count 2 variable is assigned to the combination number 2 variable. The following processing is repeated until the numerical value reaches
The following iterative process is performed, and the following iterative process is called a program array creation iterative process. The control line array index is initially set to 0, and the control line array index is used for control. Substituting a 200-byte character string in the line array into the temporary data 1 variable,
In the following, branch processing is performed and this branch processing is referred to as answer branch processing. In the answer branch processing, a 200-byte character string assigned to the temporary data 1 variable is used using the containment function of the character string manipulation function. It is checked whether there is a character string specified in the answer designation name assigned to the answer designation name variable, and if there is, the following processing is performed,
Two 16-bit variables are created, and the two created variables are called index 3 variable and index 4 variable, respectively. 0 is assigned to index 3 variable, and 0 is assigned to index 4 variable. It is assumed that an 8-bit variable is created, the created variable is called an answer variable, 0 is assigned to the answer variable, and the data assigned to the combination array is divided by a delimiter. A 4-byte array of String type with an array size that can be substituted for all is created, the created array is called a delimited array, a 16-bit variable is created, and the created variable is called a response character number variable. Using a function that splits a character string with an arbitrary character, called a spirit function of a character string manipulation function, an index 2 variable is substituted for an index of a combination array. Using the entered numeric value, obtain the character string assigned to the combination array, divide the obtained character string with a delimiter, and assign the divided character string to the delimiter divided array. Acquire the number of characters of the character string specified in the answer specified name assigned to the name variable, and assign it to the answer character number variable.
The following iterative process is performed, and the following iterative process is referred to as an answer replacement repetition process. In the answer replacement repetition process, the process is repeated until the numerical value assigned to the answer variable becomes a value other than 0. And using the index-off function of the character string manipulation function, the start position of the character string specified in the response specification name assigned to the response specification name variable in the character string assigned to the temporary data 1 variable And assign it to the index 3 variable,
In the following, branch processing is performed, and this branch processing is referred to as final response branch processing. When the numerical value assigned to the index 3 variable is greater than 0 in the final response branch processing, the following processing is performed. And
Using the remove function of the character string manipulation function, the numerical value assigned to the index 3 variable is used as the first position of the character string assigned to the temporary data 1 variable, and the numerical value assigned to the answer character number variable is the number of characters. Is used to create a character string that has been deleted from the character string assigned to the temporary data 1 variable, and the created character string is assigned to the temporary data 1 variable. Using the insert function of the function, using the numeric value assigned to the index 4 variable as the index of the delimited array, the character string assigned to the delimited array is obtained and assigned to the index 3 variable Using the numeric value as the position of the character string assigned to the temporary data 1 variable, the character string obtained from the delimited divided array was inserted at the position of the character string assigned to the temporary data 1 variable. Create a character string and assign it to the temporary data 1 variable, add 1 to the index 4 variable, and if the numerical value assigned to the index 3 variable is -1 in the final answer branch process, The following processing will be performed,
Suppose that 1 is assigned to the answer variable, and the final answer branch process is terminated.
Return to the beginning of the answer replacement iteration process, repeat the answer substitution iteration process until the number assigned to the answer variable becomes a number other than 0, and when the number assigned to the answer variable reaches 1, the answer substitution iteration is repeated. I decided to finish the process,
In the answer branch process, the character string specified for the answer designation name assigned to the answer designation name variable is included in the 200-byte string assigned to the temporary data 1 variable using the container function of the string manipulation function. If there is no character string specified in the answer designation name assigned to the answer designation name variable in the 200-byte character string assigned to the temporary data 1 variable, no processing is performed. Do not do it,
In the following, branch processing is performed, and this branch processing is referred to as block branch processing. In the block branch processing, using the contains function of the character string manipulation function, the character string assigned to the temporary data 1 variable is used. Check whether there is a character string of the block designation name assigned to the block designation name variable, and in the character string assigned to the temporary data 1 variable, the block designation name assigned to the block designation name variable Branch processing is performed when there is a character string and when there is a character string with the block designation name assigned to the block designation name variable in the character string assigned to the temporary data 1 variable. To do the processing,
The numerical value assigned to the count 2 variable is assigned to the temporary data 2 variable, and it is in the character string assigned to the temporary data 1 variable using a function called the replace function of the character string manipulation function. Create a character string that replaces the character string of the block designation name assigned to the block designation name variable with the numeric value assigned to the count 2 variable, and assigns it to the temporary data 1 variable.
In block branch processing, if the character string assigned to the temporary data 1 variable does not contain the character string of the block designation name assigned to the block designation name variable, nothing is done.
The block branch process will be terminated.
Using the index of the control line array as the index of the temporary block array, the character string assigned to the temporary data 1 variable is assigned to the temporary block array. When all the character strings assigned from the first position to the last position of the control line array are processed, the program array creation repetition process is terminated.
In the following, iterative processing is performed, and this iterative processing is referred to as combination description repetitive processing. In the combined description repetitive processing, the index of the temporary program array is initially 0, and the character string of the temporary program array is Obtain and use the numerical value assigned to the index 1 variable as the index of the program array, substitute the obtained character string into the program array, add 1 to the index 1 variable, and provisional program Add 1 to the index of the array, return to the beginning of the combination description repetition process, repeat the process, and when all the processes are completed up to the character string assigned to the last position of the temporary program array, The combination description repetition process will be terminated.
It is assumed that 1 is added to the count 2 variable, and the combination branch statement creation repetition process is repeated until the numerical value assigned to the count 2 variable becomes the numerical value of the combination 2 variable, and is assigned to the count 2 variable. When the numerical value becomes the numerical value of the combination 2 variable, the combination branch statement creation repetition process is finished.
The array size of the control line array is changed to the array size of the program array, and the character string assigned to the position from the beginning to the end of the program array is obtained by 200 bytes for each line. Copy from the position to the last position,
Assign to multiple variables or multiple arrays by performing a process of saving the character string assigned from the first position to the last position of the control line array in a text file of 200 bytes for each line. The recording medium which recorded the software which describes the program which uses the program language for the branch processing for the number of combinations of the numerical value which was made.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018042546A JP6347023B1 (en) | 2018-03-09 | 2018-03-09 | Recording medium with code automatic description 2 software recorded |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018042546A JP6347023B1 (en) | 2018-03-09 | 2018-03-09 | Recording medium with code automatic description 2 software recorded |
Publications (2)
Publication Number | Publication Date |
---|---|
JP6347023B1 true JP6347023B1 (en) | 2018-06-20 |
JP2019159514A JP2019159514A (en) | 2019-09-19 |
Family
ID=62635736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018042546A Expired - Fee Related JP6347023B1 (en) | 2018-03-09 | 2018-03-09 | Recording medium with code automatic description 2 software recorded |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6347023B1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005025263A (en) * | 2003-06-30 | 2005-01-27 | Toshiba Tec Corp | Programming support apparatus and method, and programming support program |
JP2008059135A (en) * | 2006-08-30 | 2008-03-13 | Nec Biglobe Ltd | Apparatus, method and program for automatically creating software |
-
2018
- 2018-03-09 JP JP2018042546A patent/JP6347023B1/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005025263A (en) * | 2003-06-30 | 2005-01-27 | Toshiba Tec Corp | Programming support apparatus and method, and programming support program |
JP2008059135A (en) * | 2006-08-30 | 2008-03-13 | Nec Biglobe Ltd | Apparatus, method and program for automatically creating software |
Also Published As
Publication number | Publication date |
---|---|
JP2019159514A (en) | 2019-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20050005239A1 (en) | System and method for automatic insertion of cross references in a document | |
US8190613B2 (en) | System, method and program for creating index for database | |
JPH0630066B2 (en) | Table type language translation method | |
JP6343081B1 (en) | Recording medium recording code code classification search software | |
JP6347023B1 (en) | Recording medium with code automatic description 2 software recorded | |
JP6318327B1 (en) | Recording medium on which code automatic description software is recorded | |
US4989162A (en) | Method of using an accuracy valve in a conflict resolution of a forward inference | |
JPH0936747A (en) | Data compression method and data compressor | |
JPH0652222A (en) | Information retrieval processor | |
JP3062119B2 (en) | Character string search table, method for creating the same, and character string search method | |
JPH11232149A (en) | File comparison processing method and device, and medium storing file comparison processing program | |
CN113609821B (en) | Regular expression conversion method, device, equipment and storage medium | |
JP2010020643A (en) | Data file operation system and its program | |
JP6096970B1 (en) | Recording medium on which Malmo compression software is recorded | |
McGrath | R for Data Analysis in easy steps: R Programming Essentials | |
JP2722684B2 (en) | File system search device | |
Kalkhanda | Learning AWK Programming: A fast, and simple cutting-edge utility for text-processing on the Unix-like environment | |
JP3018579B2 (en) | Name search processor | |
JPH11161666A (en) | Document data search method and apparatus, and document editing apparatus | |
JP4944266B1 (en) | 2-part character search software | |
Rothwell et al. | Pattern Matching | |
Costello | Saving space, speeding up and keeping things clear | |
WO2024014354A1 (en) | Control program editing device, editing method, and program | |
CN117008948A (en) | Resource distribution statistical method in embedded development process | |
Bernard | Strings and Texts |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20180309 |
|
A975 | Report on accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A971005 Effective date: 20180412 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180515 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180516 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20180521 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6347023 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |