Driver Code
int main ( ) { int weights [ ] = { 10 , 7 , 5 , 18 , 12 , 20 , 15 } ; int size = ARRAYSIZE ( weights ) ; generateSubsets ( weights , size , 35 ) ; cout << " Nodes ▁ generated ▁ " << total_nodes << " STRNEWLINE " ; return 0 ; }