0
因此没有代码可以关闭,但是如何替换cpp中控制台应用程序中的一行。所以不用新建一行,而是在不创建新行的情况下替换文本。 string toggle =“OFF”;在控制台中替换行C++
printf("TOGGLE: %s", toggle);//an if statement changes toggle but never changes.
我应该循环?
例如:
Toggle: ON //Instead of making a new line saying...
Toggle: OFF // how could i replace the Toggle: ON to say toggle off when i toggle off.