c++ language tutorial

Anable

Newbie
Joined
Nov 21, 2003
Messages
270
Reaction score
0
This language tutorial is by far the best I've seen online that's helped me out. It's extremely basic so it's perfect for those with no programing background. I've learned a lot from it.
 
I think this would be a good sticky.
But its not up to me...so pl mods make it a sticky!
 
ohh, nice. Thanks, I've been looking for a C++ guide. I ordered a C++ book last night so I can get started learning the language, but this gives me a nice jumpstart :)
 
Hi, I have a question. The C++ that I'm currently learing in College (nah, don't make fun. i'm not one of "these" kids) is a bit different. Can anyone explain to met the follwing?

This in tutorial, in the first section, in the program called Hello World, the command used to output "Hello World!" is like this:

cout << "Hello World";

But in my class we did it differentely:

Console::WriteLine("Hello World!");

What's the difference? Could it be different libraries or something?

I'm a beginner, please go easy on me. :) Thanks.
 
heh thats the exact same tut I'v been useing, I actually have a C++ book but I let my friend borrow it and i havn't seen it since.

Jumbo: cout is in the iostream unit, console::WriteLine might be in the windows unit or something. Could you try writeing: "useing namespace console;" at the top under the files you have included then try useing WriteLine without 'Console::' attached. Also what header files have you included?
 
Im 99% sure you are learning managed C++ which is with the .Net framework and slower than vanilla C++. The reason im not 100% is because i've never used it so it could just be a different C++ lib from the std one (which would be weird). Anyways, managed is not what you want for HL2
 
MadMechwarrior: Yeah, we're working with Microsoft's Visual Studio .NET... . :(

After thinkin about this for a while, It don't really matter to me. What's a problem to learn the regular C++ when you already know the other "version" or learn them both at the same time? Better for me. :)

Just curious, why would the "managed" version be not good for HL2? Is it limited in any way or something? Or is it that HL2 is being written in the regular C++?

mrchimp:

#using <cordlib.dll>
using namespace System;


Or something like that.

Thank guys.
 
One more thing, I'm also learing Visual Basic. Seems easy as hell.

It's still C++, only WYSIWYG, right? So can be used to play with HL2 as well, right???
 
jumbo said:
One more thing, I'm also learing Visual Basic. Seems easy as hell.

It's still C++, only WYSIWYG, right? So can be used to play with HL2 as well, right???

Are you asking if Visual Basic can be used to mod Half-Life 2? If you are, the answer would be no, sorry. The SDK is written in C++, so any mods must also be written in C++.
 
jumbo said:
MadMechwarrior: Yeah, we're working with Microsoft's Visual Studio .NET... . :(

After thinkin about this for a while, It don't really matter to me. What's a problem to learn the regular C++ when you already know the other "version" or learn them both at the same time? Better for me. :)

Just curious, why would the "managed" version be not good for HL2? Is it limited in any way or something? Or is it that HL2 is being written in the regular C++?

mrchimp:

#using <cordlib.dll>
using namespace System;


Or something like that.

Thank guys.

urrrggg .net, I don't like the sound of that. The problem with .net is, it is a bit slower and less flexible than your standard C++, plus it doesn't really have any features that would help game desighners a great deal so there's not much point useing it for games. If you want something that is platform independant then you can't use it atall. Also it costs unlike standard C++ which has a couple of free compilers and IDE's.

Your right though there's no harm in learning both, one at college and the other at home. At my College we'r learning turbo pascal and delphi which arn't brilliant use for complex programs but are easier to use for basic ones and to teach people who really shouldn't be in a computer science class.

Here's some more C++ tut's http://www.bloodshed.net/c/index.html
 
fyi, Microsoft's command line tools for .Net are free, plus there are CLR interpreters for Linux (google "Mono")
 
Ok so my only real argument against .NET in a real world developer sense has been shot down, but from an educational point of view I think it's best to learn the basic standardized libriarys first.

At the moment I'm not working on any projects that could take advantage of the .NET framework so I'm not qualified to start mouthing off about it, but I have heard alot from people that are. http://www.go-mono.com/ is interesting and I'm always suprised at what the freeware community is doing, but It actually looks like more hassel than it's worth. Also I get the impression from the mono website that .NET is for C# not C++...
 
jumbo said:
Hi, I have a question. The C++ that I'm currently learing in College (nah, don't make fun. i'm not one of "these" kids) is a bit different. Can anyone explain to met the follwing?

This in tutorial, in the first section, in the program called Hello World, the command used to output "Hello World!" is like this:

cout << "Hello World";

But in my class we did it differentely:

Console::WriteLine("Hello World!");

What's the difference? Could it be different libraries or something?

I'm a beginner, please go easy on me. :) Thanks.

Maybe i'm to late ... but: I think you're learning C# not C++. I've little knowage on C# and Console::WriteLine("SomeTextHere"); is a C# string to oputput text.
I can be wrong, don't forget this.

P.S. I was writting C++ code in Visual C++ 6.0 and then in Visual Studio.NET 2003 .. and difference between C++ version for 6.0 and .NET 2003 version. isn't too big :)
 
The link won't work for me, just some stupid incredifind site.
 
I got rid of incredifind, and I get a page can not be displayed error.
 
Back
Top