hi can you help me with the following?

1.
Can someone give me some example code that will draw a dot moving across the screen (I have no idea what the code would look like since I have negligible documentation for C++.

2.
Can anyone tel me if there are any decent on-line categorized function repositories, so i can look up things like syntax and find out which .H file the functions are stored in?

Thanks.