<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<main>
<aside></aside>
</main>
</body>
</html>
#include <vector>
#include <random>
#include <algorithm>
#include <iterator>
#include <iostream>
using namespace std;
vector<int> randomVector(size_t size)
{
vector<int> v(size);
random_device r;
generate(v.begin(), v.end(), [&]{return r();});
return v;
}
int main()
{
vector<int> v(randomVector(100));
copy(v.begin(), v.end(), ostream_iterator<int>(cout, " "));
return 0;
}
#include <iostream>
#include <cstdio>
#include <math.h>
using namespace std;
int main(int argc, char *argv[])
{
int* feel(const short&);
int count = 20;
int* pArrMain = feel(count);
for(int i = 0; i < count; ++i){
if(i % 10 == 0) cout << '\n';
cout << pArrMain[i] << " ";
}
}
int* feel(const short& count = 100){
if(count <= 0) throw runtime_error("Bad size");
int* pArr = new int[count];
for(int i = 0; i < count; ++i)
pArr[i] = rand() % 21;
return pArr;
}
$cipher = MCRYPT_RIJNDAEL_256;
$mode = MCRYPT_MODE_CBC;