资源简介
前方交会程序。使用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;
using System.IO;
namespace 前方交会
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void 获取数据_Click(object sender EventArgs e)
{
INput put = new INput();
put.Input(textBox1 textBox2 textBox3textBox4textBox5 textBox6 textBox7 textBox8 textBox9 textBox10 textBox11 textBox12 textBox13 textBox14 textBox15 textBox16 textBox17);
}
class INput
{
public void Input(TextBox textbox1 TextBox textbox2 TextBox textbox3 TextBox textbox4 TextBox textbox5 TextBox textbox6 TextBox textbox7 TextBox textbox8 TextBox textbox9 TextBox textbox10 TextBox textbox11 TextBox textbox12 TextBox textbox13 TextBox textbox14 TextBox textbox15 TextBox textbox16 TextBox textbox17)
{
double x1 x2 y1 y2 f;
double o1 o2 p1 p2 q1 q2;
double Xs1 Xs2 Ys1 Ys2 Zs1 Zs2;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.ShowDialog();
string MyFileName = openFileDialog1.FileName;
if (MyFileName.Trim() == ““)
return;
StreamReader sr = null;
sr = new StreamReader(MyFileName System.Text.Encoding.Default);
Xs1 = double.Parse(sr.ReadLine());
Ys1 = double.Parse(sr.ReadLine());
Zs1 = double.Parse(sr.ReadLine());
o1 = double.Parse(sr.ReadLine());
p1 = double.Parse(sr.ReadLine());
q1 = double.Parse(sr.ReadLine());
Xs2 = double.Parse(sr.ReadLine());
Ys2 = double.Parse(sr.ReadLine());
Zs2 = double.Parse(sr.ReadLine());
o2 = double.Parse(sr.ReadLine());
p2 = double.Parse(sr.ReadLine());
q2 = double.Parse(sr.ReadLine());
x1 = double.Parse(sr.ReadLine());
y1 = double.Parse(sr.ReadLine());
x2 = double.Parse(sr.ReadLine());
y2 = double.Parse(sr.ReadLine());
f = double.Parse(sr.ReadLine());
textbox1.Text = Xs1.ToString(“0.000000“);
textbox2.Text = Ys1.ToString(“0.000000“);
textbox3.Text = Zs1.ToString(“0.000000“);
textbox4.Text = o1.ToString(“0.000000“);
textbox5.Text = p1.ToString(“0.000000“);
textbox6.Text = q1.ToString(“0.000000“);
textbox7.Text = Xs2.ToString(“0.000000“);
textbox8.Text = Ys2.ToString(“0.000000“);
textbox9.Text = Zs2.ToString
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-11-22 15:51 前方交会程序\
目录 0 2014-11-23 09:23 前方交会程序\前方交会\
文件 878 2014-11-19 19:17 前方交会程序\前方交会.sln
文件 19456 2014-11-23 09:25 前方交会程序\前方交会.suo
目录 0 2014-11-23 09:23 前方交会程序\前方交会\bin\
目录 0 2014-11-23 09:24 前方交会程序\前方交会\bin\Debug\
文件 19968 2014-11-23 09:24 前方交会程序\前方交会\bin\Debug\前方交会.exe
文件 50688 2014-11-23 09:24 前方交会程序\前方交会\bin\Debug\前方交会.pdb
文件 11600 2014-11-23 09:25 前方交会程序\前方交会\bin\Debug\前方交会.vshost.exe
文件 12139 2014-11-23 09:25 前方交会程序\前方交会\Form1.cs
文件 22930 2014-11-23 09:24 前方交会程序\前方交会\Form1.Designer.cs
文件 5817 2014-11-23 09:24 前方交会程序\前方交会\Form1.resx
目录 0 2014-11-22 15:51 前方交会程序\前方交会\obj\
目录 0 2014-11-22 15:51 前方交会程序\前方交会\obj\x86\
目录 0 2014-11-23 09:24 前方交会程序\前方交会\obj\x86\Debug\
文件 4440 2014-11-19 20:46 前方交会程序\前方交会\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6377 2014-11-23 09:24 前方交会程序\前方交会\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 796 2014-11-23 09:24 前方交会程序\前方交会\obj\x86\Debug\GenerateResource.read.1.tlog
文件 3018 2014-11-23 09:24 前方交会程序\前方交会\obj\x86\Debug\GenerateResource.write.1.tlog
文件 7897 2014-11-19 21:15 前方交会程序\前方交会\obj\x86\Debug\ResolveAssemblyReference.cache
目录 0 2014-11-19 19:17 前方交会程序\前方交会\obj\x86\Debug\TempPE\
文件 2613 2014-11-23 09:25 前方交会程序\前方交会\obj\x86\Debug\前方交会.csproj.FileListAbsolute.txt
文件 19968 2014-11-23 09:24 前方交会程序\前方交会\obj\x86\Debug\前方交会.exe
文件 180 2014-11-23 09:24 前方交会程序\前方交会\obj\x86\Debug\前方交会.Form1.resources
文件 50688 2014-11-23 09:24 前方交会程序\前方交会\obj\x86\Debug\前方交会.pdb
文件 180 2014-11-23 09:24 前方交会程序\前方交会\obj\x86\Debug\前方交会.Properties.Resources.resources
文件 493 2014-11-19 19:17 前方交会程序\前方交会\Program.cs
目录 0 2014-11-22 15:51 前方交会程序\前方交会\Properties\
文件 1356 2014-11-19 19:17 前方交会程序\前方交会\Properties\AssemblyInfo.cs
文件 2875 2014-11-19 19:17 前方交会程序\前方交会\Properties\Resources.Designer.cs
文件 5612 2014-11-19 19:17 前方交会程序\前方交会\Properties\Resources.resx
............此处省略3个文件信息
评论
共有 条评论