Thread: vector parameter

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    4

    Question vector parameter

    Trying to read a vector into a class but keep getting an error stating cannot pass parameter 1 into isanagram class.. What am I going wrong.. code below.

    #include <vector>
    using namespace std;
    class word
    {
    public:
    string isanagram(const vector& orig, int count)
    {
    // some code
    }
    };

    void main()
    {
    vector<string>file(10,1);
    word a;
    a.isanagram(file,10);
    }
    Last edited by tony1; 09-17-2001 at 10:00 AM.

Popular pages Recent additions subscribe to a feed