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

Which is best ide for c++?

966


What is a pointer with example?

1153


Explain the advantages of using friend classes.

1089


What are the benefits of operator overloading?

1154


What is meaning of in c++?

1149


Difference between a copy constructor and an assignment operator.

934


Explain how a pointer to function can be declared in C++?

978


an integer constant must have atleast one a) character b) digit c) decimal point

980


What is type of 'this' pointer?

1007


What are c++ stream classes?

989


What is an accessor in c++?

1020


We use library functions in the program, in what form they are provided to the program?

1034


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2425


What is meant by a delegate?

1032


How do you clear a buffer in c++?

918