#include <iostream>
#include<string>
using namespace std;
int main()
{
string str1="Amusement Park";
string str2="going to";
string str3="the";
string str;
cout<<str2+''+str3+''+str1<<endl;
cout<<str1.length()<<endl;
cout<<str1.find('p')<<endl;
cout<<str1.subtr(1,5)<<endl;
str="ABCDEFGHIJK";
cout<<str<<endl;
cout<<str<<endl;
cout<<str.length()<<endl;
str[0]='a';
str[2]='d';
cout<<str<<endl;
return 0;
}
rizillion 0 Newbie Poster
Dave Sinkula 2,398 long time no c Team Colleague
neigyl_noval 2 Light Poster
ArkM 1,090 Postaholic
ArkM 1,090 Postaholic
rizillion 0 Newbie Poster
neigyl_noval 2 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.