Projektdateien hinzufügen.
This commit is contained in:
31
CubeShapeCounting/Program.cs
Normal file
31
CubeShapeCounting/Program.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
namespace CubeShapeCounting {
|
||||
internal class Program {
|
||||
private int _numBlocks = 0;
|
||||
//private Dictionary<>();
|
||||
|
||||
public Program(int numBlocks) {
|
||||
this._numBlocks = numBlocks;
|
||||
}
|
||||
|
||||
public void Start() {
|
||||
|
||||
}
|
||||
|
||||
static void Main(string[] args) {
|
||||
if (args.Length != 1) {
|
||||
Console.WriteLine("Expected 1 argument");
|
||||
return;
|
||||
}
|
||||
int numBlocks;
|
||||
try {
|
||||
numBlocks = Int32.Parse(args[0]);
|
||||
}
|
||||
catch {
|
||||
Console.WriteLine("Cannot parse" + args[0] + "as an Int32.");
|
||||
return;
|
||||
}
|
||||
Program P = new Program(numBlocks);
|
||||
P.Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user