I just googled "circle of fifths" and got a lot of info, try it out.
http://www.circle-of-fifths.net/
That site helps you learn and understand it.
Basically sharps are added clockwise. Flats counter-clockwise. You kind of have to memorize the layout and the key names.
http://en.wikipedia.org/wiki/Circle_of_fifths
Thats the wiki
After you use Google and do some research come back and ask what you don't understand.