PDA

View Full Version : [SOLVED] Im new on ubuntu help with cc+



Heroes96_1989
March 23rd, 2011, 11:21 PM
i wanna learn how to program with c++please guide me step by step
and if you really have plenty of time and could help me more ill donate you :p


thanks in advace

by the way
im a dee dee dee at the moment i just install ubuntu and read a whole lot of stuff

TeoBigusGeekus
March 24th, 2011, 12:07 AM
See this (http://ubuntuforums.org/showpost.php?p=1983565) post.

GregBrannon
March 24th, 2011, 12:08 AM
Step 1: review the stickies at the top of this page.

Come back and ask if you have more questions.

deconstrained
March 24th, 2011, 12:14 AM
OMG what year is this, 1997? Does Google exist yet?

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

Heroes96_1989
March 24th, 2011, 08:37 PM
i know it does exists but im trying to go in the right way
no need to be and idiot


thanks

Heroes96_1989
March 24th, 2011, 08:41 PM
thanks all of you i will do what u guys said will try :D

102jon
March 24th, 2011, 08:51 PM
i know it does exists but im trying to go in the right way
no need to be and idiot


thanks

exist*
I'm*
an*

lucasart
March 24th, 2011, 09:17 PM
i wanna learn how to program with c++please guide me step by step
and if you really have plenty of time and could help me more ill donate you :p


thanks in advace

by the way
im a dee dee dee at the moment i just install ubuntu and read a whole lot of stuff

The first thing to do is to master C, before learning C++. People who write C++ having no understanding of low level programming, pointers and the like, generally write bad code without understanding why it's bad.

My suggestion would be to start with C, and a very good book for that is the Kerninghan and Ritchie
http://cgip.inf.unideb.hu/eng/rtornai/Kernighan_Ritchie_Language_C.pdf

But if you are familiar with C, and want to learn C++, all I can say is that C++ is a very messy and complicated language, full of traps. There are some links on the stocky notes for that, otherwise just google for it, millions of people code in C++, so it's not hard to find a good book on the subject.

TeoBigusGeekus
March 25th, 2011, 02:29 PM
The first thing to do is to master C, before learning C++. People who write C++ having no understanding of low level programming, pointers and the like, generally write bad code without understanding why it's bad.

My suggestion would be to start with C, and a very good book for that is the Kerninghan and Ritchie
http://cgip.inf.unideb.hu/eng/rtornai/Kernighan_Ritchie_Language_C.pdf

But if you are familiar with C, and want to learn C++, all I can say is that C++ is a very messy and complicated language, full of traps. There are some links on the stocky notes for that, otherwise just google for it, millions of people code in C++, so it's not hard to find a good book on the subject.

+Infinity.

C++ is a crappy language: unless you're obliged to learn it (for work reasons) stay away from it.
C is the mother, aunt and grandmother of all modern languages; when all the pythons, C++s, C#s, perls,etc. seize to exist, C will still be here.

My only grunt is that K&R is not a book for beginners - read it after you've learnt C. A good book for beginners:
http://www.amazon.com/C-Programming-Modern-Approach-2nd/dp/0393979504

23dornot23d
March 25th, 2011, 06:40 PM
A link ... for a quick start ....

Producing something useful to build on - its old but it still works ok ..... LINK (http://www.clivecooper.co.uk/tutorial/index.html)

Hope its of some use ......... has a link to s C plusplus (http://www.cprogramming.com/code_blocks/) too ....

CodeBlock (http://www.codeblocks.org/) is useful its in Ubuntu repository and also too is QDevelop ......

unknownPoster
March 25th, 2011, 08:17 PM
C++ is a crappy language: unless you're obliged to learn it (for work reasons) stay away from it.


That's awfully objective advice you're giving. You should never discourage someone from trying to better themselves through self-education.

Perhaps you should attempt to offer constructive criticism.

cgroza
March 25th, 2011, 09:23 PM
+Infinity.

C++ is a crappy language: unless you're obliged to learn it (for work reasons) stay away from it.
C is the mother, aunt and grandmother of all modern languages; when all the pythons, C++s, C#s, perls,etc. seize to exist, C will still be here.

My only grunt is that K&R is not a book for beginners - read it after you've learnt C. A good book for beginners:
http://www.amazon.com/C-Programming-Modern-Approach-2nd/dp/0393979504

I really don't get why I see that many people saying this about C++. I like the language and it taught me a great deal of things that I am sure C could net do it (OOP comes to mind).

In the end, C++ is a better C.

TeoBigusGeekus
March 26th, 2011, 02:27 AM
Not much time, but my views can be summarized with this (http://www.phy.duke.edu/~rgb/Beowulf/c++_interview/c++_interview.html).

TeoBigusGeekus
March 26th, 2011, 02:28 AM
Not much time, but my views can be summarized with this (http://www.phy.duke.edu/~rgb/Beowulf/c++_interview/c++_interview.html).

PS: I wish I had the time for a flame war, but ....


That's awfully objective advice you're giving. You should never discourage someone from trying to better themselves through self-education.
I'm trying to save him/her the time it took me to realise that C++ isn't worth learning: all these endless months... who's gonna give me my life back? :P

cgroza
March 26th, 2011, 02:56 AM
Not much time, but my views can be summarized with this (http://www.phy.duke.edu/%7Ergb/Beowulf/c++_interview/c++_interview.html).
Is that thing a trusted source?

lucasart
March 26th, 2011, 10:37 AM
I really don't get why I see that many people saying this about C++. I like the language and it taught me a great deal of things that I am sure C could net do it (OOP comes to mind).
In the end, C++ is a better C.
This is a common misconception. OOP can perfectly be written in plain C. But constructing your code with classes everywhere when they're not appropriate makes it much more complex than it should be, and much less maintainable. Not even mentionning that when you compile your C++ code a few years later, you get tons of errors because the standard has deprecated this and modified that. In 30 years C will still be there and essentially unchanged. Which is not the case of any other programming language.

Enough of the theoretical debates. Can you show me an example of C++ code that you think C is incapable of doing ? I would be glad to code it in C to prove that point.

Have a look at this link, none other than Linus Torvaldes himself explains why he hates C++:

http://thread.gmane.org/gmane.comp.version-control.git/57643/focus=57918

Jonas thomas
March 26th, 2011, 03:35 PM
i wanna learn how to program with c++please guide me step by step
and if you really have plenty of time and could help me more ill donate you :p


thanks in advace

by the way
im a dee dee dee at the moment i just install ubuntu and read a whole lot of stuff

I'm sort of curious. What is the main reason that you want to learn to program in c++? Would this be your first programming language?
C++ has a lot of power under the hood. I'm not sure I would recommend it as a first programming language to learn.

CptPicard
March 26th, 2011, 03:48 PM
The first thing to do is to master C, before learning C++. People who write C++ having no understanding of low level programming, pointers and the like, generally write bad code without understanding why it's bad.

IMO C programmers who try to write C++ like they would write C tend to write bad C++. Proper, idiomatic C++ is a quite a language of its own, and if someone is starting from scratch, I'd avoid carrying over C habits into C++.

Pointers can be learned as you go along learning C++; in decent modern C++ you'll be preferring references and smart-pointers though...