Welcome to pickSourcecode.com Login | Register    
pickZy.com
 Home  | search  | games  | General  | C  | C++  | Java  | Php  | Networking  | Visual Basic  | VC++  | Win32  | MFC  | JavaScript  | Jobs  | JavaScript  | Post jobs
Cpp - Using enum       Share
2008-11-03 |  RatheeshTR  | Viewed: 1121  |    0

#include <iostream>
using namespace std;


int main()
{

    enum day            

    {

        Sunday = 1,     

        Monday = 4,         

        Tuesday = 5,

    };

    enum day today;

    today = day(3);

    cout << "The actual value in the variable today is " << today << endl;

    

    return 0;

}


Comments:





Submit comment's

Type:

User Comment's:

Submitted By:
Prof: Software
Tech: C ,Cpp
Send Mail: malathi.v



Related topics
Stack Implementation
cpp stack example

General Topics
iphone free apps 2012 for entertainment use
iphone apps 2012 for entertainment use
recursively delete subdirectories
superb sentences by 7 superb persons
ultimate love letter…
i am sharing my work strategy
to return the key board
freelance writers

Web site contents © Copyright 2007, All rights reserved.
Help | Terms and Conditions | Privacy Policy | About Us