Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Pablo Toharia
charlacompilacion
Commits
cf346155
Commit
cf346155
authored
8 years ago
by
Pablo Toharia
Browse files
Options
Download
Email Patches
Plain Diff
Added functionallity to myclass methods.
parent
e7f54cb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mylib/myclass.cpp
mylib/myclass.cpp
+4
-0
No files found.
mylib/myclass.cpp
View file @
cf346155
...
...
@@ -10,15 +10,19 @@ namespace mylib
}
float
MyClass
::
getAttr1
(
void
)
const
{
return
_attr1
;
}
int
MyClass
::
getAttr2
(
void
)
const
{
return
_attr2
;
}
void
MyClass
::
setAttr1
(
float
attr1
)
{
_attr1
=
attr1
;
}
void
MyClass
::
setAttr2
(
int
attr2
)
{
_attr2
=
attr2
;
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment