任何方式从头创建cpp骨架? [英] Any way to build cpp skeleton from a header?

查看:145
本文介绍了任何方式从头创建cpp骨架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我厌倦了将标题复制粘贴到我的cpp文件,然后黑客在它的正确的形式。有没有人做过程序读头文件并制作相应的cpp框架?



示例

  class A 
{
public:
int DoSomething(int number);
}

会产生以下文件

  int A :: DoSomething(int number)
{
;
}


解决方案

http://www.vim.org/scripts/script.php?script_id=2624


I'm tired of copy pasting the header into my cpp file then hacking at it until its in the correct form. Has anyone made a program to read a header file and make a corresponding cpp skeleton?

Example

class A
{
    public:
        int DoSomething( int number );
}

Would produce the following file

int A::DoSomething( int number )
{
    ;
}

解决方案

http://www.vim.org/scripts/script.php?script_id=2624

这篇关于任何方式从头创建cpp骨架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆