《Visual c 程序》课程设计报告.pptxVIP

  • 1
  • 0
  • 约2.14千字
  • 约 36页
  • 2021-01-13 发布于广东
  • 举报
1;;;;;;a = Math.Atan(c1.Image / c1.Real) - Math.Atan(c2.Image / c2.Real); c.Real = r * Math.Cos(a); c.Image = r * Math.Sin(a); return c; } } class Program { static void Main(string[] args) { Complex c = new Complex(), c1 = new Complex(), c2 = new Complex(); c1.Real = 1; c1.Image = 2; c2.Real = 3; c2.Image = 4; Console.WriteLine(c1= +c1.Real.ToString() + + + c1.Image.ToString() + i); Console.WriteLine(c2= + c2.Real.ToString() + + + c2.Image.ToString() + i); Console.WriteLine(); c = c1 + c2; Console.WriteLine(c.Real.ToString() + + + c.Image.ToString() + i); c = c1 - c2; Console.Writ

文档评论(0)

1亿VIP精品文档

相关文档