Hello everyone,
I'm learning programming for the first time and my first book i bought from the book store is the new Deitel C++ 6th edition. After reading the first several chapters I got so overwhelm with the authors verbose; I went out and bought C++Primer. One thing I noticed is that Deitel creates class and member functions definitions: constructors, member function and data members, etc..outside main function. Then initialize and call class object and member function implementation in main.
On the other hand C++ Primer doesn't do it, they create and initialize everything under main function as one source code program.
So i was curious are there C++ standards or rules on the way to create object-oriented programs properly?
Deitel surely force C++ rules heavily throughout this book compare to Primer.