Solution:NIIT/GNIIT Sonugiri0032@gmail.com

Wednesday, January 06, 2016

String Append Function in C++

String Append Function in C++

Structure of the Problem Requirements

Append Function is used to update the value of a variables, or files. Here we append two string and display the updated string.

Source Code

#include<iostream>
#include<string>
using namespace std;
int main ()
   {
   cout<<" \t \t \t \t  LEP \n \n \n  ";
   std::string name  ="LEP";
   std::string feedback ;
   cout<<" \n LEP stand For ? \n ";
   cin>>feedback;
   cout<<endl<<endl;
   cout<<" Thank You for Your Feedback! \n \n \n ";
   cout<<name.append(feedback)<<endl;
   
   }

Output of the Program

String Append Function in C++
Share:

0 comments:

GNIITSOLUTION GNIIT SOLUTION. Powered by Blogger.

Translate

Blog Archive

Unordered List