in reply to Re: Can't think of an algorithm to go..
in thread Can't think of an algorithm to go..

It prints
-------------------AAAAA----------------BBBBB-------BBBBB------CCCCCCC +CCCCCCC
for me.

What am I missing?

Your code. You didn't post it.