c#和VB.net问提(急)

来源:百度知道 编辑:UC知道 时间:2024/05/21 16:26:38
这样用c#或VB.net实现
1。在textBox1控件中输入一个数
2。在textBox2控件中输入任意多个数用“-”隔开
3。把大于textBox1控件中的数从小到大进行排序在textBox3控件中(数与数用“-”隔开)
4。把小于textBox1控件中的数从小到大进行排序并放在大于textBox1控件中的数的排序的后面(数与数用“-”隔开)
谢谢那位大哥帮帮我,我才学,点都不懂
如果可以请解释每步好不

在把textBox3控件中第1个与第2个,第2个与第3个,第3个与第4,第4个与第5个.......(也就是相邻2个数)个的所有数相减取绝对值,把所有绝对值相加除以textBox3中数的个数

最好告诉QQ号吗,我想在以后学习中请教一下你们
我的QQ是43206810
谢谢
想问问你们学习时用的什么资料
我没钱买书就只好在网上找了,但是看不懂

/*
*楼主可以copy过去运行...主要的代码都在比较下面,这里发了
*排版都破坏了 真郁闷
*/
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace WindowsApplication1
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox txt1;
private System.Windows.Forms.TextBox txt2;
private System.Windows.Forms.TextBox txtXiao;
private System.Windows.Forms.Button btnJiSuan;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
/// <summary>
/// 必需的设计器变量