main.cpp
/**
 * Custom function for check, that extension is exist.
 */
Custom function for check, that extension is exist.
Custom function for check that extension is exist .
bool ExtensionIsExist(std::string extension, std::string extensions[], int extensions_count) {
    bool isExist = false;
    int i = 0;
    while (!isExist && i < extensions_count) {
      if (extensions[i] == extension) {
        isExist = true;
      }
      i++;
    }
    return isExist;
}
bool ExtensionIsExist ( std :: string extension , std :: string extensions [ ] , int extensions_count ) { bool isExist = false ; int i = 0 ; while ( ! isExist && i < extensions_count ) { if ( extensions [ i ] == extension ) { isExist = true ; } i ++ ; } return isExist ; }
Custom function for check, that extension is exist.
Custom function for check that extension is exist .