Alright, i just learned the loops (if then else, for, do while, ect.) and just before it i learned the input and output (cin, cout). Now the tutorial i am using, has no homework built in it, so if anyone would be so kind to tell me something, ill probally never use, based on the loops and what else i know, a quick project i could do to use and figure out the loops, as it is i barely understand them.
N3wbi3C0d3r
0
Junior Poster in Training
Recommended Answers
Jump to PostUsing loops, draw the following shapes:
***** ***** ***** ***** *****
***** * * * * * * *****
* ** *** **** *****
***** **** *** ** *
* *** ***** ******* *********
Jump to Post>Do i have to us * or can i use any symbol to fill in the *
It doesn't matter as long as the shapes are printed correctly.
Jump to Post>but i dont know if it will work, and don't wanna waste 30 minutes writing a program that won't work from start ;P
Get over it, programming is all about failure. You screw up syntax and the compiler bitches at you, you screw up semantics and the compiler bitches at …
Jump to Post>but it wont show it....
You initialize n to 5 with the intention of decrementing it, yet your condition says to loop only when n is greater than 5. The loop never executes because the condition fails immediately. Perhaps you wanted the condition to be n > 0?
Jump to Post>just gimme the loop name, that imasposed to use, and ill figure out how to use the loop.
You can do these problems with any of the looping constructs in C++.>im now officialy lost in the code
Forget about the code. Logic comes first, then practice. If you …
All 40 Replies
Narue
5,707
Bad Cop
Team Colleague
N3wbi3C0d3r
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
N3wbi3C0d3r
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
N3wbi3C0d3r
0
Junior Poster in Training
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.