Skip to content

WTHIJ/ClassInitiator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ClassInitiator

This script takes one or more filenames as arguments, generates a .cpp and .h file with that name, and writes some basic content into them. The content written into the .cpp file includes an include directive for the corresponding .h file, along with a basic class constructor and destructor. The .h file contains a class declaration with private, protected, and public sections, along with declarations for the constructor and destructor.

To use this script, run it with the desired filename as an argument, like so:

./classinitiator.sh myclassname

This will generate myclassname.cpp and myclassname.h files with the appropriate content.
Additionally, to use this script from anywhere, you can create a bin directory in your home directory (~), move the script there, and reload your session. This way, the script will be executable from any location within your user environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%