Search:

Type: Posts; User: Adaptron

Search: Search took 0.01 seconds.

  1. Alright, I solved this problem. Works perfect. A...

    Alright, I solved this problem. Works perfect. A little complicated for my level but figured out finally.
    Segmentation fault is solved by using a loop structure for the vector.
    I was giving random...
  2. Actually, I messed it up. I have to use vector of...

    Actually, I messed it up. I have to use vector of vectors, I think.
    Because, I can get the first vector element but after that I get segmentation fault error.
  3. What options do I have? I am trying to create a...

    What options do I have? I am trying to create a dynamic vector of objects and then return a pointer this array in another function.
    Actually, this method also didn't work because I am having...
  4. Ok. Finally got this I think. I am doing...

    Ok. Finally got this I think.
    I am doing something like this


    // Run the matching algorithm
    vector<Match*> matchingUsers = showMatches(client);
    cout <<...
  5. Nobody has answered how to access the class...

    Nobody has answered how to access the class methods through a pointer to a vector though.
  6. How can I access to the class methods though?...

    How can I access to the class methods though?
    For instance:
    users->setName(extract name from file);
    users->setAge(extract age from file);
  7. Return pointer to a vector of objects as a function return

    I hope I can explain what I need to do, that is how lost I am.
    Let's say you have a simple class User. For this purpose let's say really simple class.
    What I am trying to do is to return a vector...
  8. Thank you for sharing. How did you tag your code...

    Thank you for sharing.
    How did you tag your code so that it shows the line numbers?
  9. Cannot believe I asked this questions. Sorry for...

    Cannot believe I asked this questions. Sorry for wasting your time.
    Used parentheses instead of brackets. It's getting late.
  10. Vector compared to a string error message std::vector) (uns

    Hello everyone,
    I am getting this error
    std::vector<std::basic_string<char> >) (unsigned int&)'|
    and cannot figure out what I am doing wrong. There might be more mistakes but cannot pass this...
  11. Perfect. This works. Thank you so much.

    Perfect. This works.
    Thank you so much.
  12. Text file is this Store 1 100 Store 2 200

    Text file is this
    Store 1
    100
    Store 2
    200
  13. This is basically it.

    This is basically it.
  14. ifstream with getline and inputfile.eof() is not working.

    This is not a homework but just a self study.
    I am trying to read the information from inputFile and then loop through the data and display it. However; the below code falls into infinite loop....
Results 1 to 14 of 14