why waste time typing std::cout all the time? just use
using namespace std;
before int main ()
also, you can just go to http://rafb.net/paste/results.html
look at other people's code and improve it. it's good practice.
Windows: A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.