January 13th, 2011, 02:28 PM
[RESOLVED] Help with increasing int!
int yCord = new int();
yCord = 0;
Console.WriteLine("(" + xCord + "," + yCord + ")");
Hey, I'm new to C-sharp and am having trouble with int's.
I want to increase the xCord by value of 1, every time 'north' is entered and the loop run again.
But with this current code, it stays at 1 no matter how many times the loop runs.
Thanks in advance
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.