Back to BeeGuid Source

string fastModeConf(int nOfCin)
{
    string result;
    if (fastMode == false)                        //Usual stream
    {
        switch (nOfCin)
        {
        case 1:    //First mode - name of bee
        {
                  ::cout << " Type name here: ";
                  ::cin >> result;
                  return result;
                  break;
        }
        case 2:    //Second mode - type of gene
        {
                  ::cin >> result;
                  return result;
                  break;
        }
        case 3:    //Second mode - value of gene
        {
                    ::cout << " Enter the number of value: ";
                    ::cin >> result;
                    return result;
                    break;
        }
        default:
        {
                   ::cout << " Error out streaming";
                   return "0";
                   break;
        }
        }
    }
    else                                        //Fast stream
    {
        switch (nOfCin)
        {
        case 1:    //First mode - name of bee
        {
                    result = "Forest";
                    ::cout << " Fast Mode: " << result << endl;
                    fastMessage();
                    return result;
                    break;
        }
        case 2:    //Second mode - type of gene
        {
                  result = "2";
                  ::cout << " Fast Mode: " << result << endl;
                  fastMessage();
                  return result;
                  break;
        }
        case 3:    //Second mode - value of gene
        {
                    result = "1";
                    ::cout << " Fast Mode: " << result << endl;
                    fastMessage();
                    return result;
                    break;
        }
        default:
        {
                   ::cout << " Error out streaming";
                   return "n";
                   break;
        }
        }
    }
}

Опрос

Оцените мой сайт
Всего ответов: 55

Статистика



Онлайн всего: 1
Гостей: 1
Пользователей: 0



Radio