No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
Hi all, I have implemented overloaded function for operator new. In this function I have not allocated any memory still while exiting from program it is getting crashed. Code is as below: class A { public: int a; int b; A() { cout<<"Inside A::A()"<<endl; } void* operator new(size_t s) { … | |
Re: There will be a list<Soldier> inside Skill class. So every instance of the skill class will have the list of soldiers who are having that particular skill. Now for particular skill, Soldiers can be selected. | |
Re: Why do new developers want to use only C#, Java,.Net Programming Languages? Why C++ has become second preference to the developers? | |
hi, Through getter setter methods we can indirectly access private data members of the class as shown in the below code. Then what is the significance of encapsulation in OOPS concept. I am not getting the appropiate answer for that. Can anyone help me? Thanks in advance [CODE] #include<iostream> using … | |
hello I am new to DOM Parser. I tried alot to write a XML file but not getting any result. I want to create one xml file then create all the nodes at run time. I am using xerces C++. Please give me some code snippets if possible or suggest … | |
Re: Constructor is inbuilt in g++ compiler. when object is instantiated, compiler invokes it | |
hello everyone, My doubt is related to access specifier. There is one code snippet - [code=cplusplus] class Base { public: explicit Base(); static int object_count; protected: int id; }; class child: public Base { public: child(int val) : id(object_count++){} }; [/code] This code is giving compilation error that id is … |
The End.