【发布时间】:2013-01-30 11:00:48
【问题描述】:
可能重复:
Script for separating implementation from headers in a .h file
我有一个包含源代码的大头文件,如下所示:
class test_class_t
{
public:
test_proc()
{
// source code
}
}
有没有一个工具可以从头文件中分解 c++ 源代码并给我两个这样的文件:
//标题:
class test_class_t
{
public:
void test_proc();
}
// 来源:
void test_class_t::test_proc()
{
}
谢谢。
【问题讨论】:
-
这些工具被称为重构工具。一些 IDE 可以做这种事情。
-
RAD 工作室中的重构只重命名。你确定吗?
-
"possible duplicate of ..." 我看到了,那个问题没有合适的答案,“预处理”在 linux 上。我想要 Windows。
标签: c++ c++builder visual-c++