Search:

Type: Posts; User: jxmuller

Search: Search took 0.01 seconds.

  1. Now lets see if I can stay awake long enough to...

    Now lets see if I can stay awake long enough to get the print order in descending order of frequency and also to ignore punctuation in file.txt. Ahh screw it.
  2. You, are a genius. If you were here I would kiss...

    You, are a genius. If you were here I would kiss you. My wife would just simply have to deal with it.
  3. Ok I ran this from my PC here at home (I had been...

    Ok I ran this from my PC here at home (I had been using telnet to the linux machines at school) and it worked flawlessly. Now when I telnet into school its a no go. No compile errors. The program...
  4. Alrighty all new one here. Still doesn't work but...

    Alrighty all new one here. Still doesn't work but I think this is much better. If anyone has insight as to why this is not working let me know.



    #include <iostream>
    #include <string>
    #include...
  5. So I compile with g++ map.cpp Then i type a.out...

    So I compile with g++ map.cpp
    Then i type a.out and it prints :pass 2 arguments: <fileCount> <fileIgnore>

    You want me yo run it like: "a.out 3 4" ?

    I can see me being annoying with this...
  6. laserlight I spent a good 5 minutes trying to...

    laserlight I spent a good 5 minutes trying to figure out how I could use that in my program. I will put more time in on it as you are now the second person to suggest maps. You laid it out in a...
  7. It still counts every word in the test file...

    It still counts every word in the test file though :( I swear I am going to cry.
  8. Thanks I got it to write ignore.dat one word per...

    Thanks I got it to write ignore.dat one word per line!! So simple .. but not for a newbie
  9. Dont think of this as rude but... This is the...

    Dont think of this as rude but... This is the last assignment and its due tomorrow morn. here is the specifications:

    Write a c++ program to read a file (designated by the user) and count the...
  10. The only thing I can find researching this is if...

    The only thing I can find researching this is if I could get my ignore.dat file to write one word per line:
    word
    another
    things
    help

    Instead of how it is writing now: word another things help...
  11. Yes the counter is reset before each count. here...

    Yes the counter is reset before each count. here is my current code:



    #include<iostream>
    #include<cstdlib>
    #include<fstream>
    #include<iomanip>
    #include<cctype>
    #include<string>
  12. I am about to die trying to figure this out. Soon...

    I am about to die trying to figure this out. Soon I will be pushing daisies. :confused:
  13. I have changed a few things around (ultimately I...

    I have changed a few things around (ultimately I still have what I started with) and nothing seems to get this thing to ignore words from ignore.dat :(
  14. I think perhaps my ignore.dat file is being...

    I think perhaps my ignore.dat file is being written wrongly:

    [ignore.dat]
    word test need dookie
    [\ignore.dat]

    I think it needs to be:
    [ignore.dat]
    word
    test
  15. Now the problem is my program is not ignoring...

    Now the problem is my program is not ignoring words located in the ignore.dat file. Option 2 allows me to enter words to be ignored and that works fine (the file is created and words are added). But...
  16. Ok now my word count is correct. I understand why...

    Ok now my word count is correct. I understand why now.

    I also got my menu option 3 to work... somehow i missed case 3
  17. DOH: I just noticed that the word count is always...

    DOH: I just noticed that the word count is always off now by +1. If I have 10 words it says 11. If I have 5 words it thinks I have 6. I will try to figure this one out.

    Edit:

    Well now it doesnt...
  18. Thanks that worked wonderfully. Now I need to try...

    Thanks that worked wonderfully. Now I need to try and finish by printing each word and the number of occurences of each word in the test.txt file!!!

    Thanks again.
  19. Sorry about posting the entire code, I just read...

    Sorry about posting the entire code, I just read the FAQ. If it helps I think my problem is after the last void. Its not reading the file like I think it should be. Maybe I am just doing it wrong.
  20. No errors just doesn't do what its supposed to.

    I know its my fault it doesnt work, I have only been learning c++ for a month. I did pretty good with this except when it reads the file the word count is always 0.
    This is supposed to look at a...
Results 1 to 20 of 20