Search:

Type: Posts; User: Ducky

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    12,722

    Great advice, I will take it. ;)

    Great advice, I will take it. ;)
  2. Replies
    15
    Views
    12,722

    Yeah with #include it compiles. Its...

    Yeah with #include <string> it compiles.
    Its interesting because sometimes you dont need to include <string> if <iostream> is included. Now I understand that it must depend on the functions.
    Anyway...
  3. Replies
    15
    Views
    12,722

    Hi Laserlight, Thanks for your help. I...

    Hi Laserlight,

    Thanks for your help.
    I modified the code but still getting the same error.



    #include <algorithm>
    #include <iterator>
    #include <vector>
  4. Replies
    15
    Views
    12,722

    Thanks grumpy, Can you help me make...

    Thanks grumpy,

    Can you help me make set_difference work with strings?
    I get the error: could not deduce template argument for 'const std::vector<_Ty,_Ax> &' from...
  5. Replies
    15
    Views
    12,722

    Thank you so much! :)

    Thank you so much! :)
  6. Replies
    15
    Views
    12,722

    Hi and thanks Elysia, int i = 0; if(word...

    Hi and thanks Elysia,


    int i = 0;
    if(word == myvector2[i]) does not compile either:

    "error C3493: 'myvector2' cannot be implicitly captured because no default capture mode has been...
  7. Replies
    15
    Views
    12,722

    @std10093...

    @std10093
    Hi, no if you cout myvector2.at(0), it gives you the whole string.
    I replaced strcmp with "==" by the way in the code because its a string vector.
  8. Replies
    15
    Views
    12,722

    Compare elements of string vector

    Hi,

    I'm trying to write a program to compare two lists of names and find the missing ones.
    I thought about to put them in two vectors and compare them one by one.
    This is how I started out and I...
Results 1 to 8 of 8