Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Implement strcmp

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


Please Help Members By Posting Answers For Below Questions

What is the basic difference between C and C++?

1116


How to get the current position of the file pointer?

995


Differentiate between a pointer and a reference with respect to c++.

1206


Why is c++ still used?

1036


What is the type of 'this' pointer? When does it get created?

923


What are static variables?

1098


Can I uninstall microsoft c++ redistributable?

1062


what is the difference between overloading & overriding? give example.

1125


Is facebook written in c++?

964


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

1050


Show the declaration for a static function pointer.

1024


What is scope operator in c++?

1052


what is C++ objects?

1166


What is difference between class and function?

1050


Define a pdb file.

1038