将字符串转换为long long [英] convert string to long long

查看:1076
本文介绍了将字符串转换为long long的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS 2008创建一个C ++ DLL(非托管)项目,我需要将char *转换为long long类型。是否有简单的方法?

I'm using VS 2008 to create a C++ DLL (not managed) project and I need convert a char* to a long long type. Is there an easy way to do it?

提前感谢:)

推荐答案

尝试 _atoi64。这需要 char * ,并返回 __ int64

这篇关于将字符串转换为long long的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆