Yea, hey. Gotsa question. It is as follows, well first off, I made this code just to maybe help you guys understand what i mean, caz i don't know how else to do it.
Code:
#include <iostream.h>

main()
{
	char value[5];
	for(int index=0; index<=5; index++)
	{
		cout<<"Enter a direction:\n";
		cin>>value[index];
	}
	if(value[0]=='g' && value[1]=='o' && value[2]=='l' && value[3]=='e' && value[4]=='f' && value[5]=='t')
	{
		cout<<"Works.";
	}
	else
	{
		cout<<"Still works...";
	}
	return 0;
}
That works, but what I want to do is say Enter a direction: and you can type as many things as you want (increase the size of the array, which i can do) and when you're done typing your direction you would simply press q for example, for quit, and it would exit the loop. What i would then like it to do, in place of
Code:
	if(value[0]=='g' && value[1]=='o' && value[2]=='l' && value[3]=='e' && value[4]=='f' && value[5]=='t')
i would like it to be something such as if(the entire array of value, reading from place 0 to the terminator=="goleft") then do blah...how would i go about this.