Created
July 25, 2011 14:31
-
-
Save Intrepidd/1104248 to your computer and use it in GitHub Desktop.
C++ static
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
WIP |
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
#include <iostream> | |
#include "klass.hh" | |
int Klass::doSomething(void) | |
{ | |
std::cout << "Hello world" << std::endl; | |
return (42); | |
} |
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
#ifndef __KLASS__ | |
# define __KLASS__ | |
class Klass | |
{ | |
public: | |
static int doSomething(void); | |
}; | |
#endif |
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
#include "klass.hh" | |
int main(void) | |
{ | |
Klass::doSomething(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment