Re: Programming Puzzle
From: RoSsIaCrIiLoIA (n_at_esiste.ee)
Date: 07/01/04
- Next message: red floyd: "Re: Can't access static member var from static method. Why?"
- Previous message: Julie: "Re: Event loop and sleep()"
- Maybe in reply to: Scott Jacobsen: "Re: Programming Puzzle"
- Next in thread: RoSsIaCrIiLoIA: "Re: Programming Puzzle"
- Reply: RoSsIaCrIiLoIA: "Re: Programming Puzzle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 01 Jul 2004 16:14:31 GMT
On Mon, 28 Jun 2004 04:16:52 +0300, Ioannis Vranos wrote:
> > Given an array (group) of numbers write all the possible sub groups of
> > this group.
>std::next_permutation and std::prev_permutation. An example:
>#include <algorithm>
>#include <string>
>#include <iostream>
>
>
>int main()
>{
> using namespace std;
>
> string s="abcd";
>
>
> do
> cout<<s<<endl;
> while(next_permutation(s.begin(), s.end()));
>}
and if
unsigned s={12222, 839939, 9393999, 9099999, 98394763, 89383883};
Next_permutation is ok?
if not for me next_permutation==fuochino, deve essere modificata
esiste una soluzione non ricorsiva
- Next message: red floyd: "Re: Can't access static member var from static method. Why?"
- Previous message: Julie: "Re: Event loop and sleep()"
- Maybe in reply to: Scott Jacobsen: "Re: Programming Puzzle"
- Next in thread: RoSsIaCrIiLoIA: "Re: Programming Puzzle"
- Reply: RoSsIaCrIiLoIA: "Re: Programming Puzzle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|