#include <iostream>
#include <string.h> // strlen()
#include <stdlib.h> // system()
char words[50] = "Knife Wrench Candlestick Rope Pipe Revolver";
char word[15];
char compare = ' ';
char input[15];
int main()
{
/*
Buffer words table into word until it meets a space, then compare it with the user input
*/
std::cin >> input;
int inc = 0;
for (int i = 0; i <= 43; i++){
if (words[i] != compare){
word[inc] = words[i];
inc++;
}
elseif (words[i] == compare){
inc = 0;
int len = strlen(word);
for (int x = 0; x <= len; x++){
word[x] = ' ';
}
}
}
std::cout << "\n";
system("Pause");
}