hi, i wants to ask some string problems, as below:
string []first
1 2 3 4 5
1 4 5
1 3 4 5
string second="2 3";
double sum=0;
foreach(string a in first)
{
if( ) // what should i write here?
{
sum++;
}
}
In program above, if string array first contains string second, sum will +1. How should i write the code?