|
-
November 30th, 2011, 07:28 AM
#1
How to enter several numbers to array in one line?
I'm using Visual Studio 2010 and new to C#
I want to ask 5 different numbers from user to an int-array. Is it possible for user to enter all numbers in one line separated with space or comma?
Like "Enter 5 numbers:3,5,11,15,46" or "3 5 11 15 46"
I can code this by user entering each number in its own line and pressing enter between numbers but I was curious and thought could I do this in one line. 
Thanks for help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|