c++ 시간 표시 때문에 질문입니다.
다이
2023.04.01
int main()
{
clock_t time;
vectorstring v;
ifstream infile(temp.txt);
while(1)
{
time = clock();
coutstatic_castint(time)/100endl;
}
copy(istream_iteratorstring(infile),istream_iteratorstring(),back_inserter(v));
copy(v.begin(),v.end(),ostream_iteratorstring(cout,\t));
}
보시는바와같이 코딩이 되어있는데 밑에 copy부분은 신경안쓰셔도돼고요 while문에서
보시면 시간을 출력하는 부분이 있는데
제가 원하는 바는 시간이 출력되면 한자리에서 그 값이 바뀌면서 출력이 되는 것을 원하는데
현재는 한줄씩 넘어가면서 시간이 출력이됩니다. 한자리에서 값이 계속 바뀌게 하려면
어떻게 하면되나요