Ok thanks. I understand why I need it now. Thanks for all the help. If I need more I'll come and ask, as for now, I got some learning to do!
Thanks and bye people.
Thanks alot treenef, your help...
Type: Posts; User: pukebucket
Ok thanks. I understand why I need it now. Thanks for all the help. If I need more I'll come and ask, as for now, I got some learning to do!
Thanks and bye people.
Thanks alot treenef, your help...
Ok I'll try to explain your code to show how much I understand.
char array[100]="treenef"; //Declares a charactor array called array,
of 100 bytes and saves treenaf into it
int...
I see. No I don't think I could. My tutor is looking pretty bad right now. He taught us nothing like that.
To dwk: I'm not sure that I understand your code.
Sorry to be a pain people :(
Yes I understand that, It would print all 7 charactors stored in the array.
Ok. So, is the ctrie part the letter count thing?
Also, do you have msn? It would be easy to talk that way :)
And thanks again for the help :D
I don't quite understand it, so I'm going to re-read it quick.
That's what I was reading!
No wait, I didn't copy it. I read the whole thing, and got an understanding of it and then tried to make his one do what my one has to do. His one couldn't write it to a file. I am not going to use...
I've run into a problem. At
for (vai = all->begin(); vai != all->end(); vai++, cnt++)
cout << cnt + 1 << " " << *vai << endl;
char *strcpy ( char ans, const char *vai ); ...
Thank you so much :D This page looks very useful. He didn't specify how to do it, he just told us to do how ever we want :S
I'll do as you said and come back if I need more help. Once again,...
Ok. From one of your previous posts, you said to use
char word[MAX_WORD_SIZE][FILE_SIZE];
ifstream b_file;
int i;
for(i =0; i < FILE_SIZE; i++)
b_file.in >> word[i];
I see. So this means that my program will take along time to solve all ten?
Well the file is large so I found the largest one I could (12 charectors) but said 15 to be sure. Sorry if this complicates things I didn't realise how important it is. I though it was like when you...
The biggest word is 15 charectors.
Thanks for your help people, it is very appreciated.
Well, I know how to read strings from a text file using something like
ifstream b_file
But it only reads the first string. I don't know how to make it go to the next one after it has done...
Thats exactly what I mean :)
To Treenef - Yes I know, I meant they are random charactors. I should have explained it better. And he gave me a text file with all the unjumbled "words" (if you can...
I'm sorry, this is what I mean.
File.txt (scrambled)
atc
malnia
erab
new_file.txt(unscrambled)
cat animal bear
They have to be in the order in which they are written in the text file. For example, the jumbled words would be like this;
word1
word2
word3
And unscrambled would have to look like this;
I was wondering how to make a program that would;
1) Read a text file with about ten scrambled words in it, seperated by a line each.
2) Somehow unscrable the words using a wordlist given to me...