iw4x-client/CODESTYLE.md
2016-11-20 00:20:51 +01:00

459 B

Code Style

namespace SomeNamespace
{
	class SomeClass
	{
	public:
		int someVariable;
		static int SomeStaticVariable;

		void someMethod()
		{
			// [...]
		}

		static void SomeStaticFunction()
		{
			// [...]
		}
	};
}

void Main(int argument)
{
	SomeNamespace::SomeClass someObject;
	someObject.someVariable = 0;
	someObject.someMethod();

	SomeNamespace::SomeClass::SomeStaticVariable = 0;
	SomeNamespace::SomeClass::SomeStaticFunction();
}