The One-Stop Software Outsourcing Solution
|
Login
|
|
Show Bid Request
C++
Bid Request Id: 5618
|
Bookmark
|
Posted by: |
only1raj (12 ratings)
(Software buyer rating 10)
|
Posted: |
11/27/2001 5:48:22 PM EST
|
Bidding Closes: |
12/2/2001 EST
|
Viewed: |
217 times
|
|
|
|
Description:
Synopsis
In this project, you'll write code that generates all subsets of a set of chars.
The user prepares a file with one char per line. All the chars are distinct, i.e. no char appears on two different lines. Your
program reads in this file via the standard input, sorts the chars into ascending order, and then prints out all possible subsets, one
subset per line, to standard output.
Hints
The inequality operators are defined for chars, and you can use them for the sorting part of the project.
You may use any sorting technique you like to sort the data, but you must code one yourself. Don't use a standard library
function to sort.
You can print out the subsets in any order you want, but each subset must itself be sorted.
You may want to use vector to store the chars. Also you can iterate templates if you like. For example, if you want to
create a vector that contains an integer vector in each position, you can use
vector< vector<int> > x;
//The symbols > > must be separated by a space in your code, so that
//the compiler doesn't interpret them as an input operator.
Don't forget that the empty set is also a subset, as well as the whole set itself
Files
Here's a short program that illustrates how the comparison operators for chars behave. They behave pretty much exactly
like you'd expect. For example, a
Deliverables: do what it tell you to do and nothig else
Special Conditions / Other:
need it done by 11/30/2001
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation, you can report it to: abuse@rentacoder.com.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$20
|
11/30/2001 11:55:26 PM EST
|
9.96
(Excellent)
|
|
|
|
|
|
|
|
|
|
Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
- All customer issues addressed within 2 days
- Openly disclosed pricing and return policies
- Participation in mediation at buyer request
- Superior selling track record
This site is verified through it's parent company, Exhedra Solutions, Inc.
|
|
|
See all top coders...
What makes a top coder?
Created in partnership with:
|
|
In memory of the victims and the courageous rescuers of 9/11/2001
|
|