摘要: http://stlchina.huhoo.net/bin/view.pl/Main/STLDetailString添加#include<fstream>using namespace std; View Code 1//ofstreammyfile("c:\\1.txt",ios::out|ios::trunc);2//3//myfile<<"中国国国"<<endl<<"网"<<"wgk";4//myfile.close();56ifstreammfil 阅读全文
posted @ 2012-07-24 16:49 瑞尼书苑 阅读(290) 评论(0) 推荐(0)
摘要: Map是c++的一个标准容器,它提供了很好一对一的关系,在一些程序中建立一个map可以起到事半功倍的效果,总结了一些map基本简单实用的操作! 1. map构造函数; map<string , int >mapstring; map<int ,string >mapint; map<sring, char>mapstring; map< char ,string>mapchar; map<char ,int>mapchar; map<int ,char >mapint; 2. map添加数据; map<int ,st 阅读全文
posted @ 2012-07-24 14:43 瑞尼书苑 阅读(880) 评论(0) 推荐(0)