digitalmars.D.learn - How to initializing an array of strings?
- Bill Baxter <dnewsgroup billbaxter.com> Oct 30 2006
- Johan Granberg <lijat.meREM OVE.gmail.com> Oct 30 2006
- Bill Baxter <dnewsgroup billbaxter.com> Oct 30 2006
How does one do this? char[][] words = ["a", "list", "of", "some", "words"]; --bb
Oct 30 2006
Bill Baxter wrote:How does one do this? char[][] words = ["a", "list", "of", "some", "words"]; --bb
I don't have a compiler here but have you tried this. char[][] words = ["a"[], "list", "of", "some", "words"][];
Oct 30 2006
Johan Granberg wrote:Bill Baxter wrote:How does one do this? char[][] words = ["a", "list", "of", "some", "words"]; --bb
I don't have a compiler here but have you tried this. char[][] words = ["a"[], "list", "of", "some", "words"][];
Thanks! That does it (without the trailing []) char[][] words = ["a"[], "list", "of", "some", "words"]; --bb
Oct 30 2006








Bill Baxter <dnewsgroup billbaxter.com>