Author Topic: best way to learn C++?  (Read 10572 times)

0 Members and 1 Guest are viewing this topic.

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
best way to learn C++?
« on: November 04, 2011, 09:23:38 pm »
Well, It's time I learn something valuable in life a little early.. C++! So I found out that one of my friends is making this game with like 3 or so other people and i wanted to help him out.

So, what is the best online tutorial that will help me to learn this language? Also what IDE is the best one? What do I need to download to get started making my first programs?

Thanks as always!
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: best way to learn C++?
« Reply #1 on: November 04, 2011, 10:01:16 pm »
I suggest cplusplus and learncpp. I'm not a master of the language, but I'm using those two to learn it, and I'm using Code::Blocks as my IDE. If you go with Code::Blocks, I think you only need to download that to get started. cplusplus has a PDF of their tutorial that you can download for offline learning, if you wanted though.
« Last Edit: November 04, 2011, 10:08:07 pm by BlakPilar »

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: best way to learn C++?
« Reply #2 on: November 04, 2011, 10:22:00 pm »
cplusplus is probably the best tutorial out there. For an IDE I use code::blocks with MinGW included in the install. :D

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: best way to learn C++?
« Reply #3 on: November 05, 2011, 09:23:50 am »
thank you! Tomorrow i'll probably start on it.

Also, what about tutorials as far as direct3d 9/10/11? Which tutorials are the best ones for that? The reason I wanted to learn about C++ is to work with direct x
« Last Edit: November 05, 2011, 09:43:04 am by Snake X »
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: best way to learn C++?
« Reply #4 on: November 05, 2011, 09:44:08 am »
Just download the DirectX SDK, and open the samples and test things out. The included documentation also helps you quite a bit when looking through the samples (start with the tutorials)
« Last Edit: November 05, 2011, 09:44:22 am by sammyMaX »

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: best way to learn C++?
« Reply #5 on: November 05, 2011, 09:46:46 am »
ok, thanks! I'll look into it after i learn c++ first tho
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: best way to learn C++?
« Reply #6 on: November 05, 2011, 10:33:02 am »
Just a forewarning, DirectX and OpenGL are highly complex libraries. You may want to start out with something like Ogre3D or the like to learn the basics of 3D Graphics.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: best way to learn C++?
« Reply #7 on: November 05, 2011, 11:19:24 am »
I also don't recommend DirectX because it's a Microsoft library that only works on Windows. OpenGL is a far better choice, due to having the same power and being cross-platform ;)

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: best way to learn C++?
« Reply #8 on: November 05, 2011, 11:21:29 am »
For a tutorial, I used LearnCpp.

For an IDE I used Visual Studio. Visual Studio works great if you are only going to develop for windows, if you are going to develop for other platforms, then code::blocks is probably your best bet. (Ha, now you can't yell at me)
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: best way to learn C++?
« Reply #9 on: November 05, 2011, 11:44:43 am »
For a tutorial, I used LearnCpp.

For an IDE I used Visual Studio. Visual Studio works great if you are only going to develop for windows, if you are going to develop for other platforms, then code::blocks is probably your best bet. (Ha, now you can't yell at me)

As soon as I saw you replied I thought "Brace yourself, he just recommend Visual Studio!". But this time you did it well.

Another advantage of Code::Blocks is if you use it on Windows, and then have to use Linux or Mac for something else, then you are accustomed to the IDE already ;)

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: best way to learn C++?
« Reply #10 on: November 05, 2011, 12:18:41 pm »
No troll, but, the best IDE ever is emacs or vlm.

Using all this kind of IDE makes you forget what you're doing.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: best way to learn C++?
« Reply #11 on: November 05, 2011, 12:35:26 pm »
Whatever you use, don't forget to ask questions here if you need help on something. :D (Answering C++ questions makes me feel useful here, lol) :P

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: best way to learn C++?
« Reply #12 on: November 05, 2011, 08:53:31 pm »
ephan, problem is, is that my friend is working on a game that uses direct x 9. Also i like direct x. A lot. lol

Ok another question:

how would I make a multi-core "hello world" program?

For example, I would want 1st core to print "Core 1 says Hello world!"
2nd core would print "Core 2 says hello world!"

and etc, all of which is printing out to the console (command prompt i thin)
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: best way to learn C++?
« Reply #13 on: November 05, 2011, 10:06:44 pm »
To do something like that, you would need to make multiple threads. I'm using Linux nowadays, so I would recommend the pthread library. I'm pretty sure VS has it, and I know Code Blocks has it. Just include pthread.h. Look on Wikipedia for some quick example code.
Also, you can't force the program to make a thread run on a specific core. You just have to trust that it will do it's job (the same goes for all threading libraries).
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: best way to learn C++?
« Reply #14 on: November 05, 2011, 10:12:21 pm »
Cplusplus is actually used by my high school.

And with more complex threading, you have to keep in mind certain timing issues, such as that sometimes (not usually) core 2 responds first, which could really screw with you in some situations.
« Last Edit: November 05, 2011, 10:16:04 pm by willrandship »