Created
January 12, 2014 17:23
-
-
Save zedtux/8387676 to your computer and use it in GitHub Desktop.
C++: Les fonctions “inline”
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class A | |
| { | |
| private: | |
| int size; | |
| int height; | |
| int width; | |
| public: | |
| A(); | |
| ~A(); | |
| void setSize( int size ); | |
| void setHeight( int height ); | |
| void setWidth( int with ); | |
| inline getSize() const | |
| { | |
| return this->size; | |
| } | |
| inline getHeight() const | |
| { | |
| return this->height; | |
| } | |
| inline getWidth() const | |
| { | |
| return this->width; | |
| } | |
| }; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://newblog.zedroot.org/c-les-fonctions-%E2%80%9Cinline%E2%80%9D/