如何将字符串拆分为三维数组 [英] how to split a string into three dimensional array

查看:279
本文介绍了如何将字符串拆分为三维数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将字符串拆分并存储到三个不同的数组中

i want to split a string and store into three different arrays

推荐答案

您似乎有点困惑,或者您没有很好地解释这一点-或者我就是不知道你在说什么.

您的初始版本是从DataGrid的选定项目中组合字符串,现在需要将字符串拆分为三个数组.

你想做什么?这三个数组应该持有什么?您如何知道在何处分割字符串,以及需要将零件放入哪个数组?

我们正在尝试提供帮助,但是如果您没有给我们提供足够的信息,我们只是在猜测!

尝试描述您的问题,而不是描述您的解决方案:代码是做什么的,而不是它是怎么做的.

从DataGrid中获取选定的项目,并将它们放入行的数组中,每行都包含一个列数据数组"可能是一种描述-我不知道您要实现的目标!
You seem to be a little confused, or you aren''t explaining this very well - or I just don''t know what teh heck you are talking about.

You initial version had you assembling a string out of selected items from your DataGrid, and now you need to split a string into three arrays.

What are you trying to do? What are the three arrays supposed to hold? How do you know where to split the string, and which array do you need to put the part into?

We are trying to help, but if you don''t give us enough information we are just guessing!

Try to describe your problem, not your solution: What is the code meant to do rather than how it does it.

"Take selected Items from a DataGrid and put them into an array of rows, each holding an array of column data" might be a description - I don''t know what you are trying to achieve!


这篇关于如何将字符串拆分为三维数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆