Search
 
SCRIPT & CODE EXAMPLE
 

CPP

C++ Enumeration Type

#include <iostream>
using namespace std;

enum week { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday };

int main()
{
    week today;
    today = Wednesday;
    cout << "Day " << today+1;
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: how to use comparitor in priority queu in c++ 
Cpp :: polymorphism c++ virtual 
Cpp :: Change Font ImGui 
Cpp :: c++ string not printing 
Cpp :: tic tac toe in cpp 
Cpp :: QMetaObject_invokeMethod 
Cpp :: return value optimization example 
Cpp :: patterns in c++ 
Cpp :: import matrix from excel to matlab 
Cpp :: nlohmann json, writing to json file 
Cpp :: jquery ajax post json asp.net core 
Cpp :: Max / Min Stack in c++ using stl in O(1) time and space 
Cpp :: assignment operator 
Cpp :: 18 in 12 hour time 
Cpp :: how a function gives a pointer as parameter c++ 
Cpp :: who made c++ 
Cpp :: qt how to make a file browser 
Cpp :: program to check smallest num in three numbers in c++ 
Cpp :: c++ short hand if else 
C :: c bold text 
C :: boolean in c 
C :: c program hide console window 
C :: execution time of c program 
C :: yourkill071 
C :: printf c float 
C :: nested loop in c 
C :: check if the c code is a palindrome 
C :: mariadb utf8mb4 
C :: downgrade chrome to previous stable version in linux 
C :: Gemfile.lock`. It is likely that you need to grant write permissions for that path. 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =