class Foo
{
static float bar = 5.0f;
};
class Foo
{
static float bar;
};
float Foo::bar = 5.0f;
class Foo
{
static float bar = 5.0f;
};
class Foo
{
static float bar;
};
float Foo::bar = 5.0f;
quote:
Original post by razmataz
Being a bit curt, siaspete
// header.h
#ifndef __FOO_H__ // generated by msvc++
#define __FOO_H__ // generated by msvc++
class Foo {
public:
void bar();
};
#endif
// source.cpp
#include "header.h" // generated by msvc++
void Foo::bar() {} // why cant this also be generated
quote:
Original post by henrym
Has anybody else noticed how stupid this thread is?
quote:
Original post by Useful
Im aware that I can create a generic class and I use the function, but it doesnt help me at all past that. Once I'm done creating the interface for a class, I have to go into the source and rewrite(basiclly) all the same stuff into source.
quote:
Original post by Anonymous Poster
How about an option that recognized that you were lazy and locked you out from the compiler until you actually wanted to put some effort into what you were doing?
Or maybe you'd like an option that made your game for you?
Or surely at least one that took away such tedious tasks as dividing your code into functions, or making sure your variables were the right type?
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more