Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
1
142GameCenter
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
Package Registry
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
Nelson Phillips
142GameCenter
Commits
29e356ef
Commit
29e356ef
authored
Mar 12, 2019
by
Kyle Malaguit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autosave
parent
e8d9c884
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
10 deletions
+18
-10
Testings/SaveLoad/2048Data.txt
Testings/SaveLoad/2048Data.txt
+11
-6
Testings/SaveLoad/SaveLoad.cpp
Testings/SaveLoad/SaveLoad.cpp
+6
-3
Testings/SaveLoad/main.cpp
Testings/SaveLoad/main.cpp
+1
-1
No files found.
Testings/SaveLoad/2048Data.txt
View file @
29e356ef
NAME SCORE
NAME SCORE
Mal 54234
Mal 54234
BVB 9240
bvd 10000
BND 6564
vds 10000
CDS 6544
NEL 10000
NKV 5453
PHI 10000
KAL 2434
BAG 10000
BVB 9240
BND 6564
CDS 6544
NKV 5453
KAL 2434
Testings/SaveLoad/SaveLoad.cpp
View file @
29e356ef
...
@@ -16,9 +16,12 @@ void SaveLoad::pushBackNewScoreAndSort(Scores Score){
...
@@ -16,9 +16,12 @@ void SaveLoad::pushBackNewScoreAndSort(Scores Score){
void
SaveLoad
::
displayScores
(){
void
SaveLoad
::
displayScores
(){
cout
<<
"Rank"
<<
"
\t\t
"
<<
"Name"
<<
"
\t\t
"
<<
"Score"
<<
endl
;
cout
<<
"Rank"
<<
"
\t\t
"
<<
"Name"
<<
"
\t\t
"
<<
"Score"
<<
endl
;
for
(
int
i
=
0
;
i
<
10
;
i
++
){
int
i
=
1
;
for
(
auto
score
:
scores
){
cout
<<
i
+
1
<<
"
\t\t
"
<<
scores
.
at
(
i
).
getName
()
<<
"
\t\t
"
<<
scores
.
at
(
i
).
getScore
()
<<
endl
;
cout
<<
i
++
<<
"
\t\t
"
<<
score
.
getName
()
<<
"
\t\t
"
<<
score
.
getScore
()
<<
endl
;
if
(
i
==
11
){
break
;
}
}
}
}
}
...
...
Testings/SaveLoad/main.cpp
View file @
29e356ef
...
@@ -11,7 +11,7 @@ using namespace std;
...
@@ -11,7 +11,7 @@ using namespace std;
int
main
(){
int
main
(){
//check for valid username
//check for valid username
// char userName[3];
// char userName[3];
SL
Snake
second
;
SL
2048
second
;
second
.
LoadContainers
();
second
.
LoadContainers
();
second
.
userInputNameMakeScore
(
10000
);
second
.
userInputNameMakeScore
(
10000
);
...
...
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