【发布时间】:2014-04-05 07:29:30
【问题描述】:
我看到了一个代码here。
大约在137:
inline bool INISection::ReadString(const char * name, const char * & out) const
{
//...
i tag_index;
if(*name == '\0')
{
//...
tag_index = Iter;
}
else
{
tag_index = BinarySearch(Tags, Length, name);
}
//...
return false;
}
i tag_index; 是什么意思? C++有这个语法吗?
【问题讨论】:
-
一些愚蠢的程序员做了一些愚蠢的 typedef 来混淆代码
-
i可能是typedef。typedef int i,可以位于#include "typedefs.h"[来自你分享的链接] -
为了您的理智,请停止阅读该代码。它是由一个糟糕的程序员制作的。