int t;
//...
while(!some_check())
{
cout << "\\|/-"[t=(t+1)%4]<<"\b";
wait();
//...
}
Вот это открытие. Оказывается работает индексация строковых констант! АААААААА!
int t;
//...
while(!some_check())
{
cout << "\\|/-"[t=(t+1)%4]<<"\b";
wait();
//...
}