Search:
GitHub Login
Preferences
My Notifications
Tickets
Wiki
GitHub
Timeline
Roadmap
Ticket Reports
Search
Context Navigation
Back to Ticket #16692
Ticket #16692
: prova.cc
File prova.cc,
218 bytes
(added by
andrea.bedini@…
,
16 years ago
)
simple program using stl
Line
1
#include
<iostream>
2
#include
<vector>
3
4
int
main
(
int
argc
,
char
*
argv
[])
{
5
std
::
vector
<
int
>
v
;
6
7
for
(
int
i
=
0
;
i
<
10
;
++
i
)
8
v
.
push_back
(
i
);
9
10
for
(
int
i
=
0
;
i
<
10
;
++
i
)
11
std
::
cout
<<
v
[
i
]
<<
std
::
endl
;
12
}
Download in other formats:
Original Format