ID:274324
 
Ok I just got a 1040 page book on C++. I also got a compiler. The compiler I got is called Code Warrior (don't know if its good) and the book had me start with a Hello World output code.

#include
using namespace std;
int Main ()
{
cout << "Hello World";
return 0;
}

C++ looks pretty cool and I just wanted to know what you guys know about it and what I can do with it. I also want to know what some more of this stuff means!!!
Thanks,
Air King
Ick, I hate C++, DM is so much better.
In response to Light
Indeed.. I left C++ for DM.

-- Tarmas.
In response to Tarmas
Tarmas wrote:
Indeed.. I left C++ for DM.

-- Tarmas.

I like DM, but I want more of a chalange.
In response to Air _King
You are insane.

-- Tarmas.
You can do just about anything. I'm almost positive Windows was made with C++. If not then they used C.
Air _King wrote:
Ok I just got a 1040 page book on C++. I also got a compiler. The compiler I got is called Code Warrior (don't know if its good) and the book had me start with a Hello World output code.

Heh. I don't get books, yet. I mostly just hunt tutorials on-line. One good beginner's one that I look through every once and a while to refresh the little amount I know is Online C++ Tutorial. It has stuff to pointers and memory management, so far. It's a work in progress!
#include <iostream>  //contains stuff like cout (src, in BYOND's case)
using namespace std;
int Main () //much like client/New()... every program must have a Main() function
{
cout << "Hello World"; // src << "Hello World!" might want to have a << endl; where the ; is in there
return 0; //something special here... too lazy to remember
}


Don't blame me if anything's wrong!
In response to Vortezz
Ok anyone have Code Warrior??? I can't get it to put the .cpp into the source folder. It has the hello.cpp place holder file, but not the main.cpp i added.
Air _King wrote:
Ok I just got a 1040 page book on C++. I also got a compiler. The compiler I got is called Code Warrior (don't know if its good) and the book had me start with a Hello World output code.


Code Warrior is a pretty highly respected tool. You'll do well to learn it.

And C++ is essential to learn if you want to get jobs in programming or in gaming.

It does, however, suck donkeys in many big ways.
In response to Tarmas
when I try to make it go to a new line it adds it on to the last one. What is the command(s) for this? I looked in the book, but with 1040...
In response to Tarmas
Do you want to know why this is easier then c++ is
its becuase this programming language was made for mainly games (i thinks thst it)
and c++ is made for every thing and not just games.
thats why DM is much easier
In response to Greg
No, DM is easier because Dan and Tom made it that way. DM doesn't have some of the commands that C++ does because, the average person doesn't need to use them.

I'm sure if there was a command in C++ that you needed for your game, I'm sure they could put it in if they felt it was necessary.
In response to Evilkevkev
Evilkevkev wrote:
No, DM is easier because Dan and Tom made it that way. DM doesn't have some of the commands that C++ does because, the average person doesn't need to use them.

I'm sure if there was a command in C++ that you needed for your game, I'm sure they could put it in if they felt it was necessary.


didnt i say DM was easier
i am pretty sure i did
In response to Greg
I was correcting you on WHY it is easier, not that it is easier.

[EDIT]
It's not that important though so let's not make a big deal of it and get off topic any more than we already are.
In response to Greg
Greg wrote:
Do you want to know why this is easier then c++ is
its becuase this programming language was made for mainly games (i thinks thst it)
and c++ is made for every thing and not just games.
thats why DM is much easier

DM can in fact be used for many purposes beyond games, and is a general purpose language, except for the visual display aspect which is tied to the game system.

You could certainly use it for all sorts of web applications, and I would be quite happy to solve many normal problems using it.

The reasons DM are easier than C++ have to do with the language design decisions, rather than the purpose of the language.
In response to Air _King
Air _King wrote:
when I try to make it go to a new line it adds it on to the last one. What is the command(s) for this? I looked in the book, but with 1040...

You mean something like this?
cout << "Hello World\n";
cout << "This line is now underneath!";

In response to Air _King
Air _King wrote:
Tarmas wrote:
Indeed.. I left C++ for DM.

-- Tarmas.

I like DM, but I want more of a chalange.

From my understanding of DM and C/C++, most of the challenge of the latter is just a lot of extra work that either the DM compiler or the BYOND engine would normally do for you just as well or better.
In response to Bingis
Conviniently (sp?) "\n" is called "the new line modifier" or "newline"
In response to Air _King
Challenge? Try remapping your keyboard, then programming in DM.
I program in c++, and I would suggest reading the tutorial at http://www.cplusplus.com . I really think tutorials are much better than books.
Page: 1 2