| | |
Can someone help me.
![]() |
•
•
Join Date: Nov 2008
Posts: 5
Reputation:
Solved Threads: 0
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
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
It goes like this
c++ Syntax (Toggle Plain Text)
cout << "Do your homework yourself" << endl;
![]() |
Other Threads in the C++ Forum
- Previous Thread: Array/Function problems
- Next Thread: error C2664: 'setStartupDirectory' : cannot convert parameter
| Thread Tools | Search this Thread |
api array based binary bitmap business c++ c/c++ char class classes code coding commentinghelp compile console conversion count decide delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez graph guess gui homeworkhelp homeworkhelper iamthwee ifpug ifstream incrementoperators infinite input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem proficiency program programming project python random read recursion reference rpg string strings temperature template templates test text text-file tree url variable vector video win32 windows winsock word wordfrequency wxwidgets






