标题:谁帮忙改一下呀!!!!!!!!!!!!!!!!!
取消只看楼主
wcp126
Rank: 1
等 级:等待验证会员
帖 子:95
专家分:7
注 册:2010-3-30
结帖率:90.91%
 问题点数:0 回复次数:2 
谁帮忙改一下呀!!!!!!!!!!!!!!!!!
using System;
public class bijiao
{
    private double[] a = new double[10];
    private double[] b = new double[10];

    public bijiao()
    {
        Console.WriteLine("请输入数组a的值");
        for (int i = 0; i <= 9; i++)
        {
            Console.WriteLine("a[" + i + "]=");
            a[i] = double.Parse(Console.ReadLine());
        }
        Console.WriteLine("请输入数组b的值");
        for (int k = 0; k <= 9; k++)
        {
            Console.WriteLine("b[" + k + "]=");
            b[k] = double.Parse(Console.ReadLine());
        }
      
    }
    void fangfa()
    {
        String str = "";
        if (a[i] == b[k])
        {
            str = string.Format("a[" + i + "]=b[" + k + "]={0}", a[i]);
            Console.WriteLine(str);
        }     
    }
  public static void Main()
    {
        bijiao b1 = new bijiao();
        b1.fangfa();
    }
}
搜索更多相关主题的帖子: private public double 
2010-04-05 16:36
wcp126
Rank: 1
等 级:等待验证会员
帖 子:95
专家分:7
注 册:2010-3-30
得分:0 
回复 4楼 chenkb730
没有结果呀 大哥!!!!!!!!
2010-04-05 17:16
wcp126
Rank: 1
等 级:等待验证会员
帖 子:95
专家分:7
注 册:2010-3-30
得分:0 
回复 2楼 qubo1982
谢了!!!!!!!!!!1
2010-04-05 17:20



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-301759-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.140000 second(s), 9 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved