Sign in to follow this  

What's up with these keywords?

This topic is 4779 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was looking through C++ keywords in MSDN's reference and found some pretty cool keywords that you don't see often. Some are 'abstract', 'sealed', and 'auto'. After looking at what they do, I wonder if there's any use for them at all (especially auto). Do any of you make use of them?

Share this post


Link to post
Share on other sites
abstract and sealed are C# / Managed C++ only

auto, from msdn:

Few programmers use the auto keyword in declarations because all block-scoped objects not explicitly declared with another storage class are implicitly automatic. Therefore, the following two declarations are equivalent:

void main(){
auto int i = 0; // Explicitly declared as auto.
int j = 0; // Implicitly auto.
}

Share this post


Link to post
Share on other sites

This topic is 4779 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this