// “d:\录取i.txt”改成”d:\录取‘’+i +“.txt”
string filename = “d:\录取”;
char index = i + ‘0’;//数字i转换成字符i
filename = filename + index + “.txt”;
ofile.open(filename.c_str());
int转string
int n = 0;
std::stringstream ss;
std::string str;
ss<
include “stdafx.h”
include
include
using namespace std;
void main()
{
// int 转 string
stringstream ss;
int n = 123;
string str;
ss<