Posted: Fri Dec 07, 2012 11:09 pm Post subject: RE:Learning C++
thanks for helping, i know how to do it, all you gotta do is sudo gedit (name of prog).cpp
Sponsor Sponsor
DemonWasp
Posted: Sat Dec 08, 2012 2:36 am Post subject: 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
Posted: Sat Dec 08, 2012 1:41 pm Post subject: RE:Learning C++
but i can't save a program as .cpp on it it just has save, not save as lol
DemonWasp
Posted: Sat Dec 08, 2012 2:14 pm Post subject: 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
Posted: Sat Dec 08, 2012 2:26 pm Post subject: RE:Learning C++
oh alright thank you so much
Panphobia
Posted: Sat Dec 08, 2012 3:48 pm Post subject: 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
Posted: Sat Dec 08, 2012 4:27 pm Post subject: 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
Posted: Sat Dec 08, 2012 4:30 pm Post subject: 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..
Sponsor Sponsor
[Gandalf]
Posted: Sat Dec 08, 2012 4:38 pm Post subject: Re: RE:Learning C++
Panphobia @ 2012-12-08, 3:48 pm wrote:
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
Posted: Sat Dec 08, 2012 4:44 pm Post subject: 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]
Posted: Sun Dec 09, 2012 12:37 am Post subject: Re: RE:Learning C++
Panphobia @ 2012-12-08, 4:44 pm wrote:
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.