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
What is the basic difference between C and C++?
How to get the current position of the file pointer?
Differentiate between a pointer and a reference with respect to c++.
Why is c++ still used?
What is the type of 'this' pointer? When does it get created?
What are static variables?
Can I uninstall microsoft c++ redistributable?
what is the difference between overloading & overriding? give example.
Is facebook written in c++?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
Show the declaration for a static function pointer.
What is scope operator in c++?
what is C++ objects?
What is difference between class and function?
Define a pdb file.