[英]How do you convert int into int64_t
I am creating a game and I want to intergrate Game Center into it. 我正在创建一个游戏,我希望将Game Center整合到其中。 I have looked and it turns out that the integer that you want to submit has to be int64_t
. 我看了,结果你要提交的整数必须是int64_t
。 And the int
that I am using is a standard int. 而int
,我现在用的就是一个标准的INT。 how would I convert my high score int
to an int64_t
? 我如何将我的高分int
转换为int64_t
?
You can try to cast the int
to int64_t
: 您可以尝试将int
int64_t
为int64_t
:
int a = 12345;
int64_t b = (int64_t)a;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.