Great advice, I will take it. ;)
Type: Posts; User: Ducky
Great advice, I will take it. ;)
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...
Hi Laserlight,
Thanks for your help.
I modified the code but still getting the same error.
#include <algorithm>
#include <iterator>
#include <vector>
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...
Thank you so much! :)
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...
@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.
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...