[CodeStyle] Basic naming example

[ci skip]
This commit is contained in:
momo5502 2016-11-20 00:19:17 +01:00
parent 0be3c8fc70
commit 8e64acf9fe

View File

@ -1 +1,33 @@
# Code Style
```c++
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();
}
```