How can i draw a 1 line border or frame around code using an " * " , searching the net i have seen techniques using loops and various functions but i cant grasp the concepts being used, even a link to a indept tut on this would be a great help.
Stpdoug
0
Newbie Poster
Recommended Answers
Jump to PostIf you do not understand the concept of loops then no tutorial on drawing borders is going to help. Perhaps you should start by trying to use a loop to draw a straight line of a given size. From there, you can begin to extend your approach to multiple nested …
Jump to PostTry this :
for ( int i = 0; i < 10 ; i++ ) { cout<< "*" ; }
It creates a border like this:
**********
Similarly for vertical part use a
cout<<endl
so that after printing a star you can move to next …
All 5 Replies
L7Sqr
227
Practically a Master Poster
np complete
8
Newbie Poster
Stpdoug
0
Newbie Poster
Stpdoug
0
Newbie Poster
Stpdoug
0
Newbie Poster
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.