Results 1 to 4 of 4
Hello,
I need to split string into characters and put then in the right order into an array.
how to do that?...
- 08-22-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 2
splitting string
Hello,
I need to split string into characters and put then in the right order into an array.
how to do that?
- 08-23-2011 #2Just Joined!
- Join Date
- Sep 2010
- Posts
- 8
I'm sorry but your question is not very specific. What is "the right order" and more importantly, what language do you want this in? Or do I have a choice?
- 08-23-2011 #3Just Joined!
- Join Date
- Aug 2011
- Posts
- 2
sorry.
here is the string:
"book"
here is the array
arr[0]=b
arr[1]=o
arr[2]=o
arr[3]=k
using only bash
- 08-23-2011 #4
This sounds a lot like a homework problem. They are not allowed on this forum.
You can try these links to get some ideas:
Arrays
Manipulating StringsDISTRO=Arch
Registered Linux User #388732


Reply With Quote