-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibtest.cpp
More file actions
36 lines (31 loc) · 793 Bytes
/
libtest.cpp
File metadata and controls
36 lines (31 loc) · 793 Bytes
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
#include <iostream>
#include "./librandomarr/randomarr.hpp"
#include "./librandom/random.hpp"
#include "./libmatrix/matrix.hpp"
#include <vector>
#include <string>
#include <stdlib.h>
using namespace std;
vector<vector<char>> modifyarr(vector<vector<char>> array)
{
char_matrix obj;
return obj.lastall(array);
}
int main(int argc, char const *argv[])
{
vector<vector<char>> arr = {
{'+', 's', '5', '6'},
{'g', '6', 'd', 'd'},
{'g', '6', 'm', '9'}};
vector<vector<char>> newarr = modifyarr(arr);
for (long i = 0; i < newarr.size(); i++)
{
long origsize = newarr[i].size();
for (long j = 0; j < origsize; j++)
{
cout << newarr[i][j] << " ";
}
cout << endl;
}
return EXIT_SUCCESS;
}