Answer Posted / sanjith
#inclde<string.h>
int d;
class test
public: void read()
void cmb()
};
void test::read()
{ cout<<"Enter the first string:";
cin>>s1;
cout<<"Enter the second string";
cin>>s2;
}
void test::cmb()
{
d=strcmp(s1,s2);
}
main()
{
test t1,t2;
t1.read();
t2.cmb();
t2.print();
}
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Which is best ide for c++?
What is a pointer with example?
Explain the advantages of using friend classes.
What are the benefits of operator overloading?
What is meaning of in c++?
Difference between a copy constructor and an assignment operator.
Explain how a pointer to function can be declared in C++?
an integer constant must have atleast one a) character b) digit c) decimal point
What is type of 'this' pointer?
What are c++ stream classes?
What is an accessor in c++?
We use library functions in the program, in what form they are provided to the program?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What is meant by a delegate?
How do you clear a buffer in c++?