Quote:Original post by theadamSGT
okay.
And what? Now you know...how are you gonna help?
Quote:Original post by theadamSGT
just a chance that you might have been learning c++ because c++ can use printf too
if you want to learn c++ here it is http://www.gamedev.net/community/forums/topic.asp?topic_id=333728
Quote:Original post by theadamSGT
i dont have to its just because thats what i learned
Quote:Original post by ReneGade RG devQuote:Original post by theadamSGT
just a chance that you might have been learning c++ because c++ can use printf too
if you want to learn c++ here it is http://www.gamedev.net/community/forums/topic.asp?topic_id=333728
Cool...I'll try using it myself....(why do they always make you use cout<< in c++?)
Quote:Original post by TomX
Since I'm new and haven't really used it thoroughly I don't see why they don't just have a function like the one in C#: Console.Write("Hello World"); which is much neater. I assume it's for flexibility in terms of memory management.
a + b;
a.add(b);
Quote: C does run faster than C++ due to it being at a slightly lower level, but this probably won't concern a beginner much.
Quote:Since I'm new and haven't really used it thoroughly I don't see why they don't just have a function like the one in C#: Console.Write("Hello World"); which is much neater. I assume it's for flexibility in terms of memory management.
cout.write("Hello world here's a number ").write(number).write(" here's a string ").write(string);cout << "Hello world here's a number: " << number << " here's a string " << string;
Quote:Original post by shmoove
In the end, the difference between:a + b;
and:a.add(b);
is just style.
a.add(b.add(c.sub(d.add(e.add(f)))));
I'd say there's more than style to it.Quote:Original post by ukdeveloperFalse.
C does run faster than C++ due to it being at a slightly lower level, but this probably won't concern a beginner much.
Quote:Original post by ReneGade RG devFirst off, "they" don't make you use anythng. Second, it's cout, not cout<<: cout is an object (it encapsulates a representation of the console output stream and inherits a set of generic stream properties), with operator << overloaded to serve as its insertion mechanism. The insertion operator is overloaded for all intrinsic and standard library types with meaningful textual representation (it doesn't make any sense to print a vector, but it makes sense to print the strings in the vector) and can be overloaded by the developer for user-defined types (you can create an insertion operator for your vector3d type and then be able to write cout << v3d;).
(why do they always make you use cout<< in c++?)