string array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sejal17
    New Member
    • Dec 2007
    • 56

    string array

    hi,
    I want to do that there is array of strings.Check each string's first character.If it is A-Z,then return that string.I want to do this without using pointer.Please use the function.


    Thanx...
  • arnaudk
    Contributor
    • Sep 2007
    • 425

    #2
    What about using std::vector? Then you can use iterators or simply the vector index.

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      If you have an array of strings, then each string is array[i]. That makes the first character of each string array[i][0].

      Comment

      Working...