I'm taking this course to learn C#, and hopefully pass the exams to get my MCPD cert'.
So my experience.. or rather lack of it, is substantial - I'm really at the basic stuff right now.
For some reason I can't for the life of me understand how to use (or manipulate) a (stored) variable.
For example; I declare a variable to hold an Integer/String (doesn't matter), call it whatever..
I want to set it by using ReadLine(), so in other words by using my keyboard.
Now, until now it's really simple to do for me, but when I use a loop to repeat the process several times - I want to be able to use everything I typed in.
This is where I fail, when I print out the variable that is used to receive my input, it just prints out the LAST word/number I put in, but I want to be able to take out everything I put in so far and then reformat it the way I want to, like add tabs between the words, for example.
I'm sorry if it sounds stupid, but I gotta start somewhere, and I'm really stuck on it.
Question
ylcard
I want to drown in novocaine :cry:
I'm taking this course to learn C#, and hopefully pass the exams to get my MCPD cert'.
So my experience.. or rather lack of it, is substantial - I'm really at the basic stuff right now.
For some reason I can't for the life of me understand how to use (or manipulate) a (stored) variable.
For example; I declare a variable to hold an Integer/String (doesn't matter), call it whatever..
I want to set it by using ReadLine(), so in other words by using my keyboard.
Now, until now it's really simple to do for me, but when I use a loop to repeat the process several times - I want to be able to use everything I typed in.
This is where I fail, when I print out the variable that is used to receive my input, it just prints out the LAST word/number I put in, but I want to be able to take out everything I put in so far and then reformat it the way I want to, like add tabs between the words, for example.
I'm sorry if it sounds stupid, but I gotta start somewhere, and I'm really stuck on it.
I appreciate the help !
Link to comment
Share on other sites
10 answers to this question
Recommended Posts