Search:

Type: Posts; User: Sektor

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,155

    Oh hehe, thanks. It came out that tabs are evil...

    Oh hehe, thanks. It came out that tabs are evil both on this message board and when executing my program. I fixed that part of it.


    #include <iostream>

    using std::cin;
    using std::cout;...
  2. Replies
    3
    Views
    2,155

    Knight's Tour: couting problems

    Hey, for some reason when I try and compile and build my code, it's giving me errors...
    NOTES: Spacing is odd only when I post the code on the message board


    #include <iostream>

    using...
  3. Replies
    3
    Views
    1,723

    ohh, thanks :). It's always good to have another...

    ohh, thanks :). It's always good to have another pair of eyes :) . Yeah, ill follow up on the switches. thanks for the tip!

    I just switched the '=' to '==' but now none of the values of b are...
  4. Replies
    3
    Views
    1,723

    Calendar Program. What am I doing wrong?

    Hey everyone. I'm typing up a program which prints out a calendar for any month and year (starting with 1 A D) which the user inputs. I found a general algorithm for calculating the first day of the...
  5. hehe, it came out the question itself was asking...

    hehe, it came out the question itself was asking me to use the Sieve of Eratosthenes to carry out this program :D . Thanks, I'll try my best to work this out (im still new at programming)
  6. That's the problem... I dont know how to do it...

    That's the problem... I dont know how to do it really... can you guide me through it?
    I'll try and start the program over... I think I'd need modulus for it.



    ode:
    // 4.29
    // Prime Number
    ...
  7. Finding and Printing prime numbers using arrays

    Hi everyone. I'm trying to write a code which will find and print out every prime number between 1 and 1000 using a 1000 element array (NOTE: I am not allowed to use the prime number function)....
Results 1 to 7 of 7