主控台
4 個節點
本頁內容 4
列印
函數Print text without ending the line: whatever is printed next continues it.
列印(訊息: 文字)
void Write(string message)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 訊息 | 文字 | — |
備註
For a prompt answered on the same line - Print "Name: ", then Read Line - or one line built from several pieces. In the editor's console dock consecutive Prints make one line, a read that follows one shows its input row after what was printed, and a line still open when the run ends is the console's last line. Under stew, or as a program of its own, the text goes to standard output as it is printed.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 主控台
- 所屬包
- 平臺
列印值
函數Print any value on a line of its own; a list or an array prints one item per line.
列印值(物件: 任意)
void Print(object object)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 物件 | 任意 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 主控台
- 所屬包
- 平臺
列印一行
函數此節點沒有文件說明。
列印一行(訊息: 文字)
void PrintLine(string message)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 訊息 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 主控台
- 所屬包
- 平臺
讀取一行
函數Read the next line of text typed for the program, without its line break; nothing (null) once there is no more input.
讀取一行() -> 文字
string ReadLine()
返回
| 結果 | 文字 |
備註
In the editor the console dock asks for the line and the run waits for it - Enter sends it, Ctrl+D ends the input, and Stop answers end of input; Shift+Enter starts another line, and several lines sent at once answer one read each, in turn. Under stew, or as a program of its own, the line comes from standard input: the terminal, or whatever was redirected into it.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 主控台
- 所屬包
- 平臺