Well, think of the logic: you count from 1. Every time this counter is divisible by 6, you print a new line.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
When I first touched a computer (a VIC20) all those years ago, I'm sure I would have worked it out quicker than this. As far as programming problems go, this one is very very simple. walkonwater, I believe that you're not getting there because you're not learning to think for yourself. You're too reliant on help that's only a few clicks away.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"