StatMech
Loading...
Searching...
No Matches
IntegerComposition.cpp File Reference

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)
5 {
6 if(argc != 4) {
7 std::cerr << "Usage: IntegerComposition(int N, int Length, int Max)" << std::endl;
8 std::exit(EX_USAGE);
9 }
10 int N = std::atoi(argv[1]);
11 int Length = std::atoi(argv[2]);
12 int Max = std::atoi(argv[3]);
13 IntegerComposition IC(N,Length,Max);
14
15 IC.status();
16 return 0;
17}
Lists a weak composition of an integer N up to length L with a constraint that each summand does not ...
Definition IntegerComposition.hpp:57