TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
JOel Adams
NA
3
1.9k
C# convert string to multi-dimensional array help!
Oct 1 2011 4:17 PM
Hi,
I'm having trouble converting a string to multi dimensional array
My string is:
String test = "1,1,1,1,2,3,45,34,1,2,4,2,1,2,3,4,5,6";
How would I manage to get it like this:
int testing = {
{1,1,1,1,2,3}, //x = 6
{45,34,1,2,4,2}, //x = 6
{1,2,3,4,5,6} //x = 6
};
Not sure how to do this in C#. The String will change but i still want the length of X to be 6.
Thanks.
Reply
Answers (
2
)
If statement
why does this not work:(