#include
<
iostream
>
#include
<
string
>
using
namespace
std;
int
main() {
int
n
=
65535
;
char
t[
256
];
string
s; sprintf(t,
"
%d
"
, n); s
=
t; cout
<<
s
<<
endl;
return
0
; }
c++ 数字转为string
最新推荐文章于 2023-11-15 20:09:42 发布