Author Topic: where to start learning C++??  (Read 2503 times)

Little Helper

  • Guest
where to start learning C++??
« on: 15 July 2010, 20:30:51 »
WHere should I start off learning C++ game development? How did you guys start off? Can microsoft visual C++ develop games? How can I use glest as my
C++ learning tool?

Gabbe

  • Guest
Re: where to start learning C++??
« Reply #1 on: 15 July 2010, 20:33:56 »
Quote
WHere should I start off learning C++ game development?

definately better forums to ask for that one, try "c++ console lesson" for the basics, YOUTUBE FTW!

Quote
How did you guys start off?

well, you know, mom and dad..yeah JK JK JK i read on the internet, planning to do java, but c++ was my chooice :)

Quote
Can microsoft visual C++ develop games?


yeah, but not as you might think, it`ll be better to make a game engine = harder and...yeah..

Quote
How can I use glest as my
C++ learning tool?

you gotta wait kid :P

Little Helper

  • Guest
Re: where to start learning C++??
« Reply #2 on: 15 July 2010, 21:08:09 »
mind giving me the youtube video links?  :)

Gabbe

  • Guest
« Last Edit: 15 July 2010, 21:16:19 by Gabbe »

Little Helper

  • Guest
Re: where to start learning C++??
« Reply #4 on: 15 July 2010, 22:13:26 »
SO these videos helped you learn c++? I have some knowledge of making other programs...very simple programs..in vb8
THANK YOU 4 THE VIDEO! ;D
« Last Edit: 18 July 2010, 20:39:00 by @kukac@ »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,238
    • View Profile
Re: where to start learning C++??
« Reply #5 on: 16 July 2010, 00:41:00 »
Learning any programming language is not easy. LEarning and using glest at the same time will frustrate you and you will run away screaming!

Here are some things to consider when learning to write code:

- First you need to learn a programming language. This will take a long time. Learning to program using a language in Windows is also different from using that same language in other operating systems like Linux or Macintosh. Before learning to write code you should get knowlegable with an operating system like Linux or Windows. So my advice would be to start with a more simple language like Java.

- Once you learn one language (and learn it well) it will not be too hard to learn others since many concepts are quite similar, but it will take time.

- There are MANY concepts to learn in programming and it will take many years to get good in many of them. After learning an operating system, the na language you will come to know about API's, Frameworks and libraries. Decide what type of direction you want to go (games developement, systems dev, GUI dev, etc) and learn those libraries well and how to use them properly.

Thats my 2 cents for starters.

Little Helper

  • Guest
Re: where to start learning C++??
« Reply #6 on: 16 July 2010, 18:26:33 »
Thx! WHy is java so important? whats the point of learning it, is it used in many programs?  :look:
which is better to understand linux or windows?
I want to be on the game developement side as well as GUI! ;D

And softcoder where did you start off learning C++?

And where to start learning java????????? :-[
« Last Edit: 16 July 2010, 19:17:40 by Little Helper »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,238
    • View Profile
Re: where to start learning C++??
« Reply #7 on: 16 July 2010, 20:50:52 »
Start with Java because it is a perfect programming language to "start" with and there are lots of free learning materials all over the place. JAva will teach some foundation principles of software development, do NOT waste time in VB, C# as they are still irrevelvant in game programming. Do NOT start trying to learn C / C++ they are just oo hard to start with!

You will NOT learn the things mentioned here quickly, they will takes years, so unless you are patient and prepared for the long haul you are wasting time (this is a fact).

I prefer to learn Linux but learning Windows will be easier for beginners and also be required when you get a job.

I started learning C/C++ as my first language (using Microsoft Quick C) long long ago at the age of 12. I was mostly useless until i was 20 years old and then I started to be able to write meaningful code. This was coupled with a normal life of playing sports etc (so it can be done faster at the sacrific or not having a normal life).

There are hundreds (if not thousands) of free tutorials on the web to learn how to program in Java, find one theat works for you and start with that.

Gabbe

  • Guest
Re: where to start learning C++??
« Reply #8 on: 16 July 2010, 21:17:27 »
yeah, boo isn`t good i`ve heard, i would prefer starting with c++ since I always start with the hardest...somehow...but Softcoder have probably more coding experience than me, and learning experience :|

kingnothing

  • Guest
Re: where to start learning C++??
« Reply #9 on: 18 July 2010, 20:05:06 »
who said u cannt make games with C n VB
darkbasic all u need is simple vb knowledge..............i dont mean vb.net...i mean vb 6..the old vb lang
search Beginner's Guide to DarkBASIC Game Programming n it will give u step by step guide but these are not free
Dark GDK program(there is free n paid) can make games with C languages
making makes became easier with these languages
i am not advertising but main programs for VB and C cannt make games with gr8 quality easily
( I dont mean to advertise any thing just sharing info abt stuff not all ppl know)
some games made by Darkbasic pro are a hit
these are all im ganna say need more info google is ur friend

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: where to start learning C++??
« Reply #10 on: 20 July 2010, 01:22:03 »
Well, I for one would not recommend youtube for learning... While I've never seen the videos, I cannot wrap my mind around possibly learning something from videos limited to 10 minutes a piece... Also, don't believe books that state you can "learn in 3 weeks" or something. Softcoder is NOT exaggerating with taking years to learn!

Starting in any language is a good idea. Java is probably best if your ultimate goal is C++, since it's similar syntax. Python is probably the easiest major language to learn, but it is much different from C++ in syntax.

You'll spend lots of time with the console, making completely useless programs while learning the fundlements of the language. Do NOT negelect learning object orientation, since that's one of C++'s best features. Make sure you understand classes, pointers, references, etc, etc;

When you first try to make a non-console program, you should try a pre-made engine. This is a bunch of classes and functions that make coding much easier. I would recommend Irrlicht for beginning. For example, this is (working) code which imports and displays a 3D animated MD2 Model:
Code: [Select]
#include <irrlicht.h>

using namespace irr;

int main()
{
IrrlichtDevice *device = createDevice( video::EDT_SOFTWARE, dimension2d<u32>(640, 480), 16, false, false, false, 0);

if (!device){
return 1;
}

device->setWindowCaption(L"Omega is Awesome");

IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();

IAnimatedMesh* mesh = smgr->getMesh("path/to/model.md2");
if (!mesh)
{
device->drop();
return 1;
}
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );

if (node)
{
node->setMaterialFlag(EMF_LIGHTING, false);
node->setMD2Animation(scene::EMAT_STAND);
node->setMaterialTexture( 0, driver->getTexture("path/to/texture.png") );
}

smgr->addCameraSceneNode(0, vector3df(0,30,-40), vector3df(0,5,0));

while(device->run())
{
driver->beginScene(true, true, SColor(255,100,101,140));

smgr->drawAll();
guienv->drawAll();

driver->endScene();

device->drop();

return 0;
}
While many parts seem like a jumble of a mess, it will all make sense once you learn the Irrlicht engine. Of course, don't jump the gun, because you'll need a lot of knowledge of C++ before you reach that stage.

Happy learning.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Gabbe

  • Guest
Re: where to start learning C++??
« Reply #11 on: 20 July 2010, 21:01:25 »
The videos are good Omega, watch em, they teach all the stuff :P

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: where to start learning C++??
« Reply #12 on: 20 July 2010, 21:06:09 »
The videos are good Omega, watch em, they teach all the stuff :P
No thank you. I don't care much for using videos.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Gabbe

  • Guest
Re: where to start learning C++??
« Reply #13 on: 21 July 2010, 09:13:54 »
...

comon its 10 minutes XD

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: where to start learning C++??
« Reply #14 on: 21 July 2010, 15:30:16 »
Why would you want a video to show you something non-visual?  Programming is all text, so wouldn't a text tutorial make 800x more sense? :P

Gabbe

  • Guest
Re: where to start learning C++??
« Reply #15 on: 21 July 2010, 18:30:10 »
There is a link to a site were everything is, source files, text tutorial, video "lyrics" or text whatever...

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: where to start learning C++??
« Reply #16 on: 22 July 2010, 01:58:01 »
video "lyrics"
I think the words you are looking for are either subtitles or captions.

But really, face it, programming is best learned from text, namely books. One book I recall for c++ is 800 pages, boasts examples, exercises, etc and serves its purpose better than a movie. And a lot less pausing! ;)
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

kingnothing

  • Guest
Re: where to start learning C++??
« Reply #17 on: 22 July 2010, 08:58:05 »
there r differences between java and c++
but java can be used more and widely
but still if you want to start directly from C++
these site have good tuts

http://www.cprogramming.com/tutorial.html

http://www.iota-six.co.uk/c/default.asp

http://devcentral.iftech.com/articles/C++/default.php

http://www.cplusplus.com/doc/tutorial/

http://www.cplusplus.com/

http://www.delorie.com/djgpp/

http://www.1cplusplusstreet.com/

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vctutor98/html/_gs_Overview_of_the_Visual_C.2b2b_.Tutorials.asp

http://www.flipcode.com

http://winprog.org/tutorial/

I dont know if they are still alive......i extracted them from my bookmarks
and and there is also for dummies books.......if you have any start with c then C++

There are different languages of C and C++ i dont know if any body told you that

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: where to start learning C++??
« Reply #18 on: 22 July 2010, 17:56:04 »
A few good books:
-3D Maths Primer for Graphics and Games development (a must for anyone planning on creating a 3D game, any language)
-C++ In action (lots of work with classes, which is a must to learn. Not sure if this is the best for immediately starting out though)
-Game Programming All in One (once you are familiar with C++ and want to see something other than a console. Uses mostly Allegro and Direct X)'
-Programming Game AI by Example (Possibly best AI book ever written)

None of them would be learn from scratch ones, though C++ In Action, while taking a small jump, could be used to learn from scratch (especially for those quick to catch on).

You could find all of these in a free ebook form if you don't mind (1) the legal... er... barriers, and (2) searching for active links can be painful sometimes. Worth it though.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

kingnothing

  • Guest
Re: where to start learning C++??
« Reply #19 on: 24 July 2010, 09:14:50 »
found 3 out of 4 from the books Omega
still there is C++ in action i need the name of the author and i'll have the 4 ebooks
seems there are many C++ in action

 

anything