int main() {
int i;
char words[] = "Hello this is text.\n";
for(i = 0; i < strlen(words); i++) {
sleep(1);
putchar(words[i]);
}
}
我一直在試圖讓程序緩慢地逐字輸出文本到控制檯(看起來像某人正在輸入它)
R中的許多函數提供某種控制檯輸出(如NbClust()等)。有沒有任何方法來檢索某些輸出(例如某個整數值)而無需查看在輸出?從控制檯讀取任何方式? 想象輸出看起來像從示例代碼輸出以下的package manual提供: [1] "Frey index : No clustering structure in this data set"
*** : The Hubert index is a g