Answer:
#include <iostream>
using namespace std;
class Str{ ///baseclass
public :
string super_str;
string getStr()
{
return super_str;
}
void setStr(string String)
{
super_str=String;
}
};
class str : public Str{ //inheriting Str publicly
public :
string sub_str;
string getstr()
{
return sub_str;
}
void setstr(string String)
{
sub_str=String;
}
bool notstartswith()
{
int n=sub_str.length(); //to find length of substr
bool flag=false;
for(int i=0;i<n;i++) //Loop to check beginning of Str
{
if(super_str[i]!=sub_str[i])
{
flag=true;
break;
}
}
return flag;
}
};
int main()
{
str s; //object of subclass
s.setStr("Helloworld");
s.setstr("Hey");
if(s.notstartswith()==1) //checking if str is substring of Str
cout<<"Str does not start with str";
else
cout<<"Str starts with str";
return 0;
}
OUTPUT :
Str does not start with str
Explanation:
Above program is implemented the way as mentioned. for loop is being used to check the beginning of the str starts with substring or not.
Yes Microsoft and Apple used the closed-source approach to better secure from malware and make to make their operating systems more user friendly.
A- overusing highlights lowers the contrast and degrads the effect of the highlights.
Poshmark is more than a shopping app. It is known to be a shopping applicationthat links a person to other people whose style one likes.
<h3>What is the aim of Poshmark?</h3>
Poshmark is known to be a shopping app that links a person to other people whose style one likes adore.
It is known to help one to easily shop for any of their closets and boutiques needs. They are known to have about 80 million community members in all of the U.S., Canada, and Australia.
learn more about Poshmark from
brainly.com/question/26258231
A video is a recording of a motion, or television program for playing through a television. A camcorder is a device or gadget that is used to record a video. audio is the sounds that we hear and mix media is a tool used to edit the video.