Purchase Solution

Date Format Conversion Program in C/C++

Not what you're looking for?

Ask Custom Question

Write a program that reads a date in the first format and prints the date in the second format.

Example:
Input: 07/21/1955
Output: july 21, 1955

Purchase this Solution

Solution Summary

The idea is to print out string equivalent of the months and reformat the date as required. For this an array of string is used as follows:
char *m[]={"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};

Note, the index of this array starts from 0, so m[0] corresponds to "January" and m[11] corresponds to "December".
The rest of the program is attached along with its executable in windows.

Solution Preview

The idea is to print out string equivalent of the months and reformat the date as required. For this an array of ...

Purchase this Solution


Free BrainMass Quizzes
Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C# variables and classes

This quiz contains questions about C# classes and variables.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.