Ok,
M364M4Ncro, now you are becoming a bit rude and overspoken.
You obviously know nothing about pedagogy. As a beginner in programming, you also don't know enough to properly argue what is simple and what is not. Your comments indicate that you don't really understand what
system() does anyway.
This is your topic, so you are certainly allowed to take from it what you want. Heck, you can even post whatever drivel you want people to believe -- considering your obvious understanding of what the right answer ought to be.
It does seem odd, however, to instruct the instructor. And I don't think other people reading here ought to get "well it must be okay, at least sometimes" from reading a discussion I've participated in.
No matter
what you are learning, there is always a "learning curve" that translates to the simple fact that you will
not understand everything at first blush.
Oh, and by the way, the "reason why they teach them to use system() at first" is not what you think. The sad truth is that your instructor or instructors either
1. don't know any better, or
2. are being lazy
There is little excuse to ruin a new programmer's mind by teaching bad mojo. If you were to apply the same reasoning to other disciplines, you'd get similar rubbish:
Don't worry about the gas and break pedals yet. Just steer and use the shifter.
Don't worry about food safey yet. For now just dunk everything in formaldehide.
Don't worry about the ground wire yet -- we'll get to that when we study electrical safety.
In the meantime, just clip it to the box. (Sure, it might kill someone someday, but it is very
simple and easy.)
Think that's an over-the-top reaction? It isn't. If you are serious about software, don't subvert security by using
system() blithely.
One final note about learning. You'll get a much better response if you simply say things like,
Hey, I read through your post but I don't think I understand what you mean by "use a stringstream". We haven't covered streams yet in class |
and
Gosh, I realize that the user can format the input any way he wants. But I'd like to force him to input it like it was a matrix. Is there a simple and easy way to do that for a beginner like me? |
instead of
Well, I'm going to breath fire at you people because you both disagreed with the poster who gave me an answer I liked. |
As I've already said, when you bite back for percieved offenses, you'll quickly find that quality help disappears. And so, now
my help will disappear.
Not that you care, apparently.