C++

Completado Publicado Nov 27, 2001 Pagado a la entrega
Completado Pagado a la entrega

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 > 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**<a are="" all="" true.="" use="" as="" test="" program.="" an="" implentation="" of="" bit_string="" program="" discussed="" class.="" run="" what="" might="" look="" using="" sample="" input="" file="" gave="" you="" above.="" this="" output="" slightly="" off.="" there="" should="" be="" blank="" line="" at="" very="" beginning="" empty="" but="" for="" some="" reason="" i="" get="" show="" up="" the="" main="" thing="" to="" see="" that="" each="" individual="" subset="" is="" sorted.="" it="" matter="" if="" your="" appear="" in="" a="" different="" order.="" subsets="">< [url removed, login to view] z k kz f fz fk fkz a az ak akz af afz afk afkz pegasus%</a>**

## **<a are="" all="" true.="" use="" as="" test="" program.="" an="" implentation="" of="" bit_string="" program="" discussed="" class.="" run="" what="" might="" look="" using="" sample="" input="" file="" gave="" you="" above.="" this="" output="" slightly="" off.="" there="" should="" be="" blank="" line="" at="" very="" beginning="" empty="" but="" for="" some="" reason="" i="" get="" show="" up="" the="" main="" thing="" to="" see="" that="" each="" individual="" subset="" is="" sorted.="" it="" matter="" if="" your="" appear="" in="" a="" different="" order.="" subsets="">Deliverables</a>**

**<a are="" all="" true.="" use="" as="" test="" program.="" an="" implentation="" of="" bit_string="" program="" discussed="" class.="" run="" what="" might="" look="" using="" sample="" input="" file="" gave="" you="" above.="" this="" output="" slightly="" off.="" there="" should="" be="" blank="" line="" at="" very="" beginning="" empty="" but="" for="" some="" reason="" i="" get="" show="" up="" the="" main="" thing="" to="" see="" that="" each="" individual="" subset="" is="" sorted.="" it="" matter="" if="" your="" appear="" in="" a="" different="" order.="" subsets="">do what it tell you to do and nothig else</a>**

## **<a are="" all="" true.="" use="" as="" test="" program.="" an="" implentation="" of="" bit_string="" program="" discussed="" class.="" run="" what="" might="" look="" using="" sample="" input="" file="" gave="" you="" above.="" this="" output="" slightly="" off.="" there="" should="" be="" blank="" line="" at="" very="" beginning="" empty="" but="" for="" some="" reason="" i="" get="" show="" up="" the="" main="" thing="" to="" see="" that="" each="" individual="" subset="" is="" sorted.="" it="" matter="" if="" your="" appear="" in="" a="" different="" order.="" subsets="">Deadline information</a>**

**<a are="" all="" true.="" use="" as="" test="" program.="" an="" implentation="" of="" bit_string="" program="" discussed="" class.="" run="" what="" might="" look="" using="" sample="" input="" file="" gave="" you="" above.="" this="" output="" slightly="" off.="" there="" should="" be="" blank="" line="" at="" very="" beginning="" empty="" but="" for="" some="" reason="" i="" get="" show="" up="" the="" main="" thing="" to="" see="" that="" each="" individual="" subset="" is="" sorted.="" it="" matter="" if="" your="" appear="" in="" a="" different="" order.="" subsets="">need it done by 11/30/2001</a>**

Programación en C Ingeniería MySQL PHP Arquitectura de software Verificación de software

Nº del proyecto: #2832807

Sobre el proyecto

13 propuestas Proyecto remoto Activo Dec 1, 2001

Adjudicado a:

sammyleong

See private message.

$17 USD en 14 días
(80 comentarios)
5.2

13 freelancers están ofertando un promedio de $28 por este trabajo

oleg21

See private message.

$11.9 USD en 14 días
(137 comentarios)
7.0
cinterosystems

See private message.

$17 USD en 14 días
(139 comentarios)
5.6
sanatanvw

See private message.

$21.25 USD en 14 días
(72 comentarios)
5.5
ij1402

See private message.

$17 USD en 14 días
(37 comentarios)
4.6
vw139994vw

See private message.

$34 USD en 14 días
(60 comentarios)
4.5
belovlabs

See private message.

$21.25 USD en 14 días
(33 comentarios)
4.0
Meg341

See private message.

$10.2 USD en 14 días
(14 comentarios)
3.5
coolbeanzco

See private message.

$12.75 USD en 14 días
(12 comentarios)
2.1
consultantvw

See private message.

$42.5 USD en 14 días
(2 comentarios)
1.9
micutusl

See private message.

$12.75 USD en 14 días
(3 comentarios)
1.8
bhaskarjoshi

See private message.

$63.75 USD en 14 días
(4 comentarios)
1.7
anua3

See private message.

$85 USD en 14 días
(0 comentarios)
0.0