Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

permutations  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
hey thr.. i nid some in C++!
I want to make a program that uses a text file which contains a number of english wrds. This program then asks the user to type in a number of words, the program then forms a permutation of these words.
e.g if the user types in "he", "is", "a", "good", "man", the program forms permutations.. He is a good man
Man he is a good
Good man he is a
A good man he is.. etc.

Each permutation is compared with the sentences in the file. If the permutation is one of the sentences which occurs in the file, it's is added to a linked list... the program will be terminated by typing the word "end"..
When the program terminates, it should sort all the sentences in the linked list in alphabetical order and prints them...
*-------------------------------------------------------*

Please help, i got no idea of what to do..
 
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate post - please follow up here.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!