首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

求好手帮忙解答

2012-09-03 
求高手帮忙解答啊Example1234567891011121314151617181920// map::begin/end#include iostream#include

求高手帮忙解答啊
Example
 



1234567891011121314151617181920 
// map::begin/end
#include <iostream>
#include <map>
using namespace std;

int main ()
{
  map<char,int> mymap;
  map<char,int>::iterator it;

  mymap['b'] = 100;
  mymap['a'] = 200;
  mymap['c'] = 300;

  // show content:
  for ( it=mymap.begin() ; it != mymap.end(); it++ )
  cout << (*it).first << " => " << (*it).second << endl;

  return 0;

这个begin该怎么解释啊???还有那个for循环也看不懂啊

[解决办法]

探讨

那是从b开始吗??

热点排行