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++;
}
}
Knowledge...- software QA engineer
Master’s...- business analyst
course...- network and computer admin
training...- multimedia artist
Answer:
The two best options can be processors like inlet i7 4.0 GHZ 8th generation processor, and two popular models are core and Pentium for inlet. Similarly for AMD we have 4 GHZ 8 core AMD processors. And two very popular examples are Athlon and Phenom.
You need to check the Graphics, clock speed etc. as well to end up with the best processor. Also make sure that it is motherboard compatible, and to the motherboard that you are having, If number of core is more and frequency is high, it means Processor is better, and same thing applies for generations as well.
Explanation:
The answer is self explanatory.
That is false. are you doing it on a computer course. <span />
Answer: NVRAM(Non-volatile random-access memory)
Explanation:Non-volatile random-access memory(NVRAM) is the memory that has a non-volatile nature.It is used for retaining of the data even when the system gets switched off .
This memory uses the power source from the CMOS battery for executing the functions. It is designed by using the pin configurations containing 24 pin in DIP(Dual inline package). So the situation mentioned in the question of storing the changes will appear in the NVRAM.