Commit f5341f69 authored by Michael's avatar Michael

michael.davityan:exercise_07_40v9

parent be452308
......@@ -33,18 +33,6 @@ inputVector(std::vector<T>& vector, const int sizeOfVector)
}
}
void
inputNumericVector(std::vector<char>& vector, const int sizeOfVector)
{
assert(sizeOfVector > 0);
if (::isatty(STDIN_FILENO)) {
std::cout << "word: ";
}
for (int index = 0; index < sizeOfVector; ++index) {
std::cin >> vector[index];
}
}
int
main()
{
......@@ -84,7 +72,7 @@ main()
return 1;
}
std::vector<char> charactersVector(charactersVectorSize);
inputNumericVector(charactersVector, charactersVectorSize);
inputVector(charactersVector, charactersVectorSize);
std::cout << "Minimum is: " << recursiveMinimum(charactersVector, charactersVectorSize - 2);
std::cout << std::endl;
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment