I want to find the length of a string, But the strlen function seems only to work with chars. I can't use a char[] to store my text because the size must be known beforehand and I don't know it. So I read everything into a string, then tried to convert it to a char like this.
This gives an error that expects a comma or semi-colon before 'char'..
How can I convert from string to char*? and if there is no way to do this, can anyone think of another way of counting the no. of characters in a trie structure aside from reading everything into a string and getting the length of it as I am trying to do?
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.