你好我的朋友我在C#写一个方法但是方法给我错误... [英] Hello My Friends I Write A Method In C# But The Method Give Me Error...

查看:53
本文介绍了你好我的朋友我在C#写一个方法但是方法给我错误...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

//my method
private void DrawTour() {
        g.Clear(Color.White);
            for (int index = 1; index <= numberCities; index++)
       {
       g.DrawEllipse(new Pen(Color.Red, 1), new Rectangle(Global.rawData[bestTour[index]]);
       g.DrawLine(new Pen(Color.Black, 1), Global.rawData[bestTour[index]], Global.rawData[bestTour[index + 1]]);
       }

//Error Message is :
//Error	1	) expected
// thanks your helps

推荐答案

g.DrawEllipse(new Pen(Color.Red,1),new Rectangle(Global.rawData [bestTour [index]]);



需要另一个


这篇关于你好我的朋友我在C#写一个方法但是方法给我错误...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆