Witam, mam poważny problem otóż już się pogubiłem :/
przerabiam ten kod aby działał on na C#
[img]http://i.imgur.com/PRDSaPo.png?1[/img]
mam taki kod i masę błędów :/ jakieś wskazówki ?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MinMaxRek
{
class Program
{
const int N = 8;
int[N] X = { 1, 4, 3, 2, 4, 9, 5, 7 };
void Minmaxreff(int lewy, int prawy,ref int index_min,ref int index_max);
static void Main(string[] args)
{
int min, max;
for (int i = 0; i < N; i++)
{
Console.WriteLine(X[i]);
Minmaxreff(0, N - 1, min, max);
}
}
}
}
}