Estou com esse algoritmo e com um problema, La no método Main(Na parte "sampleClass1.combSort(); ") aparece o seguinte erro
Error
1
No overload for method 'combSort' takes 0 arguments
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication4
{
class Class1
{
public int[] combSort(int[] vetor)
{
// int[] vetor = new int[0];
int gap = vetor.Length;
bool swapped = true;
while (gap > 1 || swapped)
{
if (gap > 1)
{
gap = (int)(gap / 1.247330950103979);
}
int i = 0;
swapped = false;
while (i + gap < vetor.Length)
{
if (vetor[i].CompareTo(vetor[i + gap]) > 0)
{
int t = vetor[i];
vetor[i] = vetor[i + gap];
vetor[i + gap] = t;
swapped = true;
}
i++;
}
}
return vetor;
}
}
class Program
{
//Main is the entrypoint, where every C# program starts
static void Main(string[] args)
{
Class1 sampleClass1 = new Class1(); // Create an object
sampleClass1.combSort(); // Call a method
}
}
}
Alguém sabe o que posso fazer para resolver isso??