The question is pretty simple, i have a file called "primes.txt " and
funny enough it contains alot of primes (one per line)
Besides that i have an empty vector:
vector<__int64> P(0);
How do i fill that with the contents of the file?
P.push_back(lin e 1);
P.push_back(lin e 2);
ect.
I have tryed different stuff with getline() but it just wont work.
Hope someone can help ASAP.
Regards
Zacariaz
funny enough it contains alot of primes (one per line)
Besides that i have an empty vector:
vector<__int64> P(0);
How do i fill that with the contents of the file?
P.push_back(lin e 1);
P.push_back(lin e 2);
ect.
I have tryed different stuff with getline() but it just wont work.
Hope someone can help ASAP.
Regards
Zacariaz
Comment