[CodeStyle] Basic naming example
[ci skip]
This commit is contained in:
parent
0be3c8fc70
commit
8e64acf9fe
34
CODESTYLE.md
34
CODESTYLE.md
@ -1 +1,33 @@
|
||||
# Code Style
|
||||
# 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();
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue
Block a user