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