Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- #include <cstdlib>
- #include <algorithm>
- using namespace std;
- int z;
- int main()
- {
- int x;
- z=0;
- z++;
- cout<<"\t ***GROUP:"<<z<<"***"<<endl;
- std::string name[3] = {"\t PURE", "\t FAKE", "\t FAKE"};
- std::sort(name,&name[3]);
- int y= 1;
- do{
- std::cout<<"R:"<<y;
- for( x = 0; x < 3; x++ )
- {
- std::cout<<name[x];
- if (x < 3 - 1)std::cout<<"";
- }
- y++;
- std::cout<<std::endl;
- }while(next_permutation(name,&name[3]));
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement