Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
DamithSL 13-Dec-14 21:56pm    
) expected, error message clearly say what is missing.

1 solution

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

Needs another ) .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900