Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
cptr142_group_project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jared Sexton
cptr142_group_project
Commits
35885381
Commit
35885381
authored
Mar 14, 2018
by
Eddy Marinez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thing
parent
f961d4fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Student.cpp
Student.cpp
+4
-0
Student.h
Student.h
+1
-0
No files found.
Student.cpp
View file @
35885381
...
...
@@ -48,6 +48,7 @@ void Student::displayMenu(){
break
;
case
2
:
// Log Out
cout
<<
"Goodbye."
<<
endl
;
studentMenuActive
=
0
;
break
;
/* Can you have something here that will cause the program to exit the menu when they choose logout?
This can be done with a boolean return type for this function (returns true until they choose to logout, then it returns false)
Or with a separate function like Andrew did in Teacher (you can check his code for a template).
...
...
@@ -140,3 +141,6 @@ void Student::setLevel(int levelIn) {
void
Student
::
setUserName
(
string
userNameIn
)
{
userName
=
userNameIn
;
}
const
bool
Student
::
getMenuActive
()
{
return
studentMenuActive
;
}
\ No newline at end of file
Student.h
View file @
35885381
...
...
@@ -46,6 +46,7 @@ class Student {
void
setUserName
(
string
userNameIn
);
private:
bool
studentMenuActive
=
1
;
string
userName
;
int
level
=
1
;
Questions
questionAsk
;
...
...
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