赞
踩
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using uniform;
-
- namespace uniform
- {
- public partial class Form1 : Form
- {
- int i, j; double x;
- Random rd = new Random();
-
- public Form1()
- {
- InitializeComponent();
- }
-
- private void button1_Click(object sender, EventArgs e)
- {
- textBox1.Clear();
- chart1.Series[0].Points.Clear();
- for (i=0;i<10;i++)
- {
- for(j=1;j<=5;j++)
- {
- x = rd.NextDouble();
- this.chart1.Series[0].Points.AddXY(i*5+j, x);
- textBox1.AppendText((i * 5 + j).ToString() + ":" + x.ToString("f8") + "\t\n");
-
- //this.chart2.Series[0].Points.AddXY(i * 5 + j, x);
-
- //Console.WriteLine(x);
- }
- }
- }
- }
- }

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。