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;...
Type: Posts; User: Sektor
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;...
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...
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...
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...
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)
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
...
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)....