#include<algorithm> #include<iostream> using namespace std; #include<algorithm> int main() { int a[3]={1,2,3}; do { int i; for(i=0;i<3;i++) { cout<<a[i]; } cout<<endl; }while(next_permutation(a,a+3)); return 0; }
标签:cout stream ios pos namespace ace space gpo main
#include<algorithm> #include<iostream> using namespace std; #include<algorithm> int main() { int a[3]={1,2,3}; do { int i; for(i=0;i<3;i++) { cout<<a[i]; } cout<<endl; }while(next_permutation(a,a+3)); return 0; }
标签:cout stream ios pos namespace ace space gpo main
原文地址:https://www.cnblogs.com/zhangshuyao/p/8672981.html