Answer:
See explaination
Explanation:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
const int SIZE = 50;
string phoneDirectory[SIZE];
int size=0;
string name; //name to look for
ifstream inFile;
inFile.open("phonebook");
while (!inFile.fail()) {
getline(inFile,phoneDirectory[size]);
size++;
}
inFile.close();
// Get a name or partial name to search for.
cout << "Enter a name or partial name to search for: ";
getline(cin, name);
cout << "\nHere are the results of the search: " << endl;
int numberEntriesFound = 0;
for (int k = 0; k < size; k++)
{
if (phoneDirectory[k].find(name.data(), 0) < phoneDirectory[k].length())
{
numberEntriesFound ++;
cout << phoneDirectory[k] << endl;
}
}
if (numberEntriesFound == 0)
cout << "\nNo Entries were found for " << name;
return 0;
}
The part of the computer that contains the brain is called the motherboard.
/ and swap
When you install Fedora Linux, the "/" and "swap" partitions are created by default. However, you can create additional partitions if you want. Here's a look at the minimum partitions you need for a Fedora Linux installation.
The "/" partition is the root partition. This is where the operating system is installed. The minimum size for this partition is 1 GB.
The "swap" partition is used for virtual memory. The minimum size for this partition is 2 GB.
You can create additional partitions for storage, but these are the minimum partitions you need for a Fedora Linux installation.
Learn more here:
brainly.com/question/13487450
#SPJ4
Answer:
Determine who might be harmed and how.