C语言源码角度度到弧度转换
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
double x1, x2, y1, y2, dx, dy, s, a;
string m1, m2, m3, m4;
const double PI=3.1415926;
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show(this, "对不起,请输入X1", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);