Search
 
SCRIPT & CODE EXAMPLE
 

CPP

12 to december in c++ code

#include <iostream>
#include <string>
using namespace std;

int main()
{
    int m;
    string months[] = {"Jan", "Feb", "Mar", "Apr", "May",
                       "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
    cout << "Enter a month number: ";
    cin >> m;
    cout << "You selected " << months[m-1] << endl;
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: Swap given nodes in a Doubly Linked List without modifying data 
Cpp :: how to find second smallest element using single loop 
Cpp :: C++ Battery Low 
Cpp :: Redragon m609 weight 
Cpp :: convert c++ code to exe 
Cpp :: how to find the mean and standard deviation of trqiing dataset in pytorch 
Cpp :: pum game in c++ 
Cpp :: permutation and combination program in c++ 
Cpp :: rand function c++ 
Cpp :: Consider a pair of integers, (a,b). The following operations can be performed on (a,b) in any order, zero or more times: - (a,b) - ( a+b, b ) - (a,b) - ( a, a+b ) 
Cpp :: what is the format specifier for dword c++ 
Cpp :: remove element from vector c++ by index 
Cpp :: ex:c++ gcc start adress 
Cpp :: online compiler cpp 
Cpp :: c++ max and min of vector 
Cpp :: c++ shift array to the right 
Cpp :: c++ split string by sstream 
Cpp :: c++ for 
Cpp :: bus ticket booking online pakistan 
Cpp :: set elements to 42 back 
Cpp :: tan ^-1 ti 83 
C :: Write a C program to print all unique elements in the array. 
C :: wireless app debug android 
C :: golden cobblestone modpack 
C :: how to print int in c 
C :: how to shutdown system c++ 
C :: atomic variable c 
C :: c Program to check if a given year is leap year 
C :: addition in c 
C :: how make a character in c scanf 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =