Some ease code to study

34 views
Skip to first unread message

Chrish

unread,
Feb 10, 2010, 12:49:15 AM2/10/10
to PPP-public
I am starting to get along in the book and am really enjoying it so
far. It is a challenge, but rewarding when I can do the exercises at
the end of the chapters. I am completely new to programming and don't
know about many of the resources available. Is there a depository of
code that is available that I could look at to reinforce what I am
learning? For example I just learned about switch, if, while, vector,
and function. Is there any code that I could look at that are easy
examples of these? Thanks for all the help so far!

Adrian G. Mowrey

unread,
Feb 10, 2010, 1:02:32 AM2/10/10
to ppp-p...@googlegroups.com
I'm pretty sure there is, although I'm not familiar with any of them. What I would recommend you to do is try to think of real-world problems in which you would use those (if, if-else, if-else if-else, switch, vector, functions, etc.). You can build certain toy programs that will use those a lot. That's the only way you're going to truly understand them, not that you haven't understood them already. It's nice to think of certain things of where you could use them just to gain experience with what you're studying, etc. I also recommend you to get the Accelerated C++ and The C++ Programming Language Special Edition. They are also recommended by Dr. Bjarne Stroustrup, but the reason I say is that those books themselves have lots of other great and challenging exercises in them, so you can practice your knowledge on concrete examples and not lose time to search the Internet inside-out for examples, etc. Do you understand?

Good luck with your programming. ;)


--
You received this message because you are subscribed to the Google Groups "PPP-public" group.
To post to this group, send email to ppp-p...@googlegroups.com.
To unsubscribe from this group, send email to ppp-public+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ppp-public?hl=en.




--
Best regards,

Adrian G. Mowrey

Chrish

unread,
Feb 10, 2010, 2:57:25 PM2/10/10
to PPP-public
Thank you for your reply. Are the two books you mentioned suitable for
a beginner such as myself? At the moment I find the excercises in the
book up to the task of making me apply what I learn. The reasons I
would like to look at code from somone who is experienced is they will
provide me with examples of clean code as opposed the ugly code I am
no doubt writing and I would like to know if I am approaching the
solution correctly. Thank you again for the advice.

On Feb 10, 12:02 am, "Adrian G. Mowrey" <adrian.mow...@gmail.com>
wrote:

> > ppp-public+...@googlegroups.com<ppp-public%2Bunsubscribe@googlegrou­ps.com>


> > .
> > For more options, visit this group at
> >http://groups.google.com/group/ppp-public?hl=en.
>
> --
> Best regards,
>

> Adrian G. Mowrey- Hide quoted text -
>
> - Show quoted text -

Adrian G. Mowrey

unread,
Feb 10, 2010, 3:27:30 PM2/10/10
to ppp-p...@googlegroups.com
Well, I believe you can handle "Accelerated C++" and then move on to the "The C++ Programming Language Special Edition" book. Programming Principles and Practice Using C++ isn't teaching you C++, it only teaches you the principles and practice of programming, and in this case Dr. Bjarne Stroustrup decided to use the C++ programming language to explain the principles and practice of programming that he is trying to get out to programmers in general (mostly beginners, although it's suitable for someone who has experience in this field too). 

Later on you'll find out that you won't be able to solve the exercises because you don't have a detailed understanding of the C++ programming language, so you'll need to find a book that will teach you C++ for you to be able to focus on solving programming problems. Do you understand? Just like Dr. Bjarne Stroustrup states, he wants you to look out for the information needed from time to time in order to solve the different exercises he is asking for in the book (PPP Using C++). C++ Primer Plus for example, it is a book that focuses on the C++ language. Accelerated C++ does the same way, and The C++ Programming Language explains all the features of C++. I personally prefer Accelerated C++ over C++ Primer Plus, but that's just a personal preference. In other words, you'll need some book or books that will teach you C++ and then focus on solving problems, etc. It's pretty much like trying to write essays without actually knowing any human language really well, or maybe just a few words, etc. The particular essay you're trying to write might happen, although it will be very poorly written because of the basic and few words that you know. The vast your vocabulary is, the better and easier it will be for you to write that essay. Everything translates to programming and programming languages. Programming is the way you do things or what you're doing, and you use the programming language to put everything in practice. I'm sure many will disagree with what I say, but this is how it goes in real life. A lot of students try to learn several languages, which can be very painful in the end. The language doesn't matter a whole lot. If you learn C++, you'll definitely have no problems grasping other languages, but it's very important to become as complex as possible in C++ or that language that you're trying to learn. Data Structures, Algorithms, etc., if you learn all of these to do with C++ let's say, you'll have absolutely no problem doing it with C#, Java, and other languages afterwards.

Good luck, and let me know if you have any questions relating anything I said to you. ;)

To unsubscribe from this group, send email to ppp-public+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/ppp-public?hl=en.

Chrish

unread,
Feb 10, 2010, 10:47:34 PM2/10/10
to PPP-public
Thank you again for the input I'm going to amazon now.

On Feb 10, 2:27 pm, "Adrian G. Mowrey" <adrian.mow...@gmail.com>

bjarne

unread,
Mar 27, 2010, 6:24:26 PM3/27/10
to PPP-public

For starters, the support site for PPP www.stroustrup.com/Programming
contains all the code from the book and selected exercise solutions. I
suspect that real-world code is too tough at this stage.

Reply all
Reply to author
Forward
0 new messages