How do you convert int into int64_t

╄→гoц情女王★ 提交于 2019-12-13 02:42:21

问题


I am creating a game and I want to intergrate Game Center into it. I have looked and it turns out that the integer that you want to submit has to be int64_t. And the int that I am using is a standard int. how would I convert my high score int to an int64_t?


回答1:


You can try to cast the int to int64_t:

int a = 12345;
int64_t b = (int64_t)a;


来源:https://stackoverflow.com/questions/16185782/how-do-you-convert-int-into-int64-t

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!