Search
 
SCRIPT & CODE EXAMPLE
 

CPP

how to refresh multiple command lines in C++ stream

#include <iostream>
#include <stdio.h>
using namespace std;

int main() 
{
    for (int i=0; i<5; i++) {
            for (int j=0; j<5; j++) {
                    cout << "-";
            }
            cout << endl;
    }

    getchar();
    printf("33[2J");
    printf("33[%d;%dH", 0, 0);

    for (int i=0; i<5; i++) {
            for (int j=0; j<5; j++) {
                    cout << "x";
            }
            cout<<endl;
    }

    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: friend class in c++ 
Cpp :: escribir texto c++ 
Cpp :: how to get steam id c++ 
Cpp :: quiz arrary and pointers in c++ 
Cpp :: export gcc g++ 
Cpp :: convert c program to c++ online 
Cpp :: Arduino C++ servomotor random moving 
Cpp :: cosnt cast 
Cpp :: ranged based for loop c++ 
Cpp :: xor in c++ 
Cpp :: C++ operation 
Cpp :: convert GLFWwindow* to IntPtr 
Cpp :: ex: java script 
Cpp :: private static c++ 
Cpp :: how the theam are store in database 
Cpp :: is plaindrome 
Cpp :: c++ vector merge algorithm 
Cpp :: constructor init list 
Cpp :: // A C++ program to show that we can use reference to 
Cpp :: constant qualifier c++ "error display" 
Cpp :: is there interfaces in c++ like 
Cpp :: bounded and unbounded solution in lpp 
Cpp :: c++ coding questions for interview 
Cpp :: how to get the numbers in a vector c++ sfml 
Cpp :: c++ function parameters 
Cpp :: how to parse using stringstream 
Cpp :: in c++ 
Cpp :: string array 2d c++ 
C :: c colourful output 
C :: debian apt force overwrite 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =