Update 'C++GUIDE.md'
This commit is contained in:
parent
870cf7536c
commit
b8d208f2e4
28
C++GUIDE.md
28
C++GUIDE.md
|
@ -212,34 +212,6 @@ namespace sample {
|
|||
|
||||
```
|
||||
|
||||
##### .cpp Example
|
||||
|
||||
```c++
|
||||
/*
|
||||
SPDX - License - Identifier: GPL-3.0-or-later
|
||||
Copyright © 2022 Concordia CERC group
|
||||
Project Coder Guillermo Gutierrez Morote <Guillermo.GutierrezMorote@concordia.ca>
|
||||
*/
|
||||
|
||||
/// \file person.cpp
|
||||
|
||||
#include <memory>
|
||||
#include "person.hpp"
|
||||
|
||||
namespace sample {
|
||||
Person::Person(std::string name)
|
||||
{
|
||||
this->name = name;
|
||||
}
|
||||
|
||||
Person::get_name()
|
||||
{
|
||||
return this->name;
|
||||
}
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
Attributes with known units should be explicit in method's comment.
|
||||
|
||||
```c++
|
||||
|
|
Loading…
Reference in New Issue
Block a user