Swapping Characters inside an array C++

  arrays, c++, sorting

I’m looking to make a series of flashing lights and I want them to appear on the same line.

Something like this

O * O * O * O * O * O *

O * O * O * O * O * O *

I want these characters to swap positions to make it look like lights that are flashing

      char Array[10] = {O,*,O,*,O,*,O,*,O,*}

I’m Not quite sure how I’m going to get them to swap positions yet, but the main problem is how to get it to keep printing and looping over and over on the same line.

Source: Windows Questions C++