Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
harmadik_beadando_UHK213
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Monoki Dorina
harmadik_beadando_UHK213
Commits
b29eb3e1
Commit
b29eb3e1
authored
1 year ago
by
Monoki Dorina
Browse files
Options
Downloads
Patches
Plain Diff
fajlbeolvasason dolgozom
parent
22e60b5b
Loading
Loading
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
fe1.txt
+1
-0
1 addition, 0 deletions
fe1.txt
gamemaster.cpp
+8
-5
8 additions, 5 deletions
gamemaster.cpp
gamemaster.hpp
+1
-0
1 addition, 0 deletions
gamemaster.hpp
mo1.txt
+1
-0
1 addition, 0 deletions
mo1.txt
save.txt
+9
-0
9 additions, 0 deletions
save.txt
with
20 additions
and
5 deletions
fe1.txt
0 → 100644
+
1
−
0
View file @
b29eb3e1
985601000006540021000030000807904100530007986190800000003070600020085300708306000
\ No newline at end of file
This diff is collapsed.
Click to expand it.
gamemaster.cpp
+
8
−
5
View file @
b29eb3e1
...
...
@@ -5,7 +5,7 @@ using namespace std;
GameMaster
::
GameMaster
(
std
::
string
mo
,
std
::
string
fe
)
:
_fajl_megoldas
(
mo
),
_fajl_feladat
(
fe
)
{
_megoldas
=
fajl_beolvasas
(
_fajl_megoldas
);
//
_megoldas = fajl_beolvasas(_fajl_megoldas);
_feladat
=
fajl_beolvasas
(
_fajl_feladat
);
_save
=
_feladat
;
_fajl_save
=
"save.txt"
;
...
...
@@ -61,16 +61,18 @@ bool GameMaster::szabalyos_e(Index jelenlegi)
std
::
vector
<
std
::
vector
<
int
>>
GameMaster
::
fajl_beolvasas
(
std
::
string
fajlnev
)
{
std
::
ifstream
fajl
(
fajlnev
);
std
::
ifstream
fajl
;
fajl
.
open
(
fajlnev
);
std
::
vector
<
std
::
vector
<
int
>>
teljes
;
for
(
int
i
=
0
;
i
<
9
;
i
++
)
{
int
szam
;
std
::
vector
<
int
>
sor
;
for
(
int
j
=
0
;
i
<
9
;
i
++
)
for
(
int
j
=
0
;
j
<
9
;
j
++
)
{
int
szam
;
fajl
>>
szam
;
cout
<<
szam
<<
endl
;
sor
.
push_back
(
szam
);
}
fajl
>>
ws
;
...
...
@@ -87,7 +89,8 @@ void GameMaster::save()
void
GameMaster
::
fajl_kiiras
(
std
::
string
fajlnev
,
std
::
vector
<
std
::
vector
<
int
>>
v
)
const
{
std
::
ofstream
fajl
(
fajlnev
);
std
::
ofstream
fajl
;
fajl
.
open
(
fajlnev
);
for
(
vector
<
int
>
sor
:
v
)
{
...
...
This diff is collapsed.
Click to expand it.
gamemaster.hpp
+
1
−
0
View file @
b29eb3e1
...
...
@@ -4,6 +4,7 @@
#include
"application.hpp"
#include
<vector>
#include
<fstream>
#include
<iostream>
// for debug
class
GameMaster
{
...
...
This diff is collapsed.
Click to expand it.
mo1.txt
0 → 100644
+
1
−
0
View file @
b29eb3e1
985621473376549821241738569867954132534217986192863754453172698629485317718396245
\ No newline at end of file
This diff is collapsed.
Click to expand it.
save.txt
0 → 100644
+
9
−
0
View file @
b29eb3e1
214748364721474836472147483647214748364721474836472147483647214748364721474836472147483647
214748364721474836472147483647214748364721474836472147483647214748364721474836472147483647
214748364721474836472147483647214748364721474836472147483647214748364721474836472147483647
214748364721474836472147483647214748364721474836472147483647214748364721474836472147483647
214748364721474836472147483647214748364721474836472147483647214748364721474836472147483647
214748364721474836472147483647214748364721474836472147483647214748364721474836472147483647
214748364721474836472147483647214748364721474836472147483647214748364721474836472147483647
214748364721474836472147483647214748364721474836472147483647214748364721474836472147483647
214748364721474836472147483647214748364721474836472147483647214748364721474836472147483647
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment