Can someone help me.

Reply

Join Date: Nov 2008
Posts: 5
Reputation: chchiu is an unknown quantity at this point 
Solved Threads: 0
chchiu chchiu is offline Offline
Newbie Poster

Can someone help me.

 
0
  #1
Dec 4th, 2008
How to write a program that output the number of different ways of arranging the number so that the displayed numbers add up to a fixed sum inputed byt the used.

For example, suppose the sum is 4. There are 8 different arrangements. It has to be listed in dictionary order.
1 1 1 1
1 1 2
1 2 1
1 3
2 1 1
2 2
3 1
4
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,786
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 115
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: Can someone help me.

 
0
  #2
Dec 5th, 2008
It goes like this
  1. cout << "Do your homework yourself" << endl;
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC