Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi please rply for this question
ex:hi good morning all(this is my single dimensional string)
excepted output:hi
good
morning
all
Posted
Comments
Sergey Alexandrovich Kryukov 20-Jan-15 21:25pm    
A string cannot be single-dimensional or two-dimensional, this is just a string.
And, in C, 1D array and 2D array is exactly just the same. Did you know that?
—SA
[no name] 20-Jan-15 22:01pm    
Do you really expect anybody to know anything about how data is arranged in memory after two decades of leaving all this to the framework and the garbage collector?
Sergey Alexandrovich Kryukov 20-Jan-15 22:59pm    
Yes, I do. It does not have to be remembered, it's enough to understand the idea to figure it out.
Many cannot even imagine how much of old ideas are still fully applicable, even to .NET.
—SA
[no name] 21-Jan-15 0:21am    
By my experience there is only a small group of good developers between the blissfully ignorant and the painfully arrogant, Both groups insist that such 'low level stuff' is handled by the compiler nowadays and that learning anything about this is a waste of time.

1 solution

string.split[^] is your friend.

/ravi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900