<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>爱乐眼底图像分析 - C++</title>
    <link>https://www.eyeler.com/forum-88-1.html</link>
    <description>Latest 20 threads of C++</description>
    <copyright>Copyright(C) 爱乐眼底图像分析</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Wed, 26 Aug 2026 21:35:46 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.eyeler.com/static/image/common/logo_88_31.gif</url>
      <title>爱乐眼底图像分析</title>
      <link>https://www.eyeler.com/</link>
    </image>
    <item>
      <title>undefined reference to问题解决</title>
      <link>https://www.eyeler.com/thread-942-1-1.html</link>
      <description><![CDATA[最近在Linux下编程发现一个诡异的现象，就是在链接一个静态库的时候总是报错，类似下面这样的错误：
[*](.text+0x13): undefined reference to `func\'
    关于undefined reference这样的问题，大家其实经常会遇到，在此，我以详细地示例给出常见错误的各种原因以及解 ...]]></description>
      <category>C++</category>
      <author>febbird</author>
      <pubDate>Mon, 08 Oct 2012 03:07:33 +0000</pubDate>
    </item>
    <item>
      <title>conflicting types for</title>
      <link>https://www.eyeler.com/thread-941-1-1.html</link>
      <description><![CDATA[错误：
test.c:22: error: conflicting types for \'urlencode\'
test.c:18: error: previous implicit declaration of \'urlencode\' was here

原因一：
原来是因为没有先做函数声明，而函数位于main()之后。
在main函数前声明了函数原型后，一切ok.

原因二：
头文件的被 ...]]></description>
      <category>C++</category>
      <author>febbird</author>
      <pubDate>Mon, 08 Oct 2012 02:58:27 +0000</pubDate>
    </item>
    <item>
      <title>error:expected specifier-qualifier-list before</title>
      <link>https://www.eyeler.com/thread-122-1-1.html</link>
      <description><![CDATA[编译错误：error:expected specifier-qualifier-list before ‘TreeNode\'原因是struct没有命名typedef struct TreeNode]]></description>
      <category>C++</category>
      <author>febbird</author>
      <pubDate>Thu, 20 Sep 2012 08:33:25 +0000</pubDate>
    </item>
    <item>
      <title>c语言数组越界</title>
      <link>https://www.eyeler.com/thread-92-1-1.html</link>
      <description><![CDATA[C语言的数组必须是静态的。换而言之，数组的大小必须在程序运行前就被确定下来。

#include 
void main(){
    int x[3];
    int y;
    int k;
    printf(\&quot;k:%p y:%p x:%p x+1:%p x+2:%p\&quot;,&amp;k,&amp;y,x,x+1,x+2);  //输出地址
    for(k=0;k ...]]></description>
      <category>C++</category>
      <author>admin</author>
      <pubDate>Mon, 10 Sep 2012 07:55:10 +0000</pubDate>
    </item>
    <item>
      <title>Linux下的进程资源的限制rlimit详解</title>
      <link>https://www.eyeler.com/thread-87-1-1.html</link>
      <description><![CDATA[在Linux系统中，Resouce limit指在一个进程的执行过程中，它所能得到的资源的限制，比如进程的core file的最大值，虚拟内存的最大值等。

Resouce limit的大小可以直接影响进程的执行状况。其有两个最重要的概念：soft limit 和 hard limit。




 ...]]></description>
      <category>C++</category>
      <author>admin</author>
      <pubDate>Mon, 03 Sep 2012 14:11:45 +0000</pubDate>
    </item>
    <item>
      <title>输出二进制 C++</title>
      <link>https://www.eyeler.com/thread-79-1-1.html</link>
      <description><![CDATA[想知道怎样输出二进制。我们知道C++输出十六进制是cout〈〈hex〈〈 a；而八进制是cout〈〈 ocx〈〈 a;二进制则没有默认的输出格式，需要自己写函数进行转换，于是上网搜索了一下。网上思路真是广泛啊。下面列出一些方法。  #include 〈iostream〉  #include 〈list〉  # ...]]></description>
      <category>C++</category>
      <author>admin</author>
      <pubDate>Sun, 02 Sep 2012 03:29:32 +0000</pubDate>
    </item>
    <item>
      <title>warning C4244: “参数”: 从“time_t”转换到“unsigned int”</title>
      <link>https://www.eyeler.com/thread-78-1-1.html</link>
      <description><![CDATA[warning C4244: “参数”: 从“time_t”转换到“unsigned int”，可能丢失数据
 分类： C/C++和数据结构 2011-09-07 17:47 31人阅读 评论(0) 收藏 举报
 warning C4244: “参数”: 从“time_t”转换到“unsigned int”，可能丢失数据

 ...]]></description>
      <category>C++</category>
      <author>admin</author>
      <pubDate>Wed, 29 Aug 2012 13:20:49 +0000</pubDate>
    </item>
    <item>
      <title>动态二维数组的分配与释放</title>
      <link>https://www.eyeler.com/thread-70-1-1.html</link>
      <description><![CDATA[今天在群里遇到一个询问二维数组动态申请的问题，自己想了一种办法，又在网上搜了一下，觉得下面这篇文章写得不错，特转帖如下：
两种方法：
1。先定义一个一维数组的类型，然后再用该类型定义一个一维数组（实际上已经成为二维的）
      相当于递归定义
           
  ...]]></description>
      <category>C++</category>
      <author>admin</author>
      <pubDate>Sun, 26 Aug 2012 11:58:31 +0000</pubDate>
    </item>
    <item>
      <title>linux高精度时钟分析</title>
      <link>https://www.eyeler.com/thread-69-1-1.html</link>
      <description><![CDATA[数据结构分析

struct hrtimer_clock_base {
    struct hrtimer_cpu_base *cpu_base;
    clockid_t       index;
    struct rb_root      active;
    struct rb_node      *first;
    ktime_t         resolution;
    ktime_t         (*get_time)(void);
    kti .]]></description>
      <category>C++</category>
      <author>admin</author>
      <pubDate>Sun, 26 Aug 2012 11:52:31 +0000</pubDate>
    </item>
    <item>
      <title>Xercesc读取xml文件</title>
      <link>https://www.eyeler.com/thread-52-1-1.html</link>
      <description><![CDATA[本节包含内容：XML文件格式、判断节点类型、取节点名称、取节点值。XML文件的典型格式，如下         Context                           参考Domcount例程，得到DOMNode对象首先判断DOMNode对象的节点类型、然后，对节点内容和值分别存储。if (static_cast(n)-&gt;getNode ...]]></description>
      <category>C++</category>
      <author>czz</author>
      <pubDate>Sat, 25 Aug 2012 14:06:09 +0000</pubDate>
    </item>
    <item>
      <title>vector与new哪个分配内存方案更好？</title>
      <link>https://www.eyeler.com/thread-42-1-1.html</link>
      <description><![CDATA[vector内存分配简便,可先建立空vector再添加元素进去,
好处:不用先预定vector大小.
缺点：开销大了 。比如你本来有10000字节，这时你需要10001 字节 那么vector会开双倍 20000，你浪费9999的地方 vector是按当前*2的基数开的 。 
而new在内存中分配时则要求先知道大小. ...]]></description>
      <category>C++</category>
      <author>czz</author>
      <pubDate>Sun, 08 Jul 2012 09:12:32 +0000</pubDate>
    </item>
    <item>
      <title>内存泄露检测工具比较(转)</title>
      <link>https://www.eyeler.com/thread-41-1-1.html</link>
      <description><![CDATA[1.ccmalloc－Linux和Solaris下对C和C++程序的简单的使用内存泄漏和malloc调试库。
2.Dmalloc－Debug Malloc Library.
3.Electric Fence－Linux分发版中由Bruce Perens编写的malloc()调试库。
4.Leaky－Linux下检测内存泄漏的程序。
5.LeakTracer－Linux、Solaris和HP-UX ...]]></description>
      <category>C++</category>
      <author>czz</author>
      <pubDate>Sun, 08 Jul 2012 09:05:14 +0000</pubDate>
    </item>
    <item>
      <title>非MFC的C++内存泄露跟踪与调试</title>
      <link>https://www.eyeler.com/thread-40-1-1.html</link>
      <description><![CDATA[C++提供的内存管理机制非常灵活，内存的分配和释放完全有程序员自己控制。不过任何事物都是其两面性，灵活的另一面则是带来了复杂性。经常我们用New，malloc，realloc分配了内存，却可能也很容易忘记用Delete，free来释放。C++内存泄露这是很多程序常见的问题，也给初 ...]]></description>
      <category>C++</category>
      <author>admin</author>
      <pubDate>Sun, 08 Jul 2012 08:51:53 +0000</pubDate>
    </item>
  </channel>
</rss>