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++;
}
}
Trash bin
Reasons:
When you remove a file from the hard drive it is still written in binary code. So, windows places files in the *trash bin* if you did not want to delete it.
Unless USB or Removable flash drive, when you delete that it does not place any files in the trash bin.
Answer: A process is independent if it cannot affect other process or be affected by it
Explanation:
Answer:
True
Explanation:
WLANs and WANs uses wireless networking to communicate within end devices in a network. Cable networks are restricted to only a fixed area or location like a building but wireless networking surpasses that problem of immobility. With a wireless network, users can connect and work with their own personal devices and can be in any location within the premises.
Wireless network is revolutionary, but it's disadvantages are quite problematic. An increasing wireless cluster can impede network allow. As a device is added to a network, it takes a bandwidth and a more is being add, more bandwidth are taken, choking the media.
A user has to be close to the AP for better transmission and wireless is susceptible to attackers.
Answer:
a. backdoor
backdoor (also called a trapdoor) is a programming routine built into a system by its designer or programmer. It enables the designer or programmer to bypass system security and sneak back into the system later to access programs or files.