Click here to Skip to main content
15,892,161 members
Articles / Programming Languages / C++

C++ -> Drawing Rectangles to Console

Rate me:
Please Sign up or sign in to vote.
4.83/5 (6 votes)
25 Aug 2011CPOL 51.9K   7  
C++ -> Drawing Rectangles to Console

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
25 Aug 2011Jose David Pujo
Smaller code:void DrawRect(int x, int y, int width, int height, int curPosX=0, int curPosY=0){ setxy(x, y); cout << char(201); cout.width(width); cout.fill (char(205)); cout << char(187); setxy(x,height+y); cout << char(200); cout.width(width); cout.fill...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
Turkey Turkey
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions