Bookmark Topic Watch Topic
  • New Topic

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.
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!