Click here to Skip to main content
15,881,882 members
Articles / Programming Languages / C++

Generating Permutations and Combinations in a Random-sized Buffer

Rate me:
Please Sign up or sign in to vote.
4.73/5 (8 votes)
25 Sep 2007CPOL6 min read 56.5K   1K   29  
An article on generating all possible permutations and combinations rapidly in a new and simple manner
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once


#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers
#include <stdio.h>
#include <tchar.h>



// TODO: reference additional headers your program requires here

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
Tunisia Tunisia
- Software / Hardware / Embedded engineer - C/C++ engineer

- IEEE computer society member

- Web page: http://www.abdellatif.netcv.com

Comments and Discussions