- 1
C++ Printed arrow program
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Unified Copilot experience will land in Visual Studio 17.10, due in May
By zikalify,
- microsoft
- visual studio
- (and 9 more)
- 3 replies
- 4 views
-
Microsoft introduces TypeScript 5.4: Explore the latest features and enhancements
By zikalify,
- microsoft
- typescript
- (and 4 more)
- 11 replies
- 2 views
-
Nvidia, Hugging Face and ServiceNow release StarCoder2 coding LLMs
By zikalify,
- nvidia
- hugging face
- (and 4 more)
- 2 replies
- 3 views
-
IT Skills: Top 10 Programming Languages for 2023 — Free report
By News Staff,
- ebook offer
- sponsored
- (and 2 more)
- 0 replies
- 2 views
-
- 19 answers
- 6,543 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
Share on other sites
3 answers to this question
Recommended Posts