fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace bss1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18.  
  19. int[] dizi = new int[100];
  20.  
  21. private void button1_Click(object sender, EventArgs e)
  22. {
  23. Random rnd = new Random();
  24.  
  25. for (int i = 0; i <= dizi.Length-1; i++) {
  26. dizi[i] = rnd.Next(1,100);
  27. listBox1.Items.Add(dizi[i]);
  28. }
  29. }
  30.  
  31. private void button2_Click(object sender, EventArgs e)
  32. {
  33. for (int i = 0; i < dizi.Length; i++)
  34. {
  35. int j = i;
  36. for (int k = i + 1; k < dizi.Length; k++)
  37. {
  38. if (dizi[k] > dizi[i])
  39. j = k;
  40. int t = dizi[i]; dizi[i] = dizi[j]; dizi[j] = t;
  41. j = i;
  42. }
  43. }
  44.  
  45. for (int i = 0; i <= dizi.Length - 1; i++) {
  46. listBox2.Items.Add(dizi[i]);
  47. }
  48. }
  49. }
  50. }
  51.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(4,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(8,14): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty