473,657 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Whats the best book for a beginner


I would like to learn to program in c++ on Linux and AIX
systems...mainl y 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 2475
Panama Red posted:

I would like to learn to program in c++ on Linux and AIX
systems...mainl y 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("H ello",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.merke rk(at)dse.nl

Jul 22 '05 #3
> I would like to learn to program in c++ on Linux and AIX
systems...mainl y 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 "Accelerate d 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.merke rk(at)dse.nl
Jul 22 '05 #4
Panama Red <co************ *********@yahoo .com> wrote in message news:<c6******* *****@ralph.hom elinux.net>...
I would like to learn to program in c++ on Linux and AIX
systems...mainl y 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
22008
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 is probably the best place to start...
2
5476
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 MS SQL Server 2000. I've been working with this company for six months now but I'm still not very good with SQL. I can do basic SQL queries and table joins (as well as use datetime functions and cursors), but I'd say I'm only at an...
11
9242
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
8
2371
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
1765
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
12551
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 found that the best rated is, among others, John Pollock, "JavaScript: A Beginner's Guide." I am not a big fan of the O'Reilly books, to be honest. I do know C and C++ but no Java, so would Pollock's book is the best starting place?
1
1292
by: wohjh | last post by:
best ASP.NET book for a beginner?
4
2656
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 rather complex without examples of compiling modules or making and using classes. Is there some C++ books that takes you through the whole process of making modules, compiling them and using classes?
10
6348
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 have a 7 years C++ background. i already chose 2 for components : - GDI+ Custom Controls with Visual C# 2005
0
8392
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8726
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7320
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1604
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.