JoBe 36 Posting Pro in Training

Yes i understand i need to use break; =P

So what if i make cho an integer? Then it would be 1 and not '1' correct?

>> - the labels must be literal characters.

I got a long way to go lol. Thanks in advance

Yep, like vmanes mentioned !

JoBe 36 Posting Pro in Training

- char cho ;

- After each case you have to use a break; , otherwise, the program will fall threw to each case that is presented.

- I guess you haven't shown all the code, seeing as you didn't use close braces for the do loop and main.

JoBe 36 Posting Pro in Training

1 is a number.

'1' is a character.

So, it depends on which of the two you are going to use.

JoBe 36 Posting Pro in Training

Great tutorial on pointers: Narue's Eternally Confuzzled (Click Here)

C++ dynamically allocating memory:

int *pMyInt = new int;

...

delete pMyInt;
JoBe 36 Posting Pro in Training

Show us what you have so far, it's much easier that way to help you!

JoBe 36 Posting Pro in Training

Do this

//Constructor
CBooks()[COLOR=Red]{}[/COLOR];

You hadn't defined the Constructor. Only declared it.

And remove the semicolon:

CBooks(){};
JoBe 36 Posting Pro in Training

Maybe better would be to take a look at the list of books Dave Sinkula has made:

With regard to C++ books, I'll just echo the advice here.


The following books are recommended; read them in mostly the order listed.
"Accelerated C++" Andrew Koenig & Barbara Moo
"The C++ Standard Library" Nicolai Josuttis --- a "must have"
"Effective C++", "More Effective C++", "Effective STL" Scott Meyers
"Exceptional C++", "More Exceptional C++" Herb Sutter
"The C++ Programming Language" 3rd edition or later Bjarne Stroustrup
"Modern C++ Design" Andrei Alexandrescu
"C++ Templates" Vandevoorde & Josuttis
"Standard C++ IOStreams and Locales" Langer & Kreft

Link towards Dave's thread with direct links to Amazon can be found here: Dave's List (Click Here)