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
program explaining feautures of c++
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is #include iostream h in c++?
Describe new operator and delete operator?
what are the iterator and generic algorithms.
What are mutator methods in c++?
Is java easier than c++?
What happens when you make call 'delete this;'?
Show the declaration for a static function pointer.
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Explain about templates of C++.
What is stream and its types in c++?
Define token in c++.
Differentiate between a constructor and a destructor in c++.
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.