How to read a list of integers from a string?
Hello,
I am trying to convert a word (string) to a list as follows: Code:
List<Foam::label> indices; Any ideas? Thank you |
Quote:
Sure, there are a few ways to do that, but FWIW you would want a string not a 'word' for the intermediate anyhow since a "word" generally should not be containing spaces! Code:
List<label> indices; |
Many thanks for providing the answer. I thought that was not possible.
Thank you |
All times are GMT -4. The time now is 15:58. |