⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_24133.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:24133 发表者:chengyk 发表日期:2002-12-09 20:11:30
<br>主题:如何将类型为字符串的数据转换为整型数据?
<br>内容:例如:<BR>&nbsp;&nbsp; CString str="2002",如何转换为int year=2002<BR>谢谢指教!
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:金鱼王 回复日期:2002-12-09 20:19:39
<br>内容:试一试<BR>int year = atoi(str.GetBuffer(str.GetLength()); 
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:chengyk 回复日期:2002-12-09 21:13:55
<br>内容:谢谢金鱼王的指教。<BR>您的编码应为:int year = atoi(str.GetBuffer(str.GetLength()));<BR>再次感谢!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -