J
john bailo
Suppose
string in[], out[]
//both have three elements
foreach ( string str in in[] )
Console.Writeline( str );
writes all the strings in in[]
now i want to loop through both in and out using the same str counter in the
foreach.
how can i do this?
foreach (string str in in[] )
Console.WriteLine( str + " " + <here i want the corresponding out[]
elemement> );
string in[], out[]
//both have three elements
foreach ( string str in in[] )
Console.Writeline( str );
writes all the strings in in[]
now i want to loop through both in and out using the same str counter in the
foreach.
how can i do this?
foreach (string str in in[] )
Console.WriteLine( str + " " + <here i want the corresponding out[]
elemement> );