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++;
}
}
Answer:
3
Explanation:
int(x)=3
int(x) rounds to the smallest whole number
For example,
if you say int(3.99) it is also 3
Either B or D those are the most reasonable answers if it were up to me to answer i would pick B but that is up to you go ahead and try your best i hope u have a nice day ✨✌️✨
Answer:
sarcasm , difficult
Explanation:
Sarcasm make it difficult to classify online content as positive ,negative or neutral because sarcasm content had many meaning and it involve some humor also which make it difficult weather to classify as positive or negative or neutral.
OSHA standards appear in the Code of Federal Regulations (CFR) <span>and was then broken down into two parts. It contains standards to ensure a </span>