<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
<channel>
 <title><![CDATA[【已解决】C语言－在子函数内分配的内存， ..]]></title>
 <link><![CDATA[http://bbs2.chinaemu.org/read.php?tid=58288]]></link>
 <description><![CDATA[Latest 20 replies of 【已解决】C语言－在子函数内分配的内存， ..]]></description>
 <copyright><![CDATA[Copyright(C) 【 浮游城 - Castle in the Sky | 开放邀请注册，PS|SS|WII|DC下载研究中心 】]]></copyright>
 <generator><![CDATA[PHPWind Forums by PHPWind Studio]]></generator>
 <lastBuildDate><![CDATA[Sat, 11 Apr 2026 17:20:18 +0000]]></lastBuildDate>
  <image>
 <url><![CDATA[images/rss.gif]]></url>
 <title><![CDATA[PHPWind Board]]></title>
 <link><![CDATA[http://bbs2.chinaemu.org]]></link>
 <description><![CDATA[【 浮游城 - Castle in the Sky | 开放邀请注册，PS|SS|WII|DC下载研究中心 】]]></description>
  </image>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[需要用到再说。
反正目前不需要。
目前不怎么接触低层。。。。。]]></description>
 <link><![CDATA[http://bbs2.chinaemu.org/read.php?tid=58288#441812]]></link>
 <author><![CDATA[dolphin]]></author>
 <category><![CDATA[【 电脑全方位 | Computer All Round  】]]></category>
 <pubdate><![CDATA[Tue, 14 Nov 2006 07:02:56 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[quote][b]引用第6楼[i]dolphin[/i]于[i]2006-11-14 11:41[/i]发表的“”[/b]:
我不喜欢用指针的指针，因为我目前还没有发现那样有什么实际意义，我写程序，尽量简单，尽量易懂。[/quote]
同意，我也是喜欢傻瓜程序

但是有些底层代码就是使用非常复杂的编程技巧，

为了编写自己的接口只能学习了－－

至少在新的解决方法 ..]]></description>
 <link><![CDATA[http://bbs2.chinaemu.org/read.php?tid=58288#441810]]></link>
 <author><![CDATA[拉菲尔]]></author>
 <category><![CDATA[【 电脑全方位 | Computer All Round  】]]></category>
 <pubdate><![CDATA[Tue, 14 Nov 2006 07:01:25 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[但是别人的程序有这些东西你不会就看不明白啦。
而且你是会有需要用到的一天的。]]></description>
 <link><![CDATA[http://bbs2.chinaemu.org/read.php?tid=58288#441785]]></link>
 <author><![CDATA[华恶崇]]></author>
 <category><![CDATA[【 电脑全方位 | Computer All Round  】]]></category>
 <pubdate><![CDATA[Tue, 14 Nov 2006 05:58:13 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[我不喜欢用指针的指针，因为我目前还没有发现那样有什么实际意义，我写程序，尽量简单，尽量易懂。]]></description>
 <link><![CDATA[http://bbs2.chinaemu.org/read.php?tid=58288#441727]]></link>
 <author><![CDATA[dolphin]]></author>
 <category><![CDATA[【 电脑全方位 | Computer All Round  】]]></category>
 <pubdate><![CDATA[Tue, 14 Nov 2006 03:41:50 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[是的已改用这种方法

海豚朋友说的全局变量法不能解决以下：指向指针的指针在子函数内二次分配内存（向指针数组分配内存），母函数无法正常访问

ps：
定义char *dat和struct t_dat {char *dat};
这二者在内存使用上有什么区别？]]></description>
 <link><![CDATA[http://bbs2.chinaemu.org/read.php?tid=58288#441713]]></link>
 <author><![CDATA[拉菲尔]]></author>
 <category><![CDATA[【 电脑全方位 | Computer All Round  】]]></category>
 <pubdate><![CDATA[Tue, 14 Nov 2006 03:21:36 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[论坛的那个…………防转载的东西……实在是比较讨厌…………
看着乱七八糟……当然，也可能是我用Opera的关系……字比较大……

其实呢，你可以在主函数里面分配内存，然后把这个地址传到子函数里面操作~~这样子，主函数就可以打咯~~~]]></description>
 <link><![CDATA[http://bbs2.chinaemu.org/read.php?tid=58288#441633]]></link>
 <author><![CDATA[Taburiss]]></author>
 <category><![CDATA[【 电脑全方位 | Computer All Round  】]]></category>
 <pubdate><![CDATA[Mon, 13 Nov 2006 14:09:17 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[你没有定义全局变量啊？反正我没有看见。晕！

我不是很喜欢同时用2个*。所以我也不是很明白你的程序。
我随便写了个超级简单的。（VS2005编译）
1和2从本质上是完全一样的。不过我一般只用指针，不用指针的指针。晕！！！

1，
#include &quot;stdafx.h&quot;
#include &quot;stdlib.h&quot;

int itsI=10;  //全局变量
 ..]]></description>
 <link><![CDATA[http://bbs2.chinaemu.org/read.php?tid=58288#441463]]></link>
 <author><![CDATA[dolphin]]></author>
 <category><![CDATA[【 电脑全方位 | Computer All Round  】]]></category>
 <pubdate><![CDATA[Mon, 13 Nov 2006 05:48:35 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[#include &lt;conio.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

void subfunc(char **dat)
{
 &nbsp; int i, j;

 &nbsp; dat = (char **)malloc(3 * sizeof(char *));

 &nbsp; for (i = 0; i &lt; 3; ++ i)
 &nbsp; {
 &nbsp;  &nbsp; dat[i] = (char *)malloc(16);

 &nbsp;  &nbsp; for (j = 0; j & ..]]></description>
 <link><![CDATA[http://bbs2.chinaemu.org/read.php?tid=58288#441448]]></link>
 <author><![CDATA[拉菲尔]]></author>
 <category><![CDATA[【 电脑全方位 | Computer All Round  】]]></category>
 <pubdate><![CDATA[Mon, 13 Nov 2006 04:29:42 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[不可以。

使用全局变量]]></description>
 <link><![CDATA[http://bbs2.chinaemu.org/read.php?tid=58288#441422]]></link>
 <author><![CDATA[dolphin]]></author>
 <category><![CDATA[【 电脑全方位 | Computer All Round  】]]></category>
 <pubdate><![CDATA[Mon, 13 Nov 2006 01:55:51 +0000]]></pubdate>
</item>
</channel></rss>