these chat boards aren't very popular are they
Printable View
these chat boards aren't very popular are they
there is only like 2 registered users on here
>even this websites tutorials don't tell me to put them
Really. I could have sworn that all of the code examples in those tutorials accounted for the std namespace when I wrote them! But I guess you have to be slapped in the face with it right away:
Nice game though, very entertaining. :)Quote:
Lesson 1: The basics of C++(Printable Version)
That namespace crap is important.
This tutorial is for everyone; if you've never programmed before, or if you have extensive experience programming in other languages and want to expand into C++. It is for everyone who wants the feeling of accomplishment from a working program.
p.s. Is our month up yet? :p
what month.
it's a very accurate dog simulation
>>these chat boards aren't very popular are they
>>there is only like 2 registered users on here
It's not a chat board. And there's around 12,000 registered users.
>>what month.
Stick around, follow the rules, put away the "it works for me so stfu" attitude, ask smart questions, and say thanks when people help you even though you sure as hell didn't deserve it, and you might find out the nice way. Otherwise, when the month is over, you'll find out the other way.
On a lighter note, we're not really a bunch of fascist anti-newbie nazis, as I may have given you the impression of. Your posts have just irritated me somewhat.
Welcome to the boards. :)
I think the next step.. if possible.. would be to make a similar program using women instead of man's best friend.
you never gave me a greeting hunter
>>> even this websites tutorials don't tell me to put them
The tutorials here that use iostrem have to do something to bring, for example cout, into scope. Preceeding cout with std:: brings it into scope. Another way to do this is by using the entire namespace, a "using namespace std" line. Both will work. Right now <iostream.h> works as well, however, there will come a time when it will no longer be the case.
The reason people are advising you to use one of the namespace methods is because they know that this is a better solution.