473,385 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Whats the best book for a beginner


I would like to learn to program in c++ on Linux and AIX
systems...mainly socket and fifo type stuff. Can someone
recommend a book for someone with experience only with
Perl, shell, and Pick/Basic ?

Thanks
Jul 22 '05 #1
5 2465
Panama Red posted:

I would like to learn to program in c++ on Linux and AIX
systems...mainly socket and fifo type stuff. Can someone
recommend a book for someone with experience only with
Perl, shell, and Pick/Basic ?

Thanks

I started off with... uuuggghhh... Visual Basic, writing Windows programs.
That was about 5 years ago. I very quickly tired of that and then just
looked around and asked what's the best language. Having heard the arguments
for each, I quickly decided on C++. I've seen dozens of beginners books for
C++, but without a single doubt in my mind, _the_ best for _me_ was "C++ for
Dummies" by Steven R. Davis. I think the latest book is the 4th edition.
That book teaches you C++ pretty much inside out. After that, to really know
the language, all I did was go to the Microsoft MSDN site and view a list of
all of C++'s keywords. I clicked on the ones I didn't recognize, eg.
"explicit" "namespace", and learned about them all.

Once you've done that, I recommend you learn about the structure of a C++
program, ie. source-code files, header files, object files, the compiler,
the linker.

After that, you will truly understand C++ and probably like it very much!
After that, you can move onto platform-specific programming, eg. Linux,
Windows.
I myself then moved on to Win32 programming. You use the Win32API, which is
just a bunch of functions, to create Windows and the like, eg.:

int main(void)
{

CreateWindow("Hello",blah blah blah);
return 0;
}

Microsoft has very much tried to hijack C++. For example, they tell you that
a Windows program starts at "WinMain" as opposed to "main". When actually,
what happens is that your program starts at some other function that then
does a load of stuff and then finally calls the "WinMain" function you
wrote. There's articles written about this, but you're a couple of months
away from that(if you choose to do Windows programming!).
First thing, I suggest "C++ for Dummies", the latest edition by Steven R.
Davis!
-JKop
Jul 22 '05 #2
> Microsoft has very much tried to hijack C++. For example, they tell you
that
a Windows program starts at "WinMain" as opposed to "main". When actually, what happens is that your program starts at some other function that then
does a load of stuff and then finally calls the "WinMain" function you
wrote.


You can blame Microsoft for many things, but also on other (non-MS)
platforms a lot of things happen before the first line of the main()
function is executed. This is simply because it is needed to get a program
up and running.

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl

Jul 22 '05 #3
> I would like to learn to program in c++ on Linux and AIX
systems...mainly socket and fifo type stuff. Can someone
recommend a book for someone with experience only with
Perl, shell, and Pick/Basic ?


You might want to take a look at "Accelerated C++"
(http://www.acceleratedcpp.com/), which is by many people considered to be
one of the best beginners book for C++ for people with some programming
experience. If you are not able to or unwilling to spend money on a book
you may consider looking at "Thinking in C++" which is available online
(http://www.mindview.net/Books/TICPP/...gInCPP2e.html). For book
reviews go to: www.accu.org

A final note: the C++ language itself has no support for socket
programming. Consequently you won't find any mention of it in the books I
mentioned. For socket programming you need external libraries which are
platform specific (though there are libraries that support multiple
platforms like ACE; http://www.cs.wustl.edu/~schmidt/ACE.html). This group
only discusses the C++ language itself, so any questions about socket
programming or other platform specific services are off-topic here. I
recommend you keep a clear separation between what belongs to the C++
language on one side and the platform specific stuff on the other side.

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl
Jul 22 '05 #4
Panama Red <co*********************@yahoo.com> wrote in message news:<c6************@ralph.homelinux.net>...
I would like to learn to program in c++ on Linux and AIX
systems...mainly socket and fifo type stuff. Can someone
recommend a book for someone with experience only with
Perl, shell, and Pick/Basic ?

Thanks


There is a book from O'Reilly called something like "C++ for Embedded
systems", which is probably specific to the types of problems you want
to solve. However not having read it myself, I cannot really
recommend it .. only make you aware of its existence 8*).

For a general introduction to C++, I used "Practical C++ Programming"
(also from O'Reilly) by Steve Oualline ... it is woefully out of date
now, and predates the ISO C++ Standard, but it still IMO gives a good
introduction to the basics. It promotes a "walk-before-you-run"
philosophy and gives lots of clear explanation and general advice for
good programming practices. Also, there may be a more up-to-date book
from the same author.

Finally, FWIW I must say that I have never bought a book from O'Reilly
that I haven't found useful (usually extremely so), so if they now
have a book titled, "Learning C++", I would probably look hard at that
one.

HTH, Dave Moore
Jul 22 '05 #5

Thank you all for your suggestions.
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Smith | last post by:
I already know C/C++ programming and now wish to learn Python to do scripting for some games that are coming out. What book would you recommend. I am thinking Teach Your Self Python in 24 Hours...
2
by: jklimek | last post by:
In May of this year I graduated from Penn State with a BS in IST (Information Sciences and Technology). Right after graduation I got a database programming job with a company that uses Delphi 6 and...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
8
by: Grrrbau | last post by:
I'm a beginner. I'm looking for a good C++ book. Someone told me about Lafore's "Object-Oriented Programming in C++". What do you think? Grrrbau
13
by: John Salerno | last post by:
I'm interested in Programming Windows with C# (Core Reference) by Charles Petzold, but do you think that the new version of C# (along with .NET 2.0) will make this book obsolete in any way?
14
by: testcpp | last post by:
Hi experts, What's considered the best book to learn javascript? I searched this newsgroup but the postings are over five years old, so is there a good book to learn. I've searched Amazon and...
1
by: wohjh | last post by:
best ASP.NET book for a beginner?
4
by: Johs | last post by:
I am looking for a good C++ book for beginners. I have some experience with C and a lot of experience with Java. I am currently reading Bjarne Stroustrups C++ Programming Language but it starts off...
10
by: R.A.F. | last post by:
Hi, I work since few weeks with C#. NET 2005/2008 and I would like to complete my weak sides with a good book about C#. Could you advise me some which could start from beginner to expert ? I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.