📄 exe41.cpp
字号:
// Programming with C++, Second Edition, by John R. Hubbard
// Copyright McGraw-Hill, 2000
// Example E.41 on page 384
// Testing the random_shuffle() algorithm
#include <algorithm>
#include <iostream>
using namespace std;
int main()
{ char* s="ABCDEFGHIJ";
cout << s << '\n';
for (int i=0; i<4; i++)
{ random_shuffle(s,s+10);
cout << s << '\n';
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -