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.