Zdravim
Vie mi niekto poradit s tymto programom:?
Kód:
using System;
class Program17
{
static void Main()
{
string mojePole = new int[3] { "Prajem","príjemný","den." };
foreach (string slovo in mojePole)
{
Console.WriteLine(slovo);
}
}
}
Vypisuje mi to tieto chyby:
Kód:
Error 1 Cannot convert type 'char' to 'string' C:\Documents and Settings\Administrator\Plocha\C#\program\Program13.cs 11 9 ConsoleApplication1
Error 2 Cannot implicitly convert type 'string' to 'int' C:\Documents and Settings\Administrator\Plocha\C#\program\Program13.cs 8 40 ConsoleApplication1
Error 3 Cannot implicitly convert type 'string' to 'int' C:\Documents and Settings\Administrator\Plocha\C#\program\Program13.cs 8 49 ConsoleApplication1
Error 4 Cannot implicitly convert type 'string' to 'int' C:\Documents and Settings\Administrator\Plocha\C#\program\Program13.cs 8 60 ConsoleApplication1
Diki za info