cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
need help drawing a rectangle
need help drawing a rectangle
Feb 11, 2013 at 1:59am UTC
purplebud
(3)
hello i'm trying to create a rectangle in c++ using vectors that have a menu to select the size and shape.
Last edited on
Feb 11, 2013 at 2:17am UTC
Feb 11, 2013 at 2:09am UTC
purplebud
(3)
from what i got so far I have to insert in void rectangle(char charChoice,int shapeSize)
and also at the top. I'm just unsure how to use shapeSize to start writing a square ugh. i need a lifeline!
Feb 11, 2013 at 2:16am UTC
purplebud
(3)
it's telling me for needs a { and shapeSize isn't defined? i don't get it. I thought shapeSize was defined already as an int??????
void rectangle(char charChoice,int shapeSize)
for(int i=0; i<(shapeSize/2); i++)
{
for(int j=0; j<shapeSize; j++)
cout << charChoice;
cout << endl;
}
Last edited on
Feb 11, 2013 at 2:22am UTC
Topic archived. No new replies allowed.