Search:

Type: Posts; User: password

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    27,840

    It seems to work now, thanks.

    It seems to work now, thanks.
  2. Replies
    4
    Views
    27,840

    Are you sure? It also worked for me, except for...

    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...
  3. Replies
    4
    Views
    27,840

    Split sentence into words

    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...
  4. Replies
    1
    Views
    2,452

    Connection to website using Proxy

    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?
  5. Replies
    2
    Views
    5,030

    Checking very large prime numbers

    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...
  6. Replies
    2
    Views
    1,206

    Quick question about characters

    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...
  7. Thread: Large numbers

    by password
    Replies
    9
    Views
    1,707

    Oh, I forgot to add that back. I remade the...

    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..
  8. Thread: Large numbers

    by password
    Replies
    9
    Views
    1,707

    Yes, I was actually thinking about doing that by...

    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...
  9. Thread: Large numbers

    by password
    Replies
    9
    Views
    1,707

    Large numbers

    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?


    ...
  10. Replies
    3
    Views
    2,304

    True for both.. so why does it return true for...

    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...
  11. Replies
    3
    Views
    2,304

    Prime number check

    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...
  12. Replies
    5
    Views
    1,621

    Something I wrapped up that should work.. ...

    Something I wrapped up that should work..



    #include <iostream>
    #include <fstream>
    #include <string>

    const std::string file = "filename.txt";
Results 1 to 12 of 12