91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 126KB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發布日期: 2021-05-29
  • 語言: 其他
  • 標簽: 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?q_002
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????#region//全局變量
????????public?double[]?sz1;??//每一個軌枕實測值
????????public?double[]?data;//每一個軌枕設計坐標
????????public?double[]?sjzs;//10米弦設計正矢
????????public?int??zc;//導入數據總長
????????public?double[]?jsjg;//10米弦計算結果
????????public?double[]?jsjg30;//30米弦計算結果
????????public?double[]?jsjg300;//300米弦計算結果
????????public?double[]?sjzs30;//30米弦設計正矢
????????public?double[]?sjzs300;//300米弦設計正矢
????????public?bool?br1br2br3br4br5br6br7=?false;//判斷按鈕觸發,以生成文檔
????????#endregion
????????#region//實測數據
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????br1?=?true;
????????????double?pi?=?3.14158926;
????????????sz1?=?new?double[10002];
????????????double?d?f;
????????????int?a?=?3;
????????????for?(int?j?=?0;?j?????????????{
????????????????for?(int?i?=?1;?i?????????????????{

????????????????????d?=?a?*?Math.Sin(i?*?0.625?*?pi?/?100);
????????????????????f?=?670567.403?+?0.625?*(?i-1)?+?100?*?j;//需要注意起始值
????????????????????sz1[i+160*j??0]?=?f;
????????????????????sz1[i+160*j??1]?=?d;

????????????????????listBox1.Items.Add(sz1[i+160*j?0]?+?“???“?+?sz1[i+160*j?1]);
????????????????????if?(f?>?670997)
????????????????????{
????????????????????????break;
????????????????????}
????????????????}

????????????}
????????}
????????#endregion
????????#region//清除數據
????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????listBox1.Items.Clear();
????????????listBox2.Items.Clear();
????????????listBox3.Items.Clear();
????????????listBox4.Items.Clear();
????????}
????????#endregion
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{

????????}
????????#region//導入軌枕設計坐標
????????private?void?button3_Click(object?sender?EventArgs?e)
????????{
????????????openFileDialog1.InitialDirectory?=?“c:\\“;
????????????openFileDialog1.Filter?=?“文本文檔(*.txt)|*.txt“;
????????????openFileDialog1.FilterIndex?=?2;
????????????openFileDialog1.ShowHelp?=?true;
????????????openFileDialog1.title?=?“請打開數據“;
????????????openFileDialog1.ShowDialog();
????????????string[]?lines?=?System.IO.File.ReadAllLines(openFileDialog1.FileName);
????????????data?=?new?double[lines.Length?3];
????????????zc?=?lines.Length;
????????????for?(int?i?=?0;?i?????????????{
????????????????string[]?s?=?new?string[3];
????????????????s?=?lines[i].Split(‘‘);
????????????????for?(int?j?=?0;?j?????????????????{

????????????????????data[i?j]?=?Convert.ToDouble(s[j]);


????????????????}
????????????????listBox2.Items.Add(data[i?0].ToString()

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-05-12?11:18??平面平順性\
?????目錄???????????0??2017-05-11?20:03??平面平順性\q_002\
?????文件?????????857??2014-04-24?00:18??平面平順性\q_002.sln
?????文件???????22528??2015-06-16?13:07??平面平順性\q_002.suo
?????文件???????44544??2017-05-11?11:17??平面平順性\q_002.v11.suo
?????目錄???????????0??2017-05-11?20:03??平面平順性\q_002\bin\
?????目錄???????????0??2017-05-11?20:03??平面平順性\q_002\bin\Debug\
?????文件???????17920??2014-04-29?01:46??平面平順性\q_002\bin\Debug\q_002.exe
?????文件???????36352??2014-04-29?01:46??平面平順性\q_002\bin\Debug\q_002.pdb
?????文件???????22984??2017-05-11?10:39??平面平順性\q_002\bin\Debug\q_002.vshost.exe
?????文件?????????490??2013-03-18?17:00??平面平順性\q_002\bin\Debug\q_002.vshost.exe.manifest
?????文件?????????140??2014-04-27?23:55??平面平順性\q_002\bin\Debug\請保存數據
?????文件???????12807??2014-04-29?01:50??平面平順性\q_002\Form1.cs
?????文件???????14016??2014-04-29?01:03??平面平順性\q_002\Form1.Designer.cs
?????文件????????6224??2014-04-29?01:03??平面平順性\q_002\Form1.resx
?????目錄???????????0??2017-05-11?20:03??平面平順性\q_002\obj\
?????目錄???????????0??2017-05-11?20:03??平面平順性\q_002\obj\x86\
?????目錄???????????0??2017-05-11?20:03??平面平順性\q_002\obj\x86\Debug\
?????文件????????2867??2017-05-11?10:39??平面平順性\q_002\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????7302??2017-05-11?10:39??平面平順性\q_002\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件?????????344??2014-04-29?01:03??平面平順性\q_002\obj\x86\Debug\GenerateResource.read.1.tlog
?????文件?????????778??2014-04-29?01:03??平面平順性\q_002\obj\x86\Debug\GenerateResource.write.1.tlog
?????文件????????1583??2017-05-11?10:39??平面平順性\q_002\obj\x86\Debug\q_002.csproj.FileListAbsolute.txt
?????文件???????17920??2014-04-29?01:46??平面平順性\q_002\obj\x86\Debug\q_002.exe
?????文件?????????180??2014-04-29?01:03??平面平順性\q_002\obj\x86\Debug\q_002.Form1.resources
?????文件???????36352??2014-04-29?01:46??平面平順性\q_002\obj\x86\Debug\q_002.pdb
?????文件?????????180??2014-04-24?00:21??平面平順性\q_002\obj\x86\Debug\q_002.Properties.Resources.resources
?????文件????????7897??2014-04-24?14:41??平面平順性\q_002\obj\x86\Debug\ResolveAssemblyReference.cache
?????目錄???????????0??2014-04-29?16:08??平面平順性\q_002\obj\x86\Debug\TempPE\
?????文件?????????486??2014-04-24?00:18??平面平順性\q_002\Program.cs
?????目錄???????????0??2017-05-11?20:03??平面平順性\q_002\Properties\
............此處省略16個文件信息

評論

共有 條評論