It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I like C++ and follow its development.
While browsing I came across this link:
http://www.cplusplus-soup.com/2012/01/rich-pointers-frequently-asked.html
Can someone explain the concept of rich pointers in simple terms ?
At least as I read it, they're "tagged pointers". In other words, the pointer doesn't just carry the address of the item it points at, but has some associated metadata to tell what sort of thing the pointer is intended to point at.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Is there a reason why Qt decided to replace the . with ->? Is there a technical reason why we do:
ui->statusBar->setSizeGripEnabled(false);
instead of
ui.statusBar.setSizeGripEnabled(false);
?
This isn't a choice of Qt, but the way proper design in C++ works. -> dereferences a pointer to an object to access a member of it. Passing a pointer around tends to be the cleanest method of access to an object.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
The object in this case is a dictionary with some search methods. Only reading operations.
Quick answer: No.
Quite the opposite, it will speed up your program, especially if you have an object that needs to load a lot of data into memory.
Just make sure nothing can write to the object while the threads run.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am currently learning C++ and now understand things like classes and pointers, etc.
Anyone have an idea of what programs I should practice writing when teaching myself C++?
Try reading books that have exercises at the end of every chapter and try making them.
You can check Thinking in C++. The books are available online and they have exercises at the end of each chapter.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
How to call a function from a prototype in c++?
Any suggestions?
see example ...
http://msdn.microsoft.com/en-us/library/a5s9345t(v=vs.80).aspx
I would rather suggest you to get an introductory C++ book from this list and read it properly :
The Definitive C++ Book Guide and List
Then you'll know what you're asking. You need to study a book first, before asking such questions!
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
As you know, C++ allows multiple inheritance. But, would it be a good programming approach to use multiple inheritance or it should be avoided?
Thanks.
In general, it's not needed and can make your code more complex.
But there are cases where it's useful. As long as it's useful and isn't causing your code to become unmanageable, I see no reason to avoid it.