c++ - Is it possible to avoid repeating the class name in the implementation file? -


is there way avoid graph:: repetition in implementation file, yet still split class header + implementation? such in:

header file:

#ifndef graph_h #define graph_h  class graph { public:     graph(int n);     void printgraph();     void addedge();     void removeedge(); };  #endif 

implementation file:

graph::graph(int n){} void graph::printgraph(){} void graph::addedge(){} void graph::removeedge(){} 

i'm guessing avoid lots of "unnecessary typing". sadly there's no way rid of scope (as many other answers have told you) class defined function prototypes in nice rows, copy/paste implementation file ctrl-c classname:: on clip board , run line ctrl-v.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -