「学习笔记」C++与C++11的语法技巧
随机打乱序列与生成随机数。#include <algorithm> //random_shuffle#include <cstdio>#include <random>using namespace std;int main() { int a[] = {0, 1, 2, 3, 4, 5}, n = 5; srand(1e7 + 7); rand...
原创
2018-10-02 12:23:06 ·
266 阅读 ·
0 评论