Honestly, I just went with the goto. While it can lead to messy coding, when it isn't a copout it seems to me it can be helpful. I don't intend to use it often, but explicitly avoiding it may be a...
Type: Posts; User: Dagda
Honestly, I just went with the goto. While it can lead to messy coding, when it isn't a copout it seems to me it can be helpful. I don't intend to use it often, but explicitly avoiding it may be a...
Thanks. I was afraid of that. They really do have a potential for messy programming.
So here's what I've got.
//: C03:Menu.cpp// Simple menu program demonstrating
// the use of "break" and "continue"
#include <iostream>
using namespace std;
int main()
Does one have to put normal #include stuff into a header, or is it read directly into the main program?
Yeah, I see that now. I screwed up and was overcomplicating my searches. Sorry.
NVM. Derp.
Wow! Thanks a lot, guys. I wasn't sure what to expect of this forum, but that really clarifies things perfectly! I'm sure I'll have more questions for you guys as time goes on.
Okay, so I'm teaching myself C++, and I like to run with as many exercises as I can (I've found that nothing teaches better than actually coding it out, and conceptual knowledge helps much less than...
... Well don't I feel sheepish
Okay, so I am a novice programmer, and I'm encountering my first inexplicable issue. I have a pair of nested for loops, meant to check for prime numbers. It is as follows.
#include <iostream>...