Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 long long 转换为 C 中的字符串。
long long x = 999;
我想将 x 转换为字符串。我怎么能这样做呢?
谢谢。
long long x = 999; char str[256]; sprintf(str, "%lld", x); printf("%s\n", str);