Description:
The object-oriented C++ language.
|
|
|
Depth of Recursion with parameters Vs Length of Iteration
|
| |
Hi, I m woking in Graph algorithms. I am facing some difficulties with very big graphs. when I am calling the recursive function with parameters the no. of calling recursive functions are less than without parameters before program is terminated with segmentation fault. what is the impact of argument in recursive function. I am passing vector as my argument.... more »
|
|
bridge design
|
| |
Consider: #include <iostream> struct data { char c ; int i ; // more stuff data () : c ( 0 ) , i ( 0 ) {} }; class bar { data dobj ; public : void set_bar ( data& d ) { dobj = d ; std::cout << dobj.i << std::endl; } void reset_bar () { dobj = data() ;... more »
|
|
Preventing implicit calling of non-explicit constructor.
|
| |
I have an application with a class "AppException" derived from std::exception. I have full control over the implementation of "AppException". I have two constructors like this: class AppException { public: ... AppException (const char *msg, ...); AppException (const std::exception &cause, const char *msg, ...);... more »
|
|
Confused about a thread-safe singleton example.
|
| |
I have a C++-specific question about thread-safe singleton instances. There's a trivial example here: [link] That goes like this, very simple and straightforward: static Mutex mutex; static TheClass *instance; static TheClass * getInstance () { MutexLocker lock(mutex);... more »
|
|
China Wholesaler of Bape hoodies,Bape clothes,Bape shoes,
|
| |
Welcome to [link], we are wholeselling famous brand sport shoes, jeans, handbags and clothing, such as NIKE, JORDON, AF1, Air max, Shox, Adidas, Puma, LV, Bape, Timberland, Prada, Lacoste,Gucci, etc.With our high quality and competition price, we have had hundreds of thoursands of consumer all over the world, if you are interested in... more »
|
|
www.honestaaa.com wholesal nike jordan adidas prada gucci bape shoes ugg boot
|
| |
Welcome to [link], we are wholeselling famous brand sport shoes, jeans, handbags and clothing, such as NIKE, JORDON, AF1, Air max, Shox, Adidas, Puma, LV, Bape, Timberland, Prada, Lacoste,Gucci, etc.With our high quality and competition price, we have had hundreds of thoursands of consumer all over the world, if you are interested in... more »
|
|
can a const pointer be deleted?
|
| |
Hi, In the std containers erase takes a const_iterator. I have my own container and there const_iterator is a const pointer to the item. I want to free the memory for the item on erase (i.e both destroy & deallocate). However deallocate function for allocator (and so delete, free etc) takes a pointer rather than... more »
|
|
Newb Question on Properties of Objects
|
| |
Hi, Please redirect me if this is the wrong group to post to- but, I'm starting a cpp project and have some questions about the capabilities of objects. Ironically, I'm away from my computer this week, so I'm programming by hand in a notebook. (I'm posting this from a library). If I had my computer I'd simply try out the things I"m wondering... more »
|
|
|