Oh, I never knew that! Thanks for the enlightenment, vart!
Type: Posts; User: EdSquareCat
Oh, I never knew that! Thanks for the enlightenment, vart!
Also, if I wanted to increase the number to a very high one, how would I get it to display all the numbers, instead of only the last few?
I'm in the process of teaching myself C++ as well. I have a nice Deitel book that's perfect for self teaching. I'm still in the early stages, but what has helped me is to copy down example code and...
Oh I get it now! Thanks for not giving up on me :) Hmm that b * b was a good idea, although I'm not exactly sure why it never skips a number.
#include <iostream>
using std::cout;
using...
Oh crap your right, its just odd numbers. I made a typo with true/false. My original output was prime numbers from 503 to 997:
#include <iostream>
using std::cout;
using std::cin;
using...
EDIT:
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
Prime Numbers 2 - 1000
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
Thanks, robatino, the problem was that I didn't initialize. Agh that was supposed to say += not = !!! Haha thats why I got all those 1's :)
Roll 2 dice 36000 times and tally the results using an array.
I'm very confused.
My program:
#include <iostream>
Hmm I created my account sometime earlier this year, I think. That's probably what happened. No biggy i guess.
I guess that's why your the Absent minded programmer :p
I'm in highschool. Last day: June 21. That is, if we don't get any more bomb threats. Sentral nice sig :)
I tried to log in, and it seems my account doesn't exist any longer. This was proven when i created the same user name over again without a problem. Does it get deleted after a certain amount of...