
-----------------------------------
Panphobia
Sun Dec 02, 2012 2:36 am

Learning C++
-----------------------------------
I want to learn C++, and I have downloaded visual c++, but I don't really like it, is there another IDE that is also good, that you might enjoy but is supported by dwite?

-----------------------------------
Tony
Sun Dec 02, 2012 2:50 am

RE:Learning C++
-----------------------------------
anything that uses the g++ compiler.

-----------------------------------
Panphobia
Sun Dec 02, 2012 3:56 am

RE:Learning C++
-----------------------------------
Ahhh alright, thanks!

-----------------------------------
[Gandalf]
Sun Dec 02, 2012 1:28 pm

RE:Learning C++
-----------------------------------
Check out Eclipse with CDT (C Developer Tools).  It supports both C and C++ using gcc.

-----------------------------------
Panphobia
Fri Dec 07, 2012 6:31 pm

RE:Learning C++
-----------------------------------
I am trying to download MinGw and I have it downloaded but I can't compile code in c++, also i went did the environmental variables, that didnt help, also im trying to get a good IDE for c++ can you recommend one?

-----------------------------------
Insectoid
Fri Dec 07, 2012 6:35 pm

RE:Learning C++
-----------------------------------
Do you recognize the difference between an IDE and a compiler?

-----------------------------------
[Gandalf]
Fri Dec 07, 2012 6:36 pm

RE:Learning C++
-----------------------------------
How can't it compile C++ code? What errors are you getting?

And I did recommend a C++ IDE, Eclipse CDT:
http://www.eclipse.org/cdt/

-----------------------------------
Panphobia
Fri Dec 07, 2012 6:38 pm

RE:Learning C++
-----------------------------------
I got the cygwin for that Eclipse CDT, but I don't know what to do past that. I do not know how to make eclipse use that

-----------------------------------
[Gandalf]
Fri Dec 07, 2012 7:08 pm

RE:Learning C++
-----------------------------------
Try one of the options highlighted here:
http://lmgtfy.com/?q=how+to+make+eclipse+cdt+use+mingw

-----------------------------------
Panphobia
Fri Dec 07, 2012 7:52 pm

RE:Learning C++
-----------------------------------
I just got Ubuntu on my laptop, now is that better for Java/C/C++/Python?

-----------------------------------
Insectoid
Fri Dec 07, 2012 8:27 pm

RE:Learning C++
-----------------------------------
It certainly becomes a lot easier to install compilers & interpreters, though it isn't by any means better.

-----------------------------------
Panphobia
Fri Dec 07, 2012 8:38 pm

RE:Learning C++
-----------------------------------
I didnnt mean better, I meant easier to aquire compilers and IDE's?

-----------------------------------
Insectoid
Fri Dec 07, 2012 9:00 pm

RE:Learning C++
-----------------------------------
You really don't need an IDE. I find a lot of the features simply get in my way. You can program in notepad if you want. I write all my code in a text editor with line numbering and syntax highlighting. That's it. 

To get gcc in Ubuntu, just open up a terminal and type 'sudo apt-get gcc'. Then you're done.

-----------------------------------
Panphobia
Fri Dec 07, 2012 9:07 pm

RE:Learning C++
-----------------------------------
so if i got gcc and i started coding in text editor how would i save it as cpp, because there is no save as

-----------------------------------
Insectoid
Fri Dec 07, 2012 11:08 pm

RE:Learning C++
-----------------------------------
I dunno. What text editor are you using? Why don't you look it up on Google?

-----------------------------------
Panphobia
Fri Dec 07, 2012 11:09 pm

RE:Learning C++
-----------------------------------
thanks for helping, i know how to do it, all you gotta do is sudo gedit (name of prog).cpp

-----------------------------------
DemonWasp
Sat Dec 08, 2012 2:36 am

RE:Learning C++
-----------------------------------
I can't imagine any reason that you would need to use sudo to edit a .cpp file, especially any .cpp file you should be editing.

sudo is for when you're screwing with your system (installing updates, changing config files, etc. Do NOT use sudo unless you need sudo. Also, never run anything you don't trust with sudo.

You can just use: gedit (path), or open it through Nautilus (or whatever file browser), which will use your default text editor. Or, if you're already in a terminal, learn vim and use vim (path).

-----------------------------------
Panphobia
Sat Dec 08, 2012 1:41 pm

RE:Learning C++
-----------------------------------
but i can't save a program as .cpp on it it just has save, not save as lol

-----------------------------------
DemonWasp
Sat Dec 08, 2012 2:14 pm

RE:Learning C++
-----------------------------------
In Ubuntu's default desktop, the File menu is 'hidden' in the top menu bar. The design is unbelievably dumb, but rest assured there IS a Save-As. I took a screenshot: http://imgur.com/xOF7r

Move your mouse over the top bar, find the file menu, etc.

-----------------------------------
Panphobia
Sat Dec 08, 2012 2:26 pm

RE:Learning C++
-----------------------------------
oh alright thank you so much

-----------------------------------
Panphobia
Sat Dec 08, 2012 3:48 pm

RE:Learning C++
-----------------------------------
I think I have all the resources to code in c/c++/python, now that I have everything ready, I have to learn the actual lang, I have seen most of the tutorials on this section, seeing as c++ has very similar syntax to java it would be easy to learn the language right?

-----------------------------------
DemonWasp
Sat Dec 08, 2012 4:27 pm

RE:Learning C++
-----------------------------------
False. C++ is a vastly more complicated language. Java can be learned to a usable degree in a few days by individual study. C++ requires at least a book to learn adequately, and probably at least a month of study.

-----------------------------------
Panphobia
Sat Dec 08, 2012 4:30 pm

RE:Learning C++
-----------------------------------
oh ok, but i am not talking about learning the entire lang and such, I mean as much to use it not for complex games but for like dwite obviously, like what i would need are arrays/vectors/if statements/loops/strings/vars/reading/writing to a data file/queues/string manipulation etc..

-----------------------------------
[Gandalf]
Sat Dec 08, 2012 4:38 pm

Re: RE:Learning C++
-----------------------------------
I think I have all the resources to code in c/c++/python, now that I have everything ready, I have to learn the actual lang, I have seen most of the tutorials on this section, seeing as c++ has very similar syntax to java it would be easy to learn the language right?
Wrong.  C++, while superficially fairly similar to Java, is a completely different language in so many ways.  Don't be deceived into thinking you can just write Java code with a few small changes to make it C++.  If you learn from a good book or tutorial, this should become very apparent soon (i.e. once you start working with the STL, or once you get into any OOP).

-----------------------------------
Panphobia
Sat Dec 08, 2012 4:44 pm

RE:Learning C++
-----------------------------------
yea I can see a lot of different things in c++ than java. Is OOP really that different than Java? wow, so if I would say I know java and java functions relatively well, how long would it take to learn c++ to the same degree?

-----------------------------------
[Gandalf]
Sun Dec 09, 2012 12:37 am

Re: RE:Learning C++
-----------------------------------
yea I can see a lot of different things in c++ than java. Is OOP really that different than Java? wow, so if I would say I know java and java functions relatively well, how long would it take to learn c++ to the same degree?
That depends on countless things.  However, C++ is much more complex than Java.  I wouldn't say anyone has scratched the surface unless they've read a good book or very comprehensive walkthrough and worked with the language on at least one large project, but that's just my perspective.  Of course, that doesn't stop you from making simple or badly written C++ programs prior to that. ;)
