By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,614 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

C++ Stl

P: 6
Difference between map(char,int) and pair(const char,int)?
pleas differentiate the function operations?
Jun 2 '07 #1
Share this Question
Share on Google+
3 Replies


AdrianH
Expert 100+
P: 1,251
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
Jun 2 '07 #2

P: 6
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,int>::iterator,bool> ret; declaration. here what happens?
Jun 2 '07 #3

AdrianH
Expert 100+
P: 1,251
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,int>::iterator,bool> ret; declaration. here what happens?
You get a pair which consists of a map<char,int> and a bool.


Adrian
Jun 2 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.