Sorry, but this is such basic information that I can only assume that you have made no effort to figure this out on your own. A basic C++ tutorial or book would answer most of these questions in the first couple of pages. Have you used Google to even try to find this on your own? Even better, you shouldn't ask others to do your homework for you. You won't learn anything that way.