New to programming my user name sums it all up!!!
trying to creat a DLL for a calculator (in C#) I'm told this code below will do the trick, but it doesn't build!! can anybody out there tell me why?
using System;
using System.Collections.Generic;
using System.Text;
namespace neilsuperDLL
{
public class calc
{
public float Calculate(float a, float b, int func)
{
float f;
switch(func)
{
case1:
f = a + b;
break;
case 2:
f = a - b;
break;
Case 3:
f = a * b;
break;
case 4:
f = a / b;
break;
default:
f =0.0F;
break;
}
return f;
}
}
}