IT SOLUTIONS
Your TECHNOLOGY partner! 
-Collapse +Expand
C++
Search C++ Group:

Advanced
-Collapse +Expand C++ Group Home
-Collapse +Expand Message Board
-Collapse +Expand C++ KB
-Collapse +Expand C++ To/From
To/FromCODEGuides
-Collapse +Expand C++ Study Test
PRESTWOODCERTIFIED
-Collapse +Expand C++ Store
PRESTWOODSTORE
-Collapse +Expand Members Only

Prestwood eMagazine

May Edition
Subscribe now! It's Free!
Enter your email:

   ► eMag   All Groups   Print This   
View Group Edition:
Full Edition Your Edition || Prev Next || Subscription Center

Prestwood IT Newsletter Aug 2011 Issue - C++ Edition

Subscribe!

Start subscribing now! It's free!

Each month on or after the 1st, and only once a month, we will send you content from up to 5 community groups. If you select this C++ group, you'll receive the following content below mixed in with the other groups you elect to include.

The Prestwood IT Newsletter
Our monthly opt-in email-only newsletter.
www.prestwood.com
  August 2011 - C++ Edition Year 13 Issue 8  


Expert guidance from working professionals!
Help Wanted! topic:
Link To Prestwood from your Website!
by Mike Prestwood
Link to us from your website and we'll link to your website from our website.

IT Water-Cooler for Power-Users topic:
How To Configure Auto Logon In Windows 7
by Eric Prestwood

Configure your computer to auto log on to a user (even an admin)






 C++ Group Top 
Visit Group | My Group Settings
 Monthly C++ Lesson
C++/CLI Language Basics Topic:
Code Snippet of the Month

C++/CLI supports the const and static const keywords of standard C++ as well as the new literal keyword. A literal is equivalent to static const in standard C++ and Microsoft's documentation recommends to replace static const with the new literal keyword because a leteral is available in metadata; a static const variable is not available in metadata to other compilers.

You can use static const within the class declaration or locally within a method. However, literal is only valid in the class declaration section and const is only valid within a method.

//some method {
const String^ MyName = "John";

static const Int32 MyAge = 27;
//}
// public class SomeClass : public Object {

public:
  literal double Pi = 3.14159;
  literal String^ MyName = "Mike";
  static const Int32 MyAge = 35;
//...
Standard C++ Topic:
FAQ of the Month: C++ Comments
Question: How do you comment code in C++?

Answer:

Use two forward slashes to represent a single line comment:

// This is a C++ style single line comment.

You can also use multiple line comments:

/*
This is a mutliple line comment. This
syntax is borrowed from C.
*/


-
  Load Time=1 seconds.
 
Print This
-
 
Have a question? Need our services? Contact us now.
--Mike Prestwood

Call: 916-726-5675

email: info@prestwood.com


310 People Online Now!!  
Online Now: Sign In to see who's online now!  Not a member? Join now. It's free!
Show More...


©1995-2013 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech