Please help

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jan 2009
Posts: 5
Reputation: kentaki has a little shameless behaviour in the past 
Solved Threads: 0
kentaki kentaki is offline Offline
Newbie Poster

Please help

 
-2
  #1
Jan 11th, 2009
I need help about a question FOLLOWİNG (please use the c++)
Question is:

1-) You are given a set witl 10 elements.

X: { 23, 13, 25, 43, 45, 26, 10, 2, 27, 44 }
or you can choose any 10 elementsç it is not problem.

2-) You are asked to write a program which can generate subsets of X with specific number of elements.
your program's output should be like this:

X = { 23, 13, 25, 43, 45, 26, 10, 2, 27, 44 }
Enter the number of elements for subset generation : 9 (for example you entered 9 )
SUBSETS WITH 9 ELEMENTS
-----------------------------------
23 13 25 43 45 26 10 2 27
23 13 25 43 45 26 10 2 44
23 13 25 43 45 26 10 27 44
23 13 25 43 45 26 2 27 44
23 13 25 43 45 10 2 27 44
"
"
"
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 2
Reputation: Kevin Waite is an unknown quantity at this point 
Solved Threads: 1
Kevin Waite's Avatar
Kevin Waite Kevin Waite is offline Offline
Newbie Poster

Re: Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 
0
  #2
Jan 11th, 2009
does not seem to be a hard program to write?
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 671
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 
0
  #3
Jan 11th, 2009
What exactly do you mean by subset? as in are you trying to list all the different permutations of the numbers?
Knowledge is power -- But experience is everything
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 5
Reputation: kentaki has a little shameless behaviour in the past 
Solved Threads: 0
kentaki kentaki is offline Offline
Newbie Poster

Re: Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 
0
  #4
Jan 11th, 2009
subset is a mathematical term for example if you have a set contains 3 elements x:{a, b, c, }
so
{a} is a subset of X with 1 elements
{b} is subset of x with 1 elements
{c} is a subset of x with 1 elements
{a,b} is asubset of x with 2 element
{a,c} is a subset of x with 2 elements
{b,c} is a subset of x with 3 elements like this...
I want to write a program that list the subsets specificly .
thank you very much..
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,835
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 503
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 
0
  #5
Jan 11th, 2009
No one is going to write this program for you. You need to make an attempt, then when you get stuck, ask a specific question.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 5
Reputation: kentaki has a little shameless behaviour in the past 
Solved Threads: 0
kentaki kentaki is offline Offline
Newbie Poster

Re: Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 
0
  #6
Jan 11th, 2009
you are exactly right
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 5
Reputation: kentaki has a little shameless behaviour in the past 
Solved Threads: 0
kentaki kentaki is offline Offline
Newbie Poster

Re: Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 
0
  #7
Jan 11th, 2009
if I was able to write this program I did not want help from people.
secondly I had made lots of attempt myself but I had failed and I have only 27 hours to complete this program... thaks for your advice..
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 671
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 
0
  #8
Jan 11th, 2009
So where are your failed attempts, that was the point being made....we didnt say write it correctly then show it us...we said have a go and show us what you have and what it is you are having problems with
Knowledge is power -- But experience is everything
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 12
Reputation: ronjustincase is an unknown quantity at this point 
Solved Threads: 2
ronjustincase ronjustincase is offline Offline
Newbie Poster

Re: Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 
0
  #9
Jan 11th, 2009
I am vehbi your c++ asistant. we gave you this homework for learning c++, i take your ip from admin and checking with the ones that enter lms. you will get 0 and a discipline investigation is strated because of plagarism.
Last edited by ronjustincase; Jan 11th, 2009 at 6:16 pm.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 116
Reputation: Bladtman242 is an unknown quantity at this point 
Solved Threads: 3
Bladtman242 Bladtman242 is offline Offline
Junior Poster

Re: Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 
0
  #10
Jan 11th, 2009
^^ i believe now is the time say: OWNED! /\/[][]/3
Yo god, where do i report a bug?
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC