作业介绍

#include<bits/stdc++.h>
using namespace std;

map<string, string> m;   //统计叫声   

int main(){
	
	m["小狗"] = "汪汪";
	m["小鸡"] = "你干嘛";
	//cout << m["小鸡"] << endl; 
	m.insert({"阿牛","哞哞"});
	m.insert({"小猪","哼哼"});
	m["小鸡"] = "哎哟";  
	//cout << m["小鸡"] << endl; 
	
	m["小狗"] = m["小鸡"];
	
//	
//	cout << m.count("小鸡") <<endl;  // 查找 
//	cout << m.size() <<endl;         // 大小 
//	m.erase("小鸡");                 // 清除 
//	cout << m.count("小鸡") <<endl;
//	cout <<m.size();
	
//	map<string,string>::iterator it;
//	for( it = m.begin(); it!=m.end(); it++){
//		cout << "键:" << it->first << "  值:" << it->second <<endl; 
//	}	
//	
//	
//map<string,string>::iterator it;
	
	//-std=c++11

	for(auto it:m){
		cout << "键:" << it.first << "  值:" << it.second <<endl; 
	}	
	
	

	return 0;
}

状态
已结束
题目
5
开始时间
2025-3-23 0:00
截止时间
2025-3-31 23:59
可延期
24 小时