C++ Stl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Prabu Ramasamy
    New Member
    • Jun 2007
    • 6

    C++ Stl

    Difference between map(char,int) and pair(const char,int)?
    pleas differentiate the function operations?
  • AdrianH
    Recognized Expert Top Contributor
    • Feb 2007
    • 1251

    #2
    Originally posted by Prabu Ramasamy
    Difference between map(char,int) and pair(const char,int)?
    pleas differentiate the function operations?
    Please explain your question further. You are comparison is like comparing apples to cars. And I think you ment to use <> instead of ().


    Adrian

    Comment

    • Prabu Ramasamy
      New Member
      • Jun 2007
      • 6

      #3
      Originally posted by AdrianH
      Please explain your question further. You are comparison is like comparing apples to cars. And I think you ment to use <> instead of ().


      Adrian
      yes i failed to put <>. i'm beginner to c++. i'm always confusing with different type of function declarations. explain the
      pair<map<char,i nt>::iterator,b ool> ret; declaration. here what happens?

      Comment

      • AdrianH
        Recognized Expert Top Contributor
        • Feb 2007
        • 1251

        #4
        Originally posted by Prabu Ramasamy
        yes i failed to put <>. i'm beginner to c++. i'm always confusing with different type of function declarations. explain the
        pair<map<char,i nt>::iterator,b ool> ret; declaration. here what happens?
        You get a pair which consists of a map<char,int> and a bool.


        Adrian

        Comment

        Working...