📄 subject_35763.htm
字号:
<p>
序号:35763 发表者:苦闷 发表日期:2003-04-09 11:23:14
<br>主题:怎么搞
<br>内容:void CTestDlg::OnButton1() <BR>{<BR> // TODO: Add your control notification handler code here<BR>CFile file;<BR>CString str;<BR>int i=5;//每次调用函数的时候都变化;<BR>str.Format(_T("%d"),i);<BR>file.Open("ccc.txt",CFile::modeCreate|CFile::modeNoTruncate<BR> |CFile::modeWrite|CFile::shareDenyNone);<BR>file.SeekToEnd();<BR>file.Write(str,strlen(str));<BR>file.Close();<BR>}怎么来现实二次保存的中间有一个空格。<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>回复者:ham 回复日期:2003-04-09 12:09:19
<br>内容:str.Format(_T("%d"),i);<BR>change to<BR>str.Format(_T("%d "),i);
<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 + -