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

自己想做一个网站怎么做的青岛黄页电话查询

自己想做一个网站怎么做的,青岛黄页电话查询,襄阳seo顾问,搜索引擎不收录网站从Unix转换到Windows时#xff0c;我得到正确的输出;但是#xff0c;从Windows到Unix时#xff0c;我得到了一些奇怪的输出。我认为我必须允许的是删除回车\ r。虽然这不起作用。当我运行代码后打开文本文件时#xff0c;我得到了一些奇怪的结果#xff0c;第一行是正确的…从Unix转换到Windows时我得到正确的输出;但是从Windows到Unix时我得到了一些奇怪的输出。我认为我必须允许的是删除回车\ r。虽然这不起作用。当我运行代码后打开文本文件时我得到了一些奇怪的结果第一行是正确的然后所有的地狱破坏。int main( ){bool windows false;char source[256];char destination[256]; // Allocate the max amount of space for the filenames.cout Please enter the name of the source file: ;cin source;ifstream fin( source, ios::binary );if ( !fin ) // Check to make sure the source file exists.{cerr File source not found!;getch();return 1;}//endifcout Please enter the name of the destination file: ;cin destination;ifstream fest( destination );if ( fest ) // Check to see if the destination file already exists.{cout The file destination already exists! endl;cout If you would like to truncate the data, please enter Y, otherwise enter N to quit: ;char answer char( getch() );if ( answer n || answer N ){return 1;}//endif}//endifclrscr(); // Clear screen for neatness.ofstream fout( destination, ios::binary );if ( !fout.good() ) // Check to see if the destination file can be edited.{cout destination could not be opened! endl;getch();return 1;}//endif// Open the destination file in binary mode.fout.open( destination, ios::binary );char ch fin.get(); // Set ch to the first char in the source file.while ( !fin.eof() ){if ( ch \x0D ) // If ch is a carriage return, then the source file{ // must be in a windows format.windows true;}//endifif ( windows true ){ch fin.get(); // Advance ch, so that at the bottom of the loop, the}//endif // carriage return is not coppied into the new file.if ( windows false ){if ( ch \x0A ) // If the file is in the Unix format..{fout.put( \x0D ); // When a new line is found, output a carriage}//endif // return.}//endiffout.put( ch );ch fin.get();}//endwhif ( windows true ){fout.put( \x0A );}//endiffout.close();fin.close(); // Close yer files.if ( windows true ) // A little output for user-friendly-ness.{cout The contents of source have been coppied to destination and converted to Unix format. endl;}else{cout The contents of source have been coppied to destination and converted to Windows format. endl;}//endifcout Enter any key to quit.. endl;getch();return 0;}//endmn
http://www.zqtcl.cn/news/724040/

相关文章:

  • 信阳网站建设汉狮怎么样做曖視頻网站
  • 做电影电视剧网站推广移动应用开发是什么意思
  • 网站排名优化策划中山搜索引擎优化
  • 网站建设培训证书平台型网站建设预算表
  • 网站建设后压缩代码网站如何做进一步优化
  • 大型旅游网站源码 织梦襄阳网站建设楚翼网络
  • 快速搭建网站服务器做历史卷子的网站
  • 淘口令微信网站怎么做通化seo招聘
  • 帮人做传销网站违法吗深圳也放开了
  • 发布程序后网站有很多促销策略
  • 网页网站项目综合网站建设合同.doc
  • 网站建设公司黄页企业vi系统设计公司
  • 建设局网站新闻昆明个人网站建设平台
  • 清远市建设工程交易中心网站网站打开慢什么原因呢
  • 网站网址没有被百度收录做网站ddos攻击
  • 网站网站设计公司深圳建设工程交易服务网网址
  • 自学编程网站棋牌游戏在哪做网站
  • html做分页的网站以图搜图百度识图
  • 上虞区建设局网站网站建设好公司好
  • 一半都有哪些做影视外包的网站收录网站查询
  • 网站策划书撰写流程网站推广基本方法是
  • 杭州网站建设费用多少写一篇软文推广自己的学校
  • 意大利设计网站易优cms破解授权
  • 学校网站开发工程师wordpress手机博客
  • 注册网站验证码网站开发招聘需要
  • 一个销售网站的设计方案重庆广告制作加工厂
  • 宽带固定ip的怎么做网站服务器网站设计说明书整合
  • 织梦装修公司网站模板wordpress主题代码编辑教程
  • 外边做一个网站要多少钱关键词的选取原则
  • 做网站需要备案吗wordpress会员邮件通知