c++写txt文件
来源:互联网 发布:国内酒店预订网站 知乎 编辑:程序博客网 时间:2024/06/05 09:52
// Txt_Write.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"#include<iostream>#include<fstream>using namespace std;//将int _tmain(int argc, _TCHAR* argv[]){ofstream in;in.open("shuchu.txt",ios::trunc);//os::trunc表示在打开文件前将文件清空,由于是写入,文件不存在则创建char a='a';for(int i=1;i<10;i++){//in<<'0'<<i<<'\t'<<a<<'\n'; in<<'0'<<i<<' '<<a<<'\n';a++;}for(int i=10;i<=26;i++){//n<<i<<'\t'<<a<<'\n';in<<i<<' '<<a<<'\n';a++;}in.close();system("pause");return 0;}
0 0
- 写文本txt文件内容(wince C#)
- 写文本txt文件内容(wince C#)
- js写txt文件
- java 写txt文件
- 写txt 文件
- c# 写txt文件
- matlab 写txt文件
- c++写txt文件
- matlab 写txt文件
- java写txt文件
- xamrain 写txt文件
- 写txt文件
- WINCE下写TXT文件
- VB.NET 写TXT文件
- robots.txt文件怎么写
- 写文件到txt中
- java读、写txt文件
- 写LOG到TXT文件
- getClass().getResourceAsStream() .
- 三极管的电平转换及驱动电路分析
- 异常处理之ThreadException、unhandledException及多线程异常处理
- IOS快速工匠化系列教程-序言
- 对功率谱的一点理解
- c++写txt文件
- 谈谈你对面向对象编程的认识
- 通过Adobe Scout深入理解Flash播放器
- android开发数据库Cursor 错误android.database.CursorWindowAllocationException
- 内核中的likely和unlikely宏定义
- Oracle 一个用户直接访问另外个用户下的表 (不积跬步,无以至千里)
- 数组的指针特性
- new Date()不兼容Firefox
- 你男朋友是程序员吧?