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
9d6a9d3a
Commit
9d6a9d3a
authored
Mar 07, 2018
by
Andrew Binder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating checkRoster()
parent
b0e3c113
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Teacher.h
Teacher.h
+1
-1
classRoster.txt
classRoster.txt
+1
-0
No files found.
Teacher.h
View file @
9d6a9d3a
...
...
@@ -26,7 +26,7 @@ class Teacher {
void
importProgress
();
// Imports roster/progress from a file
void
enrollStudent
(
string
studentIn
);
// Enrolls a new student; includes error checking
void
adjustProgress
(
string
studentUserNameIn
,
int
level
);
// Changes a students level; includes error checking for student username
int
checkRoster
(
string
student
);
//
Checks to see if a student exists with input string
int
checkRoster
(
string
student
);
//
Returns a student's position on vector if username student exists in vector; Returns -1 if student does not exist
void
endProgram
();
// saves and ends program gracefully
// Accessors
const
string
getUserName
();
...
...
classRoster.txt
View file @
9d6a9d3a
...
...
@@ -14,4 +14,5 @@ levina 4
Andrew 500
Sam 2
Jared 1
bindan 43
END_OF_FILE
\ No newline at end of file
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