- 1
C++ Printed arrow program
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
#PyTorchDayFrance :: 7 May 2025 Paris, France :: co-located with the GOSIM AI Paris
By thedhubs,
- pyhton
- conference
- (and 2 more)
- 0 answers
- 1,069 views
-
#HPSFcon :: the conference high performance software :: May 5 – 8, 2025 Chicago, IL, USA
By thedhubs,
- conference
- linux
- (and 2 more)
- 0 answers
- 966 views
-
Microsoft introduces TypeScript 5.8: Explore the latest features and enhancements
By zikalify,
- microsoft
- typescript
- (and 4 more)
- 4 replies
- 0 views
-
Visual Studio Code 1.95 generates Python Docstring templates and more
By zikalify,
- microsoft
- visual studio code
- (and 3 more)
- 4 replies
- 5 views
-
- 0 replies
- 4 views
-
Question
DaveGreen93
Hi Guys,
I need some help. I'm new to C++ and I've been set a tiny project to help me understand and implement nested for loops.
All this project is supposed to do is print out an arrow using the values given for the Arrow Length, Arrow Head Width, Arrow Tail Width and the character to output in.
I have managed to get the arrow head going, mostly with luck...
Now it's just down to the tail. I cannot for the life of me figure out how to centre the tail. I know I'm missing the for loop for the spaces to push it in, but that's the part which I'm struggling with. Probably very basic, but my head is blank right now.
This solution will eventually take user input to change the arrow dimensions, so it needs to be relative.
Link to comment
https://www.neowin.net/forum/topic/1236209-c-printed-arrow-program/Share on other sites
3 answers to this question
Recommended Posts