当前位置: 首页 > news >正文

个人怎么自己建网站河源seo

个人怎么自己建网站,河源seo,基础网站怎么做,如何推广微信小程序由于本人要接手一项C方面 的工作。由于不会C,不过做过JAVA 以及一些web方面的开发#xff0c;加之时间比较短。所以需要速成#xff0c;于是学习笔记也基本都是用代码代替。 //范例资源文件 /****************************************************************************…由于本人要接手一项C方面 的工作。由于不会C,不过做过JAVA 以及一些web方面的开发加之时间比较短。所以需要速成于是学习笔记也基本都是用代码代替。 //范例资源文件 /***************************************************************************************** Test.txt : tom 123456789 lilei 234567891 zhangsan 345678912 tom 456789123 xiaohe 567891234                                                                     ******************************************************************************************/ //未用名字空间使用vector 进行遍历 /****************************************************************************************** #include stdafx.h #include iostream #include string #include vector #include fstream int _tmain(int argc,_TCHAR* argv[]) { std::string strtmp; std::ifstream fs(Test.txt); std::vectorstd::string vect; while(getline(fs,strtmp,\n)) { vect.push_back(strtmp.substr(0,strtmp.find( ))); } for(std::vectorstd::string::size_type index 0; index vect.size();index) { std::cout vect[index]   std::endl; } return 0; } ******************************************************************************************/ //使用名字空间,使用vector进行遍历 /****************************************************************************************** #include stdafx.h #include iostream #include string #include vector #include fstream using namespace std; int _tmain(int argc,_TCHAR* argv[]) { string strtmp; ifstream fs(Test.txt); vectorstring vect; while(getline(fs,strtmp,\n)) { vect.push_back(strtmp.substr(0,strtmp.find( ))); } for(int index 0; index vect.size();index) { cout vect[index]   endl; } return 0; } ******************************************************************************************/ //利用迭代器对vector进行遍历 /****************************************************************************************** #include stdafx.h #include iostream #include string #include vector #include fstream using namespace std; int _tmain(int argc,_TCHAR* argv[]) {  string strtmp;  ifstream fs(Test.txt);  vectorstring vect;  while(getline(fs,strtmp,\n))  {   vect.push_back(strtmp.substr(0,strtmp.find( )));  }  vectorstring::iterator it vect.begin(); for(;it ! vect.end();it)  {   cout *it  endl;  }  return 0; } ******************************************************************************************/ //使用map 进行遍历 /****************************************************************************************** #include stdafx.h #include iostream #include string #include vector #include fstream #include map using namespace std; int _tmain(int argc,_TCHAR* argv[]) {  string strtmp;  ifstream fs(Test.txt);  mapstring,string  map_temp;  string::size_type index string::npos; while(getline(fs,strtmp,\n))  {  index strtmp.find();  map_temp[strtmp.substr(0,index)] (strtmp.substr(index));  }  mapstring,string ::iterator it map_temp.begin(); for(; it ! map_temp.end(); it)  {   cout it-first it-second endl;  }  return 0; } ******************************************************************************************/ //使用for_each 利用重载操作符 进行map遍历 /****************************************************************************************** #include stdafx.h #include iostream #include string #include vector #include fstream #include map #include iterator #include algorithm using namespace std; class showIiem { public: void operator()(const mapstring,string::value_type value) { cout value.first value.second \n; }; }; int _tmain(int argc,_TCHAR* argv[]) {  string strtmp;  ifstream fs(Test.txt);  mapstring,string  map_temp;  string::size_type index string::npos; while(getline(fs,strtmp,\n))  {   index strtmp.find();   map_temp[strtmp.substr(0,index)] (strtmp.substr(index));  }  showIiem show;  for_each(map_temp.begin(),map_temp.end(),show);  return 0; } ******************************************************************************************/ // 利用copy使用重载操作符 进行map遍历 /****************************************************************************************** #include stdafx.h #include string #include fstream #include iostream #include algorithm #include map #include vector using namespace std; namespace std {  std::ostream operator(std::ostream os, const std::mapstd::string,std::string::value_type value)  {   os value.first value.second;   return os;  } } class ShowValue { public:  ShowValue(std::ostream os):m_os(os)  {  } void operator()(const std::mapstd::string,std::string::value_type value)  {   m_os value.first value.second \n;  }  std::ostream m_os; }; typedef std::ostream_iteratorstd::mapstd::string,std::string::value_type ositertype; std::ostream operator(std::ostream os, const std::mapstd::string,std::string value) {  std::for_each(value.begin(), value.end(), ShowValue(os));  return os; } int _tmain(int argc,_TCHAR* argv[]) {  std::string strtmp;  std::fstream in(Test.txt);  std::mapstd::string,std::string  map_1;  std::string::size_type idx std::string::npos;  while(std::getline(in, strtmp, \n))  {   idx strtmp.find( );   map_1[strtmp.substr(0, idx)] strtmp.substr(idx);  }  ositertype os_iter(std::cout, \n);  std::copy(map_1.begin(), map_1.end(), os_iter);  return 0; }
http://www.yutouwan.com/news/352678/

相关文章:

  • jq做6个网站做什么好wordpress网站速度优化
  • 网站二维码怎么做的在网上做广告怎么做
  • 医保局网站建设网站建设分金手指排名十八
  • 银川网站建设有哪些网站开发答辩演讲
  • 商业网点建设开发中心网站西双版纳网站建设公司
  • 郑州网站建设模板制作网上商城推广方案
  • 网站降权投诉哪儿能做网站建设
  • 青岛商城网站建设设计怎么做app推广代理
  • 网站知识邢台提供网站设计公司哪家专业
  • 做门户网站挣钱吗工业品企业网站源码
  • 网站开发的背景和意义全面的客户管理系统
  • 怎样自己搭建一个做影视的网站校园网站建设宣传
  • 网站建设毕业设计开题报告制作企业网站作业网页模板
  • php网站开发 知乎网站虚拟主机是什么
  • 国外做电商网站有哪些方面自己做发卡网站支付接口
  • 讯美网站建设管理咨询和战略咨询
  • 如何做淘宝优惠券网站一级造价师准考证打印时间
  • 深圳做针织衫服装的网站装修网站制作
  • 菏泽做网站建设的公司免费网站空间10g
  • 上海专业网站建设价格低关键词排名网络推广
  • 创意产品设计网站推荐网站运营管理方案
  • 无锡网站建设公司怎么样广东新闻联播在线直播
  • 个人网站模板下载商丘网格通
  • 个人网站 前置审批成都网站建设四易维达
  • 404 没有找到网站 试试申请收录吧网站规划与设计论文
  • 哈尔滨网站制作公司价格免费的html网站
  • 设计网站要多少钱wordpress网站关键词设置
  • 外贸找客户有什么网站清智优化北京
  • 旅游网站建设方案2019简短的营销软文范文
  • 3d网站制作c 做网站怎么连接到别的网页