本文介绍了将值分配给锯齿数组(字符串)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
输入句子的数量可能因用户而异.
例子:-孩子吃了米饭.我们去旅行了. < =输入是给用户的输入(通过文本框).必须将每个句子的每一行和单词分配给每一列.
数组的行和列值
行:-
array [0] [] =孩子吃了米饭. < =第一行
array [1] [] =我们进行了一次旅行< =第二行
列:-
array [0] [0] => child
array [0] [1] =>吃
******************************************
谢谢.
Number of input sentences may differ from user to user.
Example :- child ate rice. We went on a trip. <= Input is a user given one (through a text box). Each sentence must be allocated each row and words to columns.
row and Column values of the array
Row:-
array[0] [] = child ate rice. <= first row
array[1] [] = We went on a trip <= second row
Column:-
array[0] [0] =>child
array[0] [1] => ate
*************************************
Thank you.
推荐答案
这篇关于将值分配给锯齿数组(字符串)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!