• Forum
  • Jobs
  • Need help with c++ program, need to chec

 
Need help with c++ program, need to check if possible to create words out of letters given.

Need help finishing/doing an assignment in c++, where I write a class that automatically determine whether a set of street addresses is possible given the available letters. Needs to include the CIS class declaration.

Collection contains between 1 and 50 characters inclusive
Collection doesn't contain space character, ' '
Each character in the Collection will be an uppercase letter 'A'-'Z'or a digit '0'-'9'
Comparison doesn't include space ' '
address contains between 1 and 50 elements inclusive
Each address contains between 1 and 50 characters inclusive
Each character in each address will be an uppercase letter 'A'-'Z'or a digit '0'-'9'or a space ' '

class CIS {
public:
     int getPossibleAddress(string* Collection, string* address, int length){
}
};

int main()
{
    CIS cis;

    string letterInverntor="AAAABCCC123456789";
    string addresses[]={"123C","123A","123 ADA"};
    int length = sizeof(addresses)/sizeof(addresses[0]);
    //should output 2
    cout<<cis.getPossibleAddress(&Collection,address,length)<<endl;
    r
Last edited on
Hi sankir, I can help with you..please contact me.
cronopiomx@gmail.com
Topic archived. No new replies allowed.