I'm writing a program that makes a word ladder. A word latter is a path of getting from word A to word B. For example
head -> heal -> teal -> tell -> tall -> tail
In my main file, I'm supposed to pass in these command line arguments: file name of the .txt file that has the dictionary, a start word, a end word, and the number of steps allowed to get from a to b. I assumed you would just put the parameters on main, but its not working. I have
int main(int argc, char* argv[], string start, string end, int steps)
{
return 0;
}
When I try to compile, it gives me two warnings. The first one wants my strings to be char**. The second one says it takes only zero to two arguments.
How would I pass in a file name, two strings, and an integer from the command line?