in was like to do display values of a dynamic integer on console application with out scrolling down the application background. the integer was passed in to thread by ref. thread will change the values if the integer.
currently i was doing it like this in the main method/ thread
int data;
thread t1((ProCount()),ref(data));
while(true){
cout<<"data :"<<data<<endl;
system("CLS");
}
but for CLS command will take lot of processing power is there any other decent way to do it??