【文件属性】:
文件名称:rplusplus:让 C++ 不那么痛苦
文件大小:21KB
文件格式:ZIP
更新时间:2021-06-06 14:16:17
Ruby
R++
让 C++ 不那么痛苦。
R++ 旨在成为命令行实用程序和神奇仙尘的集合,让所有 C++ 怪物消失,让您作为出色的程序员,了解重要的事情。
安装
$ gem install rplusplus
用法
创建一个新项目
使用 Rakefile、gitignore 和一些框架源文件制作一个新的 C++ 应用程序:
$ r++ new MyApp
这将创建一个名为MyApp的文件夹,其中包含一个名为my_app.cpp的主要源文件以及随附的Rakefile和.gitignore文件,以帮助您继续前进。
类生成器
为类生成头文件和源文件骨架:
$ r++ generate class MyClass
这会在当前目录中生成my_class.h和my_class.cpp文件。
在你的 Rakefile 中
注意:此时您仍然需要自己在 Rakefile 中做一些工作。 在exampl
【文件预览】:
rplusplus-master
----rplusplus.gemspec(1KB)
----bin()
--------r++(62B)
----Rakefile(29B)
----Gemfile(94B)
----.rspec(31B)
----examples()
--------Rakefile(2KB)
----spec()
--------commands()
--------command_spec.rb(2KB)
--------support()
--------rplusplus_spec.rb(498B)
--------generators()
--------environment_spec.rb(1KB)
--------spec_helper.rb(238B)
----.gitignore(185B)
----lib()
--------rplusplus()
--------rplusplus.rb(354B)
----README.md(4KB)
----LICENSE.txt(1KB)