General Discussions

How do I go about coding in C++? – Goop2

goop2

Member

Posts: 1059
From:
Registered: 06-30-2004
How do I go about coding in C++? No im not thinking I can learn to ride a bike in 2 seconds I know it will be hard to learn, but I want to learn it and... I dont even know how to code with it. Is there a program to do it or something? What do i do?

------------------
------------------------

True = False
False = Goop
Goop = 2
2 = Goop2
Whish I knew what that meant...

Klumsy

Administrator

Posts: 1061
From: Port Angeles, WA, USA
Registered: 10-25-2001
what is your programming background, and what context do you wish to start in?

if not any background te best thing is get a simple IDe compiler that is very small, and quick with a debugger, and just make simple console programs following a book/tutorial

------------------
Karl /GODCENTRIC
Visionary Media
the creative submitted to the divine.
Husband of my amazing wife Aleshia
Klumsy@xtra.co.nz

goop2

Member

Posts: 1059
From:
Registered: 06-30-2004
Programing background? Context? I havent a clue. All I know is C++ is a code

------------------
------------------------

"Democrats stink"

Klumsy

Administrator

Posts: 1061
From: Port Angeles, WA, USA
Registered: 10-25-2001
what is your intended end use then of C++?
if you have no programming backgound, maybe try learning another language first, the learning curve is not so steep and less frutrating, learning another language WILL help you learn C++, because it gives you the concepts, plus if you learn a C based language such as Java then you have alot of the syntax and concepts..

------------------
Karl /GODCENTRIC
Visionary Media
the creative submitted to the divine.
Husband of my amazing wife Aleshia
Klumsy@xtra.co.nz

D-SIPL

Moderator

Posts: 1345
From: Maesteg, Wales
Registered: 07-21-2001
quote:
Originally posted by klumsy:
what is your intended end use then of C++?
if you have no programming backgound, maybe try learning another language first, the learning curve is not so steep and less frutrating, learning another language WILL help you learn C++, because it gives you the concepts, plus if you learn a C based language such as Java then you have alot of the syntax and concepts..



I couldn't agree more, i think i posted this in another thread. If you try and learn C++ first then you will more then likely end up just giving up. It's a steep learning curve. The best way to learn is doing some fun stuff. Try a language thats basic and learn the concepts of programming, you will get results quickly so you can start writing stuff that actually interests you.

--D-SIPL

------------------
If at first you don't succeed, destroy all evidence that suggests you tried

goop2

Member

Posts: 1059
From:
Registered: 06-30-2004
I figured I would work my way from Game Maker to it... Game Maker has a built in language but isnt as flexible as C. so I guess now the question would be.. How do I go about coding in java?

[This message has been edited by goop2 (edited August 23, 2004).]

d000hg
Member

Posts: 144
From: Durham, UK
Registered: 07-27-2004
I'm not sure you'd find java any easier than C++. There's a few nice features (like you can't request some memory from the computer and forget to give it back, using it all up) but in C++ is closer to how the computer actually works which to me makes it easier to visualise. C++ is MUCH faster than java and is the most widely used language which means more of a support base.
Klumsy

Administrator

Posts: 1061
From: Port Angeles, WA, USA
Registered: 10-25-2001
quote:

I'm not sure you'd find java any easier than C++. There's a few nice features (like you can't request some memory from the computer and forget to give it back, using it all up) but in C++ is closer to how the computer actually works which to me makes it easier to visualise. C++ is MUCH faster than java and is the most widely used language which means more of a support base.


that is very true, except the beginning of C++ is very different, and you have so many platforms etc, unless he is just wanting a text console to learn on, i'd go with something else.. I personally don't like java but its a language in an 'articial container' called a virtual machine, so if you get a good free IDE, and a good book, you'll be able to get a good start..
but maybe if you are into graphics, go the blitzbasic way as well.. or find a graphical programming enviroment that is based on C or some sort (as long as it has a good debugger)
if you want to go the plain C++ way.. i can email you a small free compiler that is only a few hundred KB wiht IDE and all (for making plain C++ stuff with input/output to a console.

------------------
Karl /GODCENTRIC
Visionary Media
the creative submitted to the divine.
Husband of my amazing wife Aleshia
Klumsy@xtra.co.nz

d000hg
Member

Posts: 144
From: Durham, UK
Registered: 07-27-2004
Good point - I'd not thought of the Windows side, which although not part of the language is pretty much essential knowledge. MFC makes it easier but for a beginner I'd think it would be very hard. Maybe learning console-based text apps 1st is the best way to abstract the language away from that stuff - a good approach for any language I'd say. Maybe Visual Basic would be good instead as a 'real language' - no offense to the BLitz supporters but it's not a 'serious' language in terms of industrial use I don't think? To be up to speed, learning a language as part of .NET would be advantageous, but I think learning just the language is a better option. You can learn BASIC, FORTRAN, C/C++ as platform-independant (and Java sort of).
Klumsy

Administrator

Posts: 1061
From: Port Angeles, WA, USA
Registered: 10-25-2001
if you were to go dotnet.. learning C# is a good option.. and there are .net binding for direct3d for C#, so you can learn a C style language (really nice language), learn windows UI style programming (an easy one to use compared to MFC) and make some games as well..

i think you can get visualstudio.net C# standard for about us$100, or actually the compiler is free, and there is a free IDE (enviroment to make your code) called SharpDevelop that is pretty good.

if you go the C# way, you'd have alot of help from me.. (with the language) but also on the graphics front.

here is a link to sharpdevelop, the free ide for C# development
http://www.icsharpcode.net/OpenSource/SD/Default.aspx

------------------
Karl /GODCENTRIC
Visionary Media
the creative submitted to the divine.
Husband of my amazing wife Aleshia
Klumsy@xtra.co.nz

[This message has been edited by klumsy (edited August 25, 2004).]

CobraA1

Member

Posts: 926
From: MN
Registered: 02-19-2001
I don't think C++ is quite that steep - basic console stuff is simple to create. The hardest part will probably be getting used to the way pointers work, and remembering to clean up your memory.

I've found Java to be a lot easier for stuff such as threading and GUI stuff than C++. Programs such as NetBeans even allow you to create a GUI visually, just like in Visual Basic. As far as speed goes, that depends a lot on the virtual machine you use: By switching to Sun's JVM from Microsoft's, I get a very noticeable speed improvement.
http://java.sun.com/

------------------
Reasoning with non-believers without encouraging them to read the Bible, I have found, is quite useless. God's word convinces - not our own reason.
--CobraA1

Switch Mayhem now available! Get it here
Codename: Roler - Writing object code and GUI.

goop2

Member

Posts: 1059
From:
Registered: 06-30-2004
I didnt want to spend any money on it (considering the fact that i cant)
but your offer is a very good one so ill pm you my e-mail and we can be... key-pals! (I like short paragraphs and long tutorials)

------------------
------------------------

"Democrats stink"