Skip to content

Instantly share code, notes, and snippets.

@Intrepidd

Intrepidd/klass.cpp

Created Jul 25, 2011
Embed
What would you like to do?
C++ static
#include <iostream>
#include "klass.hh"
int Klass::doSomething(void)
{
std::cout << "Hello world" << std::endl;
return (42);
}
#ifndef __KLASS__
# define __KLASS__
class Klass
{
public:
static int doSomething(void);
};
#endif
#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