how to draw a flag by for loop ?

Recommended Answers

All 2 Replies

Your code so far?
Do you mean a boolean flag? Specify what you want.

  for (;;)
{

  cout << "|* * * * * *|---------------------|" << endl;
  cout << "| * * * * * |---------------------|" << endl;
  cout << "|* * * * * *|---------------------|" << endl;
  cout << "| * * * * * |---------------------|" << endl;
  cout << "|---------------------------------|" << endl;
  cout << "|---------------------------------|" << endl;
  cout << "|---------------------------------|" << endl;
  cout << "|---------------------------------|" << endl;
  break;
}
commented: And to think he considers himself funny! LOL! +12
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.