I'm currently learning programming in C# and i don't know a lot. I have just the basic knowledge about this program, so when you're answering i would be very grateful if you explain to me the code in details.
Let's take the letter 'a'. I want to make the letter move to the right 1 time every 2 seconds using the For loop. To make it work 2 seconds i use the code: System.Threading.Thread.Sleep(TimeSpan.FromSeconds(2));
This code will be included inside the loop.
My problem is, i don't know to replace the 'a' with a 'space' and that after the space, the letter 'a' will show up.
Something like this:
a
After 2 seconds, i want the 'a' to move to the right like this:
a
I'm searching for a code that could replace the letter with a 'space' and add the letter 'a' after the space. The code should run 10 times in the For loop, making the letter move to the right 10 times. Please notice, i don't want to erase the whole output, only the letter 'a'.
I really don't know how to explain my question better then this. Thanks in advance.
edit : I am using Microsoft Visual C# 2010 Express. Console Application.
static void Main(string[] args)
(might help)