Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Prog2
/
labor_peldak
/
lab_09
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c68a49e6
authored
Apr 25, 2019
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const_iterator hiba javítás + typo
parent
821e3d2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
genArray3/gen_array_iter3.hpp
+2
-2
genArray3/gen_array_iter3_test.cpp
+1
-1
No files found.
genArray3/gen_array_iter3.hpp
View file @
c68a49e6
...
@@ -137,12 +137,12 @@ public:
...
@@ -137,12 +137,12 @@ public:
}
}
/// indirekció
/// indirekció
T
&
operator
*
()
{
T
&
operator
*
()
const
{
if
(
idx
!=
p
->
siz
)
return
p
->
t
[
idx
];
if
(
idx
!=
p
->
siz
)
return
p
->
t
[
idx
];
else
throw
std
::
runtime_error
(
"Hibas indirekcio"
);
else
throw
std
::
runtime_error
(
"Hibas indirekcio"
);
}
}
/// Szelekció pointerrel (ny
i
l). Címet kell, hogy adjon.
/// Szelekció pointerrel (ny
í
l). Címet kell, hogy adjon.
T
*
operator
->
()
{
T
*
operator
->
()
{
return
&
operator
*
();
return
&
operator
*
();
}
}
...
...
genArray3/gen_array_iter3_test.cpp
View file @
c68a49e6
...
@@ -83,7 +83,7 @@ int main() {
...
@@ -83,7 +83,7 @@ int main() {
/// intarr0-ból létrehozzuk az intarr1-et
/// intarr0-ból létrehozzuk az intarr1-et
Array
<
int
,
100
>
intarr1
(
intarr0
.
begin
(),
intarr0
.
end
());
Array
<
int
,
100
>
intarr1
(
intarr0
.
begin
(),
intarr0
.
end
());
/// Kiírjuk az elemeket.
/// Kiírjuk az elemeket.
PrintArray
(
"
\
b
intarr1"
,
intarr1
);
PrintArray
(
"
\
n
intarr1"
,
intarr1
);
#endif // ELKESZULT >= 14
#endif // ELKESZULT >= 14
#if ELKESZULT >= 15
#if ELKESZULT >= 15
...
...
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