Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
szorg5
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
torin
szorg5
Commits
10a6fe9a
Commit
10a6fe9a
authored
10 years ago
by
torin
Browse files
Options
Downloads
Patches
Plain Diff
Házi feladat: PHP list() I. – a könnyebbik fele
parent
35c73bde
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.kdev4/szorg5.kdev4
+21
-0
21 additions, 0 deletions
.kdev4/szorg5.kdev4
CMakeLists.txt
+1
-0
1 addition, 0 deletions
CMakeLists.txt
main.cpp
+41
-3
41 additions, 3 deletions
main.cpp
with
63 additions
and
3 deletions
.kdev4/szorg5.kdev4
+
21
−
0
View file @
10a6fe9a
...
@@ -16,5 +16,26 @@ Name=GCC
...
@@ -16,5 +16,26 @@ Name=GCC
Path=gcc
Path=gcc
Type=GCC
Type=GCC
[Launch]
Launch Configurations=Launch Configuration 0
[Launch][Launch Configuration 0]
Configured Launch Modes=execute
Configured Launchers=nativeAppLauncher
Name=szorg5
Type=Native Application
[Launch][Launch Configuration 0][Data]
Arguments=
Dependencies=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x02\x00\x00\x00\x0c\x00s\x00z\x00o\x00r\x00g\x005\x00\x00\x00\x0c\x00s\x00z\x00o\x00r\x00g\x005)
Dependency Action=Build
EnvironmentGroup=
Executable=file:///home/junior/projects/szorg5/
External Terminal=konsole --noclose --workdir %workdir -e %exe
Project Target=szorg5,szorg5
Use External Terminal=false
Working Directory=
isExecutable=false
[Project]
[Project]
VersionControlSupport=kdevgit
VersionControlSupport=kdevgit
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
1
−
0
View file @
10a6fe9a
...
@@ -2,5 +2,6 @@ cmake_minimum_required(VERSION 2.6)
...
@@ -2,5 +2,6 @@ cmake_minimum_required(VERSION 2.6)
project
(
szorg5
)
project
(
szorg5
)
add_executable
(
szorg5 main.cpp
)
add_executable
(
szorg5 main.cpp
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11"
)
install
(
TARGETS szorg5 RUNTIME DESTINATION bin
)
install
(
TARGETS szorg5 RUNTIME DESTINATION bin
)
This diff is collapsed.
Click to expand it.
main.cpp
+
41
−
3
View file @
10a6fe9a
#include
<iostream>
#include
<iostream>
#include
<string>
#include
<sstream>
template
<
class
T
>
void
unpack
(
std
::
istringstream
&
s
,
T
&
arg
)
{
s
>>
arg
;
}
template
<
class
T
>
void
unpack
(
std
::
istringstream
&&
s
,
T
&
arg
)
{
s
>>
arg
;
}
template
<
class
T
,
class
...
V
>
void
unpack
(
std
::
istringstream
&
s
,
T
&
arg
,
V
&
...
args
)
{
s
>>
arg
;
unpack
(
s
,
args
...);
}
template
<
class
T
,
class
...
V
>
void
unpack
(
std
::
istringstream
&&
s
,
T
&
arg
,
V
&
...
args
)
{
s
>>
arg
;
unpack
(
s
,
args
...);
}
template
<
class
...
T
>
void
unpack
(
std
::
string
s
,
T
&
...
args
)
{
unpack
(
std
::
istringstream
{
s
},
args
...);
}
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
std
::
cout
<<
"Hello, world!"
<<
std
::
endl
;
int
a
;
double
b
;
std
::
string
c
;
unpack
(
"3 4.5 bla"
,
a
,
b
,
c
);
// a = 3; b = 4.5;
std
::
cout
<<
a
<<
":"
<<
b
<<
":"
<<
c
;
return
0
;
return
0
;
}
}
\ No newline at end of file
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