Henry
New member
- Joined
- Nov 16, 2020
- Messages
- 1
- Programming Experience
- Beginner
I am getting the error
this is the code
please help!
C#:
mcs -out:main.exe main.cs
main.cs(30,32): error CS1525: Unexpected symbol `}'
main.cs(30,35): warning CS0642: Possible mistaken empty statement
main.cs(33,32): error CS1525: Unexpected symbol `}'
Compilation failed: 2 error(s), 1 warnings
compiler exit status 1
this is the code
C#:
public Grid(int Length, int Width)
{
length = Length;
width = Width;
int Xcount = 0;
for(length != 0, length -= 1;){
Ycount = 0;
for(width != 0, width -= 1;){
coordinatesList.Add(new Coordinates(Xcount, Ycount));
Console.WriteLine(Xcount, Ycount);
Ycount --;
}
Xcount ++;
}
}
please help!