-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
43 lines (39 loc) · 1.19 KB
/
Program.cs
File metadata and controls
43 lines (39 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Diagnostics;
namespace HW3
{
class Program
{
static void Main(string[] args)
{
int rows = Int32.Parse(args[0]);
int cols = Int32.Parse(args[1]);
int nThreads = Int32.Parse(args[2]);
int nOperations = Int32.Parse(args[3]);
Simulator SIM = new Simulator(rows, cols, nThreads, nOperations);
//SharableSpreadaheet Sheet = new SharableSpreadaheet(3, 3);
//Sheet.setCell(1, 2, "Inbar Homo");
//Sheet.setCell(2, 2, "Inbar Lo Homo Aval Ulay");
//Sheet.exchangeRows(1, 2);
//Sheet.exchangeCols(1, 2);
//Sheet.save("sheet_t.dat");
//Sheet.setCell(1, 2, "TT");
////Sheet.load("sheet_t.dat");
//Sheet.setCell(1, 2, "Chen");
//var timer = new Stopwatch();
//timer.Start();
//Simulator SIM = new Simulator(3, 3, 2, 5);
//timer.Stop();
//TimeSpan taken = timer.Elapsed;
//Console.WriteLine(taken);
//Console.WriteLine("CHecl");
//SharableSpreadasheet Sheet = new SharableSpreadasheet(3, 3);
//Sheet.load("spreadsheet.dat");
//Sheet.addRow(4);
//Console.WriteLine("Check 2");
//Sheet.addRow(1);
//Console.WriteLine(Sheet.getCell(1, 2));
//Console.WriteLine(Sheet);public partial class Form1 : Form
}
}
}