Cmaj- CDEFGABC, then count 5 steps upward from C to get to Gmaj- GABCDEF#G, then count another 5 steps up from G to get D-maj= DEF#GABC#D and so on and so forth. Just remember to count 5 steps up from teh root.
Another way to look at it is that every major scale has the pattern WWHWWWH
where W= whole step and H=half step. So Cmaj is this;
C...D...E...F...G...A...B...C
W W H W W W H
Using this formula, you can build a major scale from any note that you want.
I'll give you the root names of the first 5 keys in the circle of fifths and the number of sharps and flats that they have. Figure out the notes in each case.
C= no sharps/flats
G=1 sharp, F#
D= 2 sharps, F# and C#
A= 3 sharps, C#, F# and G#
E= $ sharps, F#, C#, G#, D#
If you still dont understand then google "circle of fifths" and you shoudl get what you want.