Demo entry 6686530

1

   

Submitted by anonymous on Dec 23, 2017 at 18:27
Language: C++. Code size: 414 Bytes.

void print_qipan()
{
	int l = 0, t = 0, r = 75, b = 75;
	for (int i = 0; i < 8; i++)
	{
		int c;
		if (i % 2 == 0)
			c = 1;
		else
			c = 0;
		for (int j = 0; j < 8; j++)
		{
			if (c % 2 == 0)
			{
				setfillcolor(BLACK);
			}
			else
				setfillcolor(WHITE);
			solidrectangle(l, t, r, b);
			l += 75;
			r += 75;
			c++;
		}
		l = 0;
		t += 75;
		r = 75;
		b += 75;
	}					//棋盘
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).