Answer: Denial of Service
Explanation:
the term is self-explanatory
Answer:
In C++:
#include<iostream>
#include<vector>
using namespace std;
int main() {
int len;
cout<<"Length: "; cin>>len;
string inpt;
vector<string> vect;
for(int i =0;i<len;i++){
cin>>inpt;
vect.push_back(inpt); }
char ch;
cout<<"Input char: "; cin>>ch;
for(int i =0;i<len;i++){
size_t found = vect.at(i).find(ch);
if (found != string::npos){
cout<<vect.at(i)<<" ";
i++;
}
}
return 0;
}
Explanation:
This declares the length of vector as integer
int len;
This prompts the user for length
cout<<"Length: "; cin>>len;
This declares input as string
string inpt;
This declares string vector
vector<string> vect;
The following iteration gets input into the vector
for(int i =0;i<len;i++){
cin>>inpt;
vect.push_back(inpt); }
This declares ch as character
char ch;
This prompts the user for character
cout<<"Input char: "; cin>>ch;
The following iterates through the vector
for(int i =0;i<len;i++){
This checks if vector element contains the character
size_t found = vect.at(i).find(ch);
If found:
if (found != string::npos){
Print out the vector element
cout<<vect.at(i)<<" ";
And move to the next vector element
i++;
}
}
I believe it’s the first answer
“They can be used in multiple places “
But I’m not sure!!
Answer:
A need
Explanation:
Daphne has no choice but to get a car and a house immediately, she relocates. Anything that is a choice and gives you the desire to acquire it, but cannot, due to one reason or the other, is a want. A need, on the hand, is something that Daphne should have to survive. She will need a car and a house to stay alive and will obviously not do anything without them. A home and a car are physical needs that can be touched or measured while aspects like happiness and good health are subjective needs that we need as humans to survive.
They are both IP packets; both TCP and UDP use IP as their basis. TCP is used to create a channel with flow control, UDP just sends single packets that may get lost.