-fpermissive Message at compile

I need some help defining an error I am receiving. I'm not sure what this means.

error: extra qualification ‘MyHash::’ on member ‘MyHash’ [-fpermissive]
MyHash::MyHash():StringArray(ArSize)

Code is below:

#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>

using namespace std;

const int ArSize = 23;
class MyHash
{
public:
MyHash::MyHash():StringArray(ArSize)
{
for(i=0;i<ArSize;i++)
StringArray.at(i) = "0";
}

void hashinout(char firstlet, char lastlet, string srchword)
{
sum = (firstlet+lastlet)%23;
if (StringArray.at(sum) == "0")
StringArray.at(sum) = srchword;
else if (StringArray.at(sum) != "0")
{
do{
i = 0;
if (sum > 21)
sum = 0;
else
sum++;
if (StringArray.at(sum) == "0")
{
StringArray.at(sum) = srchword;
i++;
}
}while (i != 1) ;
}
}
void hashcheck(char firstlet, char lastlet, string srchword)
{
sum = (firstlet+lastlet)%23;
if (StringArray.at(sum) == "0")
cout<<srchword<<" is not in this list."<<endl;
else if (StringArray.at(sum) != "0")
if (StringArray.at(sum) == srchword)
cout<<srchword<<" was found at position #"<<sum+1<<" on list."<<endl;
else
{
check = 0;
do{
i = 0;
if (sum > 21 && check == 0)
{
sum = 0;
check = 1;
}
else
sum++;
if (sum > 21 && check == 1)
{
cout<<srchword<<" is not in this list."<<endl;
sum = 0;
i++;
}
if (StringArray.at(sum) == srchword)
{
cout<<srchword<<" was found at position #"<<sum+1<<" in list."<<endl;
i++;
}
}while (i != 1) ;
}
}

void display()
{
for(i=0;i<23;i++)
if (StringArray.at(i) == "0")
cout<<i+1<<". "<<"empty"<< endl;
else
cout<<i+1<<". "<<StringArray.at(i)<< endl;
}

private:
vector <string> StringArray;
int sum, i, check;
string srchword;
char firstlet, lastlet;
}
;


int main()
{
MyHash hash;
char firstletter,lastletter;
int length, i;
string word;

cout<<"Input 15 different words for the hashing program. ";
for (i=0;i<15;i++)
{
cout<<"?"<<i+1<<" ";
cin>>word;
firstletter = word.at(0);
length=word.length();
lastletter = word.at(length-1);
hash.hashinout(firstletter,lastletter,word);
}

hash.display();

cout<<endl;
cout<<"Enter a word to see if it is stored in the program."<<endl;
cout<<"When you are done enter '0'."<<endl;

do{

i =0;
cout<<"Enter word: ";
cin>>word;
if (word != "0")
{
firstletter = word.at(0);
length=word.length();
lastletter = word.at(length-1);
hash.hashcheck(firstletter,lastletter,word);
}
else
i++;

}while (i != 1);


}
1
2
3
4
5
6
7
8
9
class MyHash
{	
    public:
        // MyHash::MyHash():StringArray(ArSize)
        MyHash() : StringArray(ArSize)
        {
            // ...
        }
    // ... 
Thanks for the quick reply.
Topic archived. No new replies allowed.