当前位置:网站首页>Int to string, int to qstring
Int to string, int to qstring
2022-07-02 09:38:00 【Ignorant dream fireworks】
1 int turn string
1.1 The flow of << Operator
// The flow of << Operator
int a = 10;
stringstream ss;
ss << a;
string str = ss.str();
1.2 c++11 std::to_string
int a = 10;
std::string s = std::to_string(a);
2 string turn int
2.1 std::atoi
string _str = pSaveConfigElement->FirstChildElement("SaveVideoWidth")->GetText();
int mVideoWidth = std::atoi(_str);
3 int turn QString
3.1. Call directly QString::number()
int number = 10;
QString str = QString::number(number );
4 QString turn int
QString str = “10”;
int number = str.toInt();
5 QString turn string
QString str = “10”;
string stdStr= str.toStdString();
6 string turn QString
std::string _stdStr = "sfd";
QString _qStr(_stdStr.c_str());
边栏推荐
- What are the waiting methods of selenium
- Watermelon book -- Chapter 6 Support vector machine (SVM)
- MySQL error: unblock with mysqladmin flush hosts
- From concept to method, the statistical learning method -- Chapter 3, k-nearest neighbor method
- hystrix 实现请求合并
- C语言之分草莓
- Mysql 多列IN操作
- Record personal understanding and experience of game console configuration
- Knowledge points are very detailed (code is annotated) number structure (C language) -- Chapter 3, stack and queue
- Watermelon book -- Chapter 5 neural network
猜你喜欢

YOLO物体识别,生成数据用到的工具

Redis 序列化 GenericJackson2JsonRedisSerializer和Jackson2JsonRedisSerializer的区别

Typora安装包分享

Chrome browser tag management plug-in – onetab

Probability is not yet. Look at statistical learning methods -- Chapter 4, naive Bayesian method

How to install PHP in CentOS

微服务实战|原生态实现服务的发现与调用

DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!

kinect dk 获取CV::Mat格式的彩色RGB图像(openpose中使用)

Difference between redis serialization genericjackson2jsonredisserializer and jackson2jsonredisserializer
随机推荐
Amq6126 problem solving ideas
2837xd 代码生成——StateFlow(3)
Navicat remote connection MySQL reports an error 1045 - access denied for user 'root' @ '222.173.220.236' (using password: yes)
What are the differences between TP5 and laravel
Typora installation package sharing
QT QLabel样式设置
微服务实战|Eureka注册中心及集群搭建
Probability is not yet. Look at statistical learning methods -- Chapter 4, naive Bayesian method
Demand delineation executive summary
图像识别-数据采集
Watermelon book -- Chapter 5 neural network
Idempotent design of Internet API interface
Timed thread pool implements request merging
Difference between redis serialization genericjackson2jsonredisserializer and jackson2jsonredisserializer
zk配置中心---Config Toolkit配置与使用
Typeerror: X () got multiple values for argument 'y‘
ZK configuration center -- configuration and use of config Toolkit
Long summary (code with comments) number structure (C language) -- Chapter 4, string (Part 1)
Don't look for it. All the necessary plug-ins for Chrome browser are here
Redis installation and deployment (windows/linux)