Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/08/2012, 00:01
echo_
 
Fecha de Ingreso: noviembre-2011
Ubicación: Paris
Mensajes: 450
Antigüedad: 12 años, 5 meses
Puntos: 7
ocupo una mano

buen dia a todos , quisiera saber por que me marca error este codigo y lo ejecuta bien pero ya que termina de hacer el ciclo me sale un error de windows.

Código PHP:
 string[] nombres = { "juan""palo""jaime" };

               for (
int i 0<= nombres.Lengthi++) {
                   
Console.WriteLine(nombres[i]);
               
               } 
y una pregunta para que me sirve esto =>{0} y el {1}

class Sample
{
public static void Main()
{
string str = "abcdefg";
Console.WriteLine("1) The length of '{0}' is {1}", str, str.Length);
Console.WriteLine("2) The length of '{0}' is {1}", "xyz", "xyz".Length);
}
}