Search:

Type: Posts; User: kocmohabt33

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    945

    Here whats in Function(). I didn't copy it...

    Here whats in Function(). I didn't copy it because I used the same coding in other programs( as is) and didn't get any problems, so I thought it wasn't necesary.



    if ((*pos).first != "") {
    ...
  2. Replies
    4
    Views
    945

    Variable For Loops

    I'm try to make a For loop inside a do while loop that varies its (the For's) parameters depending on user input within the while loop. The thing is that it works, but it crashes once the programs...
  3. -_- Wow. Thanks. I guess I should proofread...

    -_-

    Wow. Thanks. I guess I should proofread everything I copy and paste on a program. Lol.
    Thanks a lot. :D
  4. reading a file with getline and skipping lines..

    I don't understand why it's not working.. I've made programs using the same syntax and I haven't had any problems but now for some reason its skipping lines. To be specific: its skipping the first,...
  5. Aight. The other day I read somewhere that you...

    Aight. The other day I read somewhere that you can store strings in arrays. -_-
    I wasn't aware of that. So now I'm doing redoing the whole program combining arrays and maps. It will be much easier....
  6. Thanks for your reply. Can you elaborate a little...

    Thanks for your reply. Can you elaborate a little bit? I'm having difficulties seeing how to apply that.. Remember that in each line there will be different strings and different number values that...
  7. K, thanks. I've been surfing a bit and I found...

    K, thanks. I've been surfing a bit and I found that its a variant of the address book program and most of them are done with some sort of data container so I guess I'll stick to std::maps. Currently,...
  8. Thank you very much for your response tabstop....

    Thank you very much for your response tabstop. Its always 6 fields. I suppose they'll always be in the same order. What strings do u mean can have spaces? The storage strings or the initial strings...
  9. Hi problems with str.substr and reading input files...

    Greetings.

    I'm trying to write a program that reads a txt file one line at a time and then extracting certain words and numbers from that line and storing them into strings and int (or floats),...
  10. I tried that and I got this error: p1...

    I tried that and I got this error:



    p1 being my variable string.

    I would also be really grateful If the code weren't that sophisticated since I'm only starting to learn C++ and my knowledge...
  11. I'm sorry to bother but can u be a little more...

    I'm sorry to bother but can u be a little more explicit as to how I would use that.. (like assigning variables to the STRING in database)...
  12. difference between variables and normal text

    Hi, Im having trouble creating struct variables from user imput. Basically what I'm trying to do is for the user to plug in a string and for the program to create an entry within the struct with that...
  13. cin.ignore(); Thanks a million the program works...

    cin.ignore(); Thanks a million the program works great now...
  14. Hi, I'm having some difficulty with the getline command:

    Ok so im trying to write a simple program that stores user imput and I'm having problems with the getline command. The code is as follows:



    #include <iostream>
    #include <ostream>
    #include...
Results 1 to 14 of 15