473,320 Members | 1,817 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,320 software developers and data experts.

a C++ "workbook"

Hi,

I am looking for a C++ programming "workbook"

I have learned some basic C++ OOP such as classes, inheritance,
polymorphism, virtual functions, encapsulation and all those la-la
terms... bascially from Bruce Eckel's and the Sams 21 days books.

I have done some programming for classes (like inheriting classes,
using protected, a little bit of templates) but I want to get sharpen
my on-the-terminal programming skills.

Would there be a good exercise book/ online material that would
through these exercises improve my programming skills ... I mean, I
know IN THEORY that virtual destructors are necessary in case of
dynamic object destruction (i.e. to destroy inherited objects (with
pointers) that have been created at run-time) but I haven't *really*
programmed that kind of stuff. Maybe just reproduced on my screen the
code from a book.

Would appreciate any suggestions from you guys on a "workbook" that
would start from the very basics like create a class .. then give
instances of where the protected keyword is most suited ...then delve
into better aspects of polymorphism, some good examples on virtual
functions --- WHAT i need now is hands-on programming with some
independant thought, not reading and writing the code that is given in
a book.

thanks in advance for your suggestions
Thanks.
Jul 22 '05 #1
4 3147

"mescaline" <ap*****@columbia.edu> wrote in message
news:e5**************************@posting.google.c om...
Hi,

I am looking for a C++ programming "workbook"


I think some exist, but it seems to me like you might not really need that.
I think what you really need is to do an actual project. If it were me, I'd
program something that you could actually find useful. 2 programs I wrote
for practice are a blackjack simulator (not a game, but a simulator. I told
it to play with various betting strategies, and then looked at how it paid
off after a million hands), and then a little windows app that calculated
postage for me. I need to mail a lot of things of different postage prices.
I told it what denominations of stamps I had, and it reported the best way
to make that total with the stamps I had while wasting the least amount of
money. I had to learn a little Windows programming for that. You'll find
that most of these projects need more than just plain C++. That will help
you decide what else you want to learn more about.
Jul 22 '05 #2
jeffc wrote:
"mescaline" <ap*****@columbia.edu> wrote in message
news:e5**************************@posting.google.c om...
Hi,

I am looking for a C++ programming "workbook"

I think some exist, but it seems to me like you might not really need that.
I think what you really need is to do an actual project. If it were me, I'd
program something that you could actually find useful. 2 programs I wrote
for practice are a blackjack simulator (not a game, but a simulator. I told
it to play with various betting strategies, and then looked at how it paid
off after a million hands), and then a little windows app that calculated
postage for me. I need to mail a lot of things of different postage prices.
I told it what denominations of stamps I had, and it reported the best way
to make that total with the stamps I had while wasting the least amount of
money. I had to learn a little Windows programming for that. You'll find
that most of these projects need more than just plain C++. That will help
you decide what else you want to learn more about.


Agreed. I still use little home-grown programs I wrote years ago,
including one that helps me balance my checkbook.

Try posting little bits of code here, and ask for advice. You'll be
quite amused to see the Holy Wars that break out over how your code can
be improved. :)

Jul 22 '05 #3
"jeffc" <no****@nowhere.com> wrote in message
news:40********@news1.prserv.net...

"mescaline" <ap*****@columbia.edu> wrote in message
news:e5**************************@posting.google.c om...
Hi,

I am looking for a C++ programming "workbook"
I think some exist, but it seems to me like you might not really need

that. I think what you really need is to do an actual project. If it were me, I'd program something that you could actually find useful. 2 programs I wrote
for practice are a blackjack simulator (not a game, but a simulator. I told it to play with various betting strategies, and then looked at how it paid
off after a million hands), and then a little windows app that calculated
postage for me. I need to mail a lot of things of different postage prices. I told it what denominations of stamps I had, and it reported the best way
to make that total with the stamps I had while wasting the least amount of
money. I had to learn a little Windows programming for that. You'll find
that most of these projects need more than just plain C++. That will help
you decide what else you want to learn more about.

Yup I agree too, what you need is a simple idea in your head.. like a board
game maybe, and hack it out. maybe program a lot of the idea for command
line output, then when you fancy teaching yourself a bit about GUI, look
into that and build up on your program.
Jul 22 '05 #4
* Thus spoke mescaline <ap*****@columbia.edu>:

Hallo,
I am looking for a C++ programming "workbook" [...] Would appreciate any suggestions from you guys on a "workbook" that
would start from the very basics like create a class .. then give
instances of where the protected keyword is most suited ...then delve
into better aspects of polymorphism, some good examples on virtual
functions --- WHAT i need now is hands-on programming with some
independant thought, not reading and writing the code that is given in
a book.


This is not exactly what you asked for, but you may like the following books:

o Effective C++, Scott Meyers
o More Effective C++, Scott Meyers
o Effective STL, Scott Meyers
o Exceptional C++, Herb Sutter
o More Exceptional C++, Herb Sutter
o The C++ Standard Library, Josuttis

Besides starting an interesting new project on your own, have a look at
open source projects that are looking for you! ;-)

o <http://www.sourceforge.net/>
o <http://savannah.gnu.org/>
Wolfgang.
--
"Erfahrungen -- das sind die vernarbten Wunden unserer Dummheit."
-- John Osborne
Jul 22 '05 #5

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

Similar topics

5
by: Geert-Pieter Hof | last post by:
Hello, I have written an application in Visual Basic 6.0 Professional SP5 that reads data from an Excel workbook by using ADO. When I close the application, I get the error: 'The instruction...
16
by: Andrew Baker | last post by:
I am trying to write a function which provides my users with a file filter. The filter used to work just using the VB "Like" comparision, but I can't find the equivilant in C#. I looked at...
5
by: KC | last post by:
Hi, I have code similar to this.. Dim xlApp As Object xlApp = CreateObject("Excel.Application", "\\MyServer") The call is from a asp.net (Intranet) application. \\Myserver is a network...
2
by: xhenxhe | last post by:
I don't some Excel automation. I've created a program that opens and Excel template and inputs information to it. It runs great on my machine. When I build and deploy I have a user that keep...
0
by: Microsoft | last post by:
I have a porgram that opens an excel workbook and modifies some data, but almost randomly a box will pop up in the workbook telling me the file is now available and to hit ok or cancel. This...
8
by: John Brock | last post by:
I am creating an Excel workbook using VB.NET, and have run into a problem. Excel at times insists on reformatting data that I enter into cells, e.g., converting "01234" to "1234", and this screws...
0
by: OutdoorGuy | last post by:
Greetings, I have the code below where I am instantiating Excel and then attempting to the save the new workbook (as "Test.xls"). However, on the line of code that attempts to save the...
2
by: martin-g | last post by:
Hi. When the user opens the Excel file, which is at the same time used by my application, it stops calculations and throws an exception with such information: "The object invoked has...
5
by: Aneesh Pulukkul[MCSD.Net] | last post by:
How to convert a "Non Serializable" object to byte array. The object is a dynamically created Excel workbook. As per my understanding an object can be written and read from a stream Only if it's...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.