Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Prog2
/
eloadas_peldak
/
ea_03
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
18708ab7
authored
Feb 22, 2021
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kiirasok jav
parent
4a9c0446
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
valami/valami.cpp
+20
-5
No files found.
valami/valami.cpp
View file @
18708ab7
...
...
@@ -16,22 +16,37 @@ using std::endl;
struct
Valami
{
Valami
()
{
cout
<<
"HAHO megszulettem!"
<<
endl
;
}
~
Valami
()
{
cout
<<
"J
aj, itt a kaszas
!"
<<
endl
;
}
~
Valami
()
{
cout
<<
"J
AJ, vegem van
!"
<<
endl
;
}
};
int
main
()
{
cout
<<
"1."
<<
endl
;
int
db
=
0
;
cout
<<
++
db
<<
". "
;
Valami
o1
;
cout
<<
"2."
<<
endl
;
cout
<<
++
db
<<
". "
;
Valami
o2
;
cout
<<
"3."
<<
endl
;
cout
<<
++
db
<<
". (new) "
;
Valami
*
o3
=
new
Valami
;
cout
<<
" (delete) "
;
delete
o3
;
cout
<<
"--- blokk elott: ---
\n
"
;
{
cout
<<
++
db
<<
". "
;
Valami
o1
;
}
cout
<<
"--- blok utan: ---
\n
"
;
#ifdef _FOR
for
(
int
i
=
0
;
i
<
5
;
i
++
)
cout
<<
"--- For indul ---"
<<
endl
;
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
cout
<<
++
db
<<
". "
;
Valami
o1
;
}
cout
<<
"--- Vege ----"
<<
endl
;
#endif // _FOR
return
0
;
}
...
...
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