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

📄 subject_40447.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:40447 发表者:Rikcuo Akira 发表日期:2003-05-18 21:40:42
<br>主题:struct in .c in .cpp
<br>内容:struct aaa<BR>{<BR> int b;<BR> void test(){}<BR>};<BR><BR>以上敘述若寫在.cpp上則執行無誤,可是寫在.c裡就不可以<BR>.c難道不可用member function?<BR><BR>--------------------Configuration: CWebPage - Win32 Debug--------------------<BR>Compiling...<BR>htmldialog.c<BR>c:\tmp\my cwebpage adv\htmldialog.c(12) : error C2032: '&lt;Unknown&gt;' : function cannot be member of struct 'aaa'<BR>c:\tmp\my cwebpage adv\htmldialog.c(12) : error C2143: syntax error : missing ';' before '{'<BR>c:\tmp\my cwebpage adv\htmldialog.c(12) : error C2059: syntax error : '{'<BR>c:\tmp\my cwebpage adv\htmldialog.c(13) : error C2059: syntax error : '}'<BR>mystuff.cpp<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>回复者:jackyxio 回复日期:2003-05-20 16:20:42
<br>内容:.c 的话是c编释器。<BR><BR>typedef struct aaa<BR>{<BR>}<BR><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 + -