I just figured out the answer to one of my previous questions but now I have a new problem, before I was just being a tad silly and forgot how to properly write a function but now my question is if I have the following function
int findMobile( string word, int dir )
how do I write the function declaration in the header file? If I keep it as
int findMobile (string, int); I get an error:
invalid conversion from int* to int but if I make it
int it compiles in code blocks but causes a seg fault. What is the proper way of doing this?