Search
 
SCRIPT & CODE EXAMPLE
 

CPP

C++ Changing Default Value of Enums

#include <iostream>
using namespace std;

enum seasons { spring = 34, summer = 4, autumn = 9, winter = 32};

int main() {

    seasons s;

    s = summer;
    cout << "Summer = " << s << endl;

    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ camera capture 
Cpp :: how to pronounce beaucoup 
Cpp :: void setup() { // put your setup code here, to run once:in m}void loop() { // put your main code here, to run repeatedly:} 
Cpp :: c++ vector move element 
Cpp :: C++14 (gcc 8.3) sample 
Cpp :: forkortelse for intet 
Cpp :: 0-1 knapsack problem implementation of code input array 
Cpp :: convert c++ to c online 
Cpp :: what does map.count() return in c++ 
Cpp :: strong number in c++ 
Cpp :: c++ how to use and or in if 
Cpp :: overwrite windows mbr c++ 
Cpp :: convert datatype of field db browser from text to timedate db browser 
Cpp :: Password codechef solution in c++ 
Cpp :: c++ vector allocator example 
Cpp :: powershell script query mssql windows authentication 
Cpp :: delete[] cpp 
Cpp :: input many numbers to int c++ 
Cpp :: pcl ransac 
Cpp :: segment tree lazy propogation 
Cpp :: cannot access base class members 
Cpp :: copying a file to an array and sorting 
Cpp :: how to writte comment in c++ 
Cpp :: qt unhandled exception handler 
Cpp :: copy constructor in c++ questions 
Cpp :: ex: java script 
Cpp :: convert c++ to python online 
Cpp :: c++ to assembly 
Cpp :: can derived class access base class non-static members without object of the base class 
Cpp :: inverse elment of array c++ 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =