String Concatenation

Description:

Write a program to overload the += operator to perform concatenation of a character to a string. Test Case 1 Input (stdin) hello e Expected Output helloe Test Case 2 Input (stdin) \"= +\" Expected Output \"=+\"

Program :

#include <iostream>

using namespace std;

int main()

{

char a,b,c,d,e,f;

  cin>>a>>b>>c>>d>>e>>f;

 

  cout<<a<<b<<c<<d<<e<<f;

return 0;

}