-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.cpp
45 lines (41 loc) · 1.57 KB
/
test.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rimney <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/10 19:13:59 by rimney #+# #+# */
/* Updated: 2023/02/20 22:54:17 by rimney ### ########.fr */
/* */
/* ************************************************************************** */
#include "vector/vector.hpp"
#include <iostream>
void ftft()
{
std::vector<int> A;
// for(ft::vector<int>::iterator i = A.begin();i < A.end(); i++)
// {
// // std::cout << i[index] << "<<<< \n"; ??
// std::cout << *i << "<< \n";
// }
A.push_back(1);
A.push_back(2);
A.push_back(3);
A.push_back(4);
A.push_back(5);
A.push_back(6);
std::vector<int> C(A.begin(), A.end());
C.assign(5, 5);
for(std::vector<int>::reverse_iterator i = C.rbegin();i < C.rend(); i++)
{
// std::cout << i[index] << "<<<< \n"; ??
std::cout << *i << "<< \n";
}
// system("leaks containers");
}
int main()
{
ftft();
return (0);
}