Aggiunto le stampe per ogni scambio
This commit is contained in:
parent
46387e301a
commit
5cc389d27e
@ -93,7 +93,9 @@ class Program {
|
||||
}
|
||||
static void OrdinaArray(int[] p_array) {
|
||||
int k, temp;
|
||||
|
||||
StampaArray(p_array);
|
||||
Console.WriteLine();
|
||||
Console.WriteLine()
|
||||
for (int i = 0; i < dimensione; i++) {
|
||||
k = dimensione - i;
|
||||
do {
|
||||
@ -102,6 +104,10 @@ class Program {
|
||||
temp = p_array[k];
|
||||
p_array[k] = p_array[k - 1];
|
||||
p_array[k - 1] = temp;
|
||||
Console.WriteLine("Scambio. . .");
|
||||
StampaArray(p_array);
|
||||
Console.WriteLine();
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
k--;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -13,10 +13,10 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("insertion_sort")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c817978ad78c3196c23720330f72d79a29843579")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+46387e301aace7f9ae07f240ccfbb33b55dc459c")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("insertion_sort")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("insertion_sort")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
// Generato dalla classe WriteCodeFragment di MSBuild.
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
b5ba8fdce8a72d37bd1d20286034b268b3dace8a8a33aee089a01308b93f408b
|
||||
9d094c4ed538086011ee346b924ffd8342258f074db63a828f69695da46459b2
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user