• Complain

M Liyanage - Selected Topics in C++

Here you can read online M Liyanage - Selected Topics in C++ full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2015, publisher: CreateSpace Independent Publishing Platform, genre: Children. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

M Liyanage Selected Topics in C++
  • Book:
    Selected Topics in C++
  • Author:
  • Publisher:
    CreateSpace Independent Publishing Platform
  • Genre:
  • Year:
    2015
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Selected Topics in C++: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Selected Topics in C++" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

C++ is a language that sets itself a bit apart from the rest. C++ has no garbage collection. You need to collect your own garbage. C++ has stack memory and heap memory. You need to control where you want to put your objects. It has constructors and destructors. You need to know when and how they are called. Then it has multiple inheritance, something thats not part of most languages. It has pointers and references. You need to know how and when you should use them. Then you have virtual functions and virtual tables and virtual pointers. When you know these core concepts C++ becomes a powerful language to use because you can control your program to do exactly what you want. Then you can unleash the power of C++.

M Liyanage: author's other books


Who wrote Selected Topics in C++? Find out the surname, the name of the author of the book and a list of all author's works by series.

Selected Topics in C++ — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Selected Topics in C++" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make

Preface C++ started in the early 80s and after more than 30 years later, it is still one of the most used programming languages. This is so for a very good reason. Its not just the speed of C++ that makes it a popular choice. It is a very flexible and predictable language. You can be sure to have a constant performance with a C++ program. And this is achieved by being able to control a lot of aspects of the program.

C++ puts the programmer in the front seat. The programmer can take control of how things need to be run. Its predictable. There are no suprises. Most importantly, C++ lets you go very close to the low-level of the computer. Java. Java.

It is widely accepted that the speed of Java will match that of C++ in the best case, but not surpass it. But heres the caveat. To get the best performance of C++ you need to learn how to use it properly. Like I said, C++ puts the programmer in full control and it is our responsibility to control it properly. It is easy to write bad code with C++. But to write good, optimized code, you need to learn the core of it because unless you know what exactly is happening with your code, you cannot control it or optimize it.

Its often said that C++ is a difficult language to learn. Learning a programming language is not that difficult at all. Same goes for C++. It is not a difficult language. It becomes a difficult language when you dont know it properly. When you dont understand its core concepts it becomes difficult.

C++ has no garbage collection. You need to collect your own garbage. C++ has the concept of stack memory and heap memory. You need to control where you want to put your objects. It has constructors and destructors. You need to know when and how they are called.

Then it has multiple inheritance, something thats not part of most languages. It has pointers and references. You need to know how and when you should use them. Then you have virtual functions and virtual tables and virtual pointers. These are few of the important fundamentals of C++ that should have a firm grip on. Purpose of this book It is not difficult to get up and running with C++.

It is like any other language. But once you go through the basics of the language, classes, constructors, inheritance, conditionals, loops, etc., C++ will feel like most other high-level languages. But it can be a challenge to move on from there and to go from being a C++ beginner to an intermediate or advanced programmer. There are many core concepts of C++ and without knowing them you cant know the language in its fullest. You cannot write fast optimized code without knowing what happens during compilation or runtime. The aim of this book is to take C++ beginners to the next level.

To discuss the fundamental internals of the language so the beginners can fully understand what happens with their code. This book is divided in to 20 different topics which attempt to talk about the most used concepts of C++. Who this book is for This book is intended for beginner level C++ programmers. If you know about classes, inheritance, constructors and virtual functions, you are the intended audience of this book. Who this book is not for This book is not for programmers starting to learn C++ from the beginning. That is, this is not a Hello, World book.

This should be the book you read after that. Table of Contents Topic 1The size of an objectObjects are what makes the language Objected-Oriented, so they are at the core of C++. So its only natural we dedicate our first topic to learning about the size and composition of them. Lets start with the bare minimum, the empty class.The empty classWhats the definition of an empty class?class emptyClass{};So how exactly empty is the empty class? Well its pretty empty, but not nothing. Heres how empty an empty class is:#includeusing namespace std;class emptyClass{};int main ( int argc , char ** argv ){emptyClass emptyClassObj;cout << "Size of emptyClassObj: " << sizeof (emptyClassObj) << endl ;}Size of emptyClassObj: 1The size of a class with nothing in it is 1 byte. But why so? Why is a class object 1 byte when there is nothing in it? Because the standard does not let objects have a size of 0.

Again, why? This is because you need to be able to distinguish between two objects of the same class!Take a look at this:#includeusing namespace std;class emptyClass{};int main ( int argc , char ** argv

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Selected Topics in C++»

Look at similar books to Selected Topics in C++. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Selected Topics in C++»

Discussion, reviews of the book Selected Topics in C++ and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.