My favorites | Sign in
cpp
Project Home Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 7: problem1.1: замечания
1 person starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  adkoz...@gmail.com
Closed:  Mar 2011


 
Project Member Reported by alsergbox, Feb 23, 2011
Не надо писать в условном операторе условие и стейтмент на одной строчке.

Этот блок кода явно просит заменить его на switch.
	if (direction % 4 == 0) res.x += length;
	else if (direction %4 == 1) res.y += length;
	else if (direction %4 == 2) res.x -= length;
	else if (direction %4 == 3) res.y -= length;


Mar 2, 2011
Project Member #1 alsergbox
Почему не выставил статус fixed?
Status: Verified

Powered by Google Project Hosting