S
Susan.Adkins
Alright, I must say that the problem my teacher has given us to do has
royally annoyed me.
We are to take a letter *txt file* and then read in the words.
Make 2 seperate lists *even and odd* for the number of occurances...
so the first time a word is entered its going to have an occurance of
one and be in the odd list then it is going to go to the next word see
if its in the odd list. If its not its going to check the even list. if
its in the even list it will add one to the occurance move it to the
odd list and then take it out of the evenlist. same goes for if its
found in the odd list... move then delete.
now i've got it working almost exactly. I just cannot figure out how to
make it in alphabetical order.
my code can be found on
http://mandalicious.com/itzaprincess/program5.htm
beacuse i dont want to post all that code here.. its a lot.
so yes if anyone has any ideas on which way to point me on how to get
my oddlist and even lists sorted... i will love you forever and a day!
thank you
Susan
royally annoyed me.
We are to take a letter *txt file* and then read in the words.
Make 2 seperate lists *even and odd* for the number of occurances...
so the first time a word is entered its going to have an occurance of
one and be in the odd list then it is going to go to the next word see
if its in the odd list. If its not its going to check the even list. if
its in the even list it will add one to the occurance move it to the
odd list and then take it out of the evenlist. same goes for if its
found in the odd list... move then delete.
now i've got it working almost exactly. I just cannot figure out how to
make it in alphabetical order.
my code can be found on
http://mandalicious.com/itzaprincess/program5.htm
beacuse i dont want to post all that code here.. its a lot.
so yes if anyone has any ideas on which way to point me on how to get
my oddlist and even lists sorted... i will love you forever and a day!
thank you
Susan