for(int i=0; i<s.Length; i++)
{
if (s == charVariableForCharLookingFor)
{
// grab the index or return true or whatever you need to do when you
find it.
}
}
for(int i=0; i<s.Length; i++)
{
if (s == charVariableForCharLookingFor)
{
// grab the index or return true or whatever you need to do when you
find it.
}
}
int intPosition = s.IndexOf(charVariableForCharLookingFor)
Patrick Altman said:
for(int i=0; i<s.Length; i++)
{
if (s == charVariableForCharLookingFor)
{
// grab the index or return true or whatever you need to do when you find
it.
}
}