It seems to work now, thanks.
Type: Posts; User: password
It seems to work now, thanks.
Are you sure? It also worked for me, except for that "almost invisible" bug.
Well, people usually prefer the getting a part of the code, so I left out the unrelated stuff. But here's the whole...
I want to split a sentence into words so "foo bar" is split into the two parts "foo" and "bar". I cannot use any standard functions like strtok(...) so I have to do this manually...
I've done many...
I want to make a console application which connects to a certain website trough a specified HTTP-proxy. Is this preferable to do in C++ and what do I need in order to get started?
I have to calculate very large prime numbers. I'm stuck on the first step though.
unsigned long long int n = pow(2.0,257.0) - 1;
cout << n;
That should be 2.32 * 10^77, but in my program it...
I'm trying to replace a string containing the characters 'едц'. It's easy to std::cout them directly to the screen, replacing them was a bit trickier though. This is my solution:
If you can't see...
Oh, I forgot to add that back. I remade the program since I made a change to the original where I separated the sum into many parts. Strangely enough, it worked regardless :/
Ok, thank you..
Yes, I was actually thinking about doing that by separating it into two parts and somehow multiply them with eachother, but gave up on that idea after a while. That GMP library looks interesting...
I simply want a type that can hold something big enough to print the following value when the 'n' constant is equal to at least 100. Is this possible? If not, how can I get this value?
...
True for both.. so why does it return true for them? I searched around for hours and found out that it's even enough to check if it's divisible with any number until the square root of the checked...
I'm making a program that is supposed to get the sum of all prime number in a specified range which is in this case 1 000 000. The program works fine, except that it seems to count some prime numbers...
Something I wrapped up that should work..
#include <iostream>
#include <fstream>
#include <string>
const std::string file = "filename.txt";