C++小技巧汇总
来源:互联网 发布:剑网三不合法的脸数据 编辑:程序博客网 时间:2024/06/10 04:51
// “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<
阅读全文
0 0
- 一些小技巧汇总
- Eclipse小技巧汇总
- 电脑知识 小技巧汇总
- SqlServer小技巧汇总
- 小技巧汇总
- StarUML小技巧汇总
- 小技巧汇总
- ios小技巧汇总
- StarUML小技巧汇总
- 小技巧汇总
- C++小技巧汇总
- CSS小技巧汇总
- 软件应用小技巧汇总
- 小技巧之汇总一
- 小技巧之汇总二
- iphone开发小技巧汇总
- iphone开发小技巧汇总
- 算法设计:小技巧汇总
- java中 flush()方法
- 关于 Android NumberPicker 的两个问题
- having 与where的区别
- 函数的学习
- 在tensorflow中使用CNN
- C++小技巧汇总
- PHP设计模式(一)单例模式
- opencv实现拉普拉斯锐化的总结
- Deep Learning(深度学习)学习笔记整理系列之(四)
- Intellij IDEA 2017.1.5 安装详细图解与注册方法
- Android -- Activity官方文档简译
- Android Material Design 之 TextInputLayout
- JAVA之设置背景图片的几种方法
- 关于Visual Studio 2013 编译 multi-byte character set MFC程序出现 MSB8031 错误的解决办法