Classes

So,I was messing around with classes in Microsoft Visual Studio 2010 with c++, and I'm a little bit confused.
So, you can create a class by doing
1
2
3
4
5
6
7
8
class Dog
{
public:
	Dog()
	{
		
	}
};


However, you can also create a class through Project->Add Class in the menu option of Visual Studio. When you do it this way you have a .cpp and a header file to edit and manage, where I can't seem to find these when creating a class in the first method.
Is there a benefit of doing one way over the other, other than neatness?

Thank you for anything help you can throw my way :)
Creating the class through Project->Add Class probably just creates the files and a skeleton of the class. It's just for convenience so that you don't have to do this yourself. Use it if you find it useful.
You could quite as easily create your own cpp and header then include the header in the cpp if you are so inclined.

As Peter says, it's just a shortcut. Results are the same.
Thanks for the help guys :)
Topic archived. No new replies allowed.