Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wektor_cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
wektor_cpp
Commits
5c4606de
Commit
5c4606de
authored
Apr 28, 2026
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
operacja wypisywania
parent
88f2cbc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
wektor.cpp
wektor.cpp
+11
-0
wektor.h
wektor.h
+1
-0
No files found.
wektor.cpp
View file @
5c4606de
...
@@ -40,3 +40,14 @@ void Wektor::set(int idx, int e) {
...
@@ -40,3 +40,14 @@ void Wektor::set(int idx, int e) {
int
Wektor
::
get
(
int
idx
)
{
int
Wektor
::
get
(
int
idx
)
{
return
t
[
idx
];
return
t
[
idx
];
}
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Wektor
&
w
)
{
out
<<
'['
;
for
(
int
i
=
0
;
i
<
w
.
liczba_elementow
;
i
++
)
{
out
<<
w
.
t
[
i
]
<<
", "
;
}
out
<<
']'
;
return
out
;
}
wektor.h
View file @
5c4606de
...
@@ -29,6 +29,7 @@ public:
...
@@ -29,6 +29,7 @@ public:
/** Odczyt wartości spod podanej pozycji. */
/** Odczyt wartości spod podanej pozycji. */
int
get
(
int
idx
);
int
get
(
int
idx
);
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
,
const
Wektor
&
);
};
};
#endif
#endif
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