Comparing a string in input to a dictionary file

Hi all guys! I will explain better myself. What I would like to do is:

- input a string (char as I will ONLY type words)
- automatically scramble the letters of the input string
- if scrambling the string a word equals to a word into a file called "dictionary.txt", the program will print that word


Like: oellh

Scramble:

Olelh
Olleh
Hello

I found: "Hello"!


Hope You guys can help me out on this! Thanx to who will help me out! :)
input a string (char as I will ONLY type words)


Char is a character. As in A,B,C etc. String is a string of characters. They are two very different things. You want a string, nothing to do with a char.

Also. This looks like homework, We dont do homework here. Use the internet to your advantage and atleast get started on this. Once you've worked on it and showed us that, we'll help out
This is for my knowledge, I already know a bit of c++ but not at this levels and if I am here is to learn!
Topic archived. No new replies allowed.