string s1=to_string(123); //把123这个数字转成字符串 cout << s1 <<endl; string s2=to_string(3.5); //把4.5这个数字转成字符串 cout << s2 <<endl; cout << s1+s2 <<endl; //把s1和s2两个字符串拼接起来并输出 printf("%s\n",(s1+s2).c_str()); //如果想用printf输出string,得加一个c_str() system("pause"); return 0; Windows git remote: HTTP Basic: Access denied 错误解决办法
Windows 使用Git的git push 报 HTTP Basic: Access denied 错误
Qt Creator plugin动手实践(2)自己动手写qt creator插件,实现自定义工具栏按钮
Qt Creator plugin动手实践(2)自己动手写qt creator插件,实现自定义工具栏按钮
成功解决TypeError: sequence item 0: expected str instance, bytes found
成功解决TypeError: sequence item 0: expected str instance, bytes found
CSDN博客专家,华为云云享专家,阿里云专家博主,51CTO专家博主,现为推荐算法工程师,研究领域为AI推荐算法、NLP、图神经网络等,发表EI会议论文一篇,CSDN博客访问量破100万。 CSDN博客id:山顶夕景 微信公众号:古道西风瘦码 知识星球:AI算法乐园