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.
AUPs often involves not going onto unauthorized sites or downloading certain content, not using the service to violate any law, and not connecting to unauthorized devices through the network.
<h3>What is AUP?</h3>
AUP stands for Acceptable Use Policy, which refers to a policy that regulates users when they access a corporate newtork.
<h3>How does an AUP regulates users?</h3>
Most AUPs imply:
- Users can only access certain sites and dowloading specific content is forbidden.
- The access to the internet or network cannot be used for criminal purposes.
- Only authorized users can connect to the corporate network.
Learn more about AUP in: brainly.com/question/9509517
#SPJ1
Answer:
To configure an Android phone to receive Yahoo email on the device, you would need to provide the:
full Yahoo email address and password.
Explanation:
The provision of your full Yahoo email address and password enables you to receive your Yahoo emails on the device. Most often, the device requests to save the information to enable it to notify you of incoming emails. There are settings for the provision of this notice. The user can also synchronize Yahoo emails on all the devices by selecting the Sync button.
<em>Answer:</em>
1.)OCCUPATIONAL
2.)POSTURE
<em>This is the answer thank youu!</em>♡︎♡︎
He should've paid more attention to his friends teasing him. It was an honest mistake and easy to do, we're all human.