gs
BAN USER- 0of 0 votes
AnswersI have to call a webservice and with that i need to send some data...how can i secure this soap call ?
- gs in United States| Report Duplicate | Flag | PURGE
- 0of 0 votes
Answersclass base{}
- gs in United States
class derived {}
main()
{
base b;
derived *d=dynamic_casr<base>&b;
}
it gives compiler error - because above inheritance is not polymorphic.
any reason why dynamic_cast, instead of returning 0 looks for polymorphic structure ?| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
AnswerWho initializes 'this' pointer ?
- gs in United States
is it initialized before constructor call?| Report Duplicate | Flag | PURGE
C++ - 0of 0 votes
Answerswhat is the difference between
- gs in United States
const int *i;
int const *i;
int *const i;| Report Duplicate | Flag | PURGE
- 0of 0 votes
Answers#include <iostream> using namespace std; class base{ public: virtual void func(int i,int j=10) { cout<<"base func"<<endl; } }; class der:public base { public: void func(int i,int j) { cout<<"der "<<j<<" func"<<endl; } }; int main() { der dd; base *bb = new der(); bb->func(10); dd.func(10,1); }
What is the output of this.
- gs in India| Report Duplicate | Flag | PURGE
C++
using stack:
- gs July 17, 2012PreOrder:
push root
while(stack != empty)
{
pop node
print node
if node->right
push node->right
if node->left
push node->left
}