Search:

Type: Posts; User: FDHannibal

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,528

    I'm still relatively new to C++ so could you...

    I'm still relatively new to C++ so could you explain what you mean using a vector?
  2. Replies
    7
    Views
    1,528

    The data is coming from a .dat file. I dont know...

    The data is coming from a .dat file. I dont know how many lines there are to read from.
    The in would do the same thing wouldn't? Would it skip over the spaces and move to the number after the name?...
  3. Replies
    7
    Views
    1,528

    Reading Data

    I need to read a data file that has the following structure

    name number number number number number

    I think I understand how the struct thing works. However all the examples...
  4. Replies
    8
    Views
    1,116

    Thank you so much, that fixed everything!

    Thank you so much, that fixed everything!
  5. Replies
    8
    Views
    1,116

    String comparision

    I'm trying to compare if a string is the same forwards as backwards (for example bob is the same backwards as forwards etc)

    I managed to get the string to reverse and store the reverse string in...
  6. Replies
    4
    Views
    1,083

    Nevermind I fixed it!

    Nevermind I fixed it!
  7. Replies
    4
    Views
    1,083

    Thanks for the replies, I did end up getting it...

    Thanks for the replies, I did end up getting it to work.
    However now its gone to crazy on me.



    #include <iostream>
    #include <string>
    #include <fstream>
    #include <cctype>
    using namespace...
  8. Replies
    4
    Views
    1,083

    Changing strings

    I'm trying to take a string and take out any character that isnt a letter so all that is left is the letters with no spaces.



    string line, nospc, nodigit;
    int j = 0;
    line = "jggg665 ...
  9. Replies
    3
    Views
    918

    I figured out another way to do it and it worked...

    I figured out another way to do it and it worked like a charm.

    Thanks for your help!
  10. Replies
    3
    Views
    918

    Ok so I changed all my char variables to string...

    Ok so I changed all my char variables to string types. The compiler comes up with an error talking about implicit conversion. I really have no idea how to fix it. Is there some other way to go about...
  11. Replies
    3
    Views
    918

    Help please!

    Ok I'm very frusterated as this code isnt working right.




    #include <iostream>
    #include <iomanip>

    using namespace std;
    int main()
Results 1 to 11 of 12