bin/IDEAS_2018/IDEAS_APP/ideas.cpp
/*................................. Get Number of Buttons to be created.............................. */
Get Number of Buttons to be created
Get Number of Buttons to be created
int IDEAS::getButtonNumber()
{
    std::ifstream file("t.input");
    string firstWord;
    string a,b,c;
    file >> a >> b >> c;
    string word;
    int count = 0;
    file >> firstWord;
    while(!file.eof())
    {
        file >> word;
        if (word == firstWord)
            count++;
    }
    file.close();
    return count;
}
int IDEAS :: getButtonNumber ( ) { std :: ifstream file ( " " ) ; string firstWord ; string a , b , c ; file >> a >> b >> c ; string word ; int count = 0 ; file >> firstWord ; while ( ! file . eof ( ) ) { file >> word ; if ( word == firstWord ) count ++ ; } file . close ( ) ; return count ; }
................................. Get Number of Buttons to be created..............................
................................. Get Number of Buttons to be created ..............................