Copy String

Description:

Write a program to overload the == operator to perform copying of a string from one to another. Test Case 1 Input (stdin) hello Expected Output Copied String is:hello Test Case 2 Input (stdin) SrmUniversity Expected Output Copied String is:SrmUniversitysolution

Program :

#include <iostream>
#include<string.h>
using namespace std;
int main()
{
char s[50],t[50];
  cin>>s;
  strcpy(t,s);
  cout<<"Copied String is:"<<t;
 return 0;
}