Tools-Editor Options Use Display tab to edit font Use Syntax tab to edit background, foreground, and text colors.
A simple menu selection program using switch-case-break C++ code sample
Compiler: Visual C++ Express Edition 2005
Compiled on Platform: Windows XP Pro SP2
Header file: Standard
Additional project setting: Set project to be compiled as C++
Project -> your_project_name Properties -> Configuration Properties -> C/C++ -> Advanced -> Compiled As: Compiled as C++ Code (/TP)
Other info: none
To do: Displaying a very simple menu selection using switch-case-break in C++ programming
To show: How to display a very simple menu selection using switch-case-break in C++ programming
// the menu selection C++ sample program
#include <iostream>
using namespace std;
int main(void)
{
char selection;
cout<<'n Menu';
cout<<'n';
cout<<'n A - Append';
cout<<'n M - Modify';
cout<<'n D - Delete';
cout<<'n X - Exit';
cout<<'n Enter selection: ';
// read the input
cin>>selection;
switch(selection)
{
case 'A' :
case 'a' :{cout<<'n To append a recordn';}
break;
case 'M' :
case 'm' :{cout<<'n To modify a record';}
break;
case 'D' :
case 'd' :{cout<<'n To delete a record';}
break;
case 'X' :
case 'x' :{cout<<'n To exit the menu';}
break;
// other than A, M, D and X...
default : cout<<'n Invalid selection';
// no break in the default case
}
cout<<'n';
return 0;
}
Output examples:
Menu
A - Append
M - Modify
D - Delete
X - Exit
Enter selection: a
To append a record
Press any key to continue . . .
Menu
A - Append
M - Modify
D - Delete
X - Exit
Enter selection: M
To modify a record
Press any key to continue . . .
Menu
A - Append
M - Modify
D - Delete
Dev C Dark Menus 2016
X - Exit
Enter selection: d
To delete a record
Press any key to continue . . .
Menu
A - Append
M - Modify
Dev C Dark Menus For Women
D - Delete
Dev C Dark Menus 2017
X - Exit
Enter selection: x
To exit the menu
Press any key to continue . . .
Menu
A - Append
M - Modify
D - Delete
X - Exit
Enter selection: T
Invalid selection
Press any key to continue . . .
Dev-C++ showing its updated UI and new variable browsing options | |
Developer(s) | Bloodshed Software until 2005, Orwell (Johan Mes) since 2011 |
---|---|
Stable release | |
Repository | |
Written in | Delphi |
Operating system | Microsoft Windows, Linux (alpha only) |
Type | Integrated development environment |
License | GNU General Public License |
Website | orwelldevcpp.blogspot.com www.bloodshed.net at the Wayback Machine (archived March 20, 2016) |
Usage |
Dev-C++ is a free full-featured integrated development environment (IDE) distributed under the GNU General Public License for programming in C and C++. It is written in Delphi.
It is bundled with, and uses, the MinGW or TDM-GCC 64bit port of the GCC as its compiler. Dev-C++ can also be used in combination with Cygwin or any other GCC-based compiler.[1]
Dev-C++ is generally considered a Windows-only program, but there are attempts to create a Linux version: header files and path delimiters are switchable between platforms.
Devpaks[edit]
An additional aspect of Dev-C++ is its use of DevPaks: packaged extensions on the programming environment with additional libraries, templates, and utilities. DevPaks often contain, but are not limited to, GUI utilities, including popular toolkits such as GTK+, wxWidgets, and FLTK. Other DevPaks include libraries for more advanced function use. Users of Dev-C++ can download additional libraries, or packages of code that increase the scope and functionality of Dev-C++, such as graphics, compression, animation, sound support and many more. Users can create Devpaks and host them for free on the site. Also, they are not limited to use with Dev-C++ - the site says 'A typical devpak will work with any MinGW distribution (with any IDE for MinGW)'.
Development status[edit]
From February 22, 2005 to June 2011 the project was not noticeably active, with no news posted nor any updated versions released. In a 2006 forum post, lead developer Colin Laplace stated that he was busy with real-life issues and did not have time to continue development of Dev-C++.[2]
There are two forks of Dev-C++ since then: wxDev-C++ and the Orwell version.
wxDev-C++ is a development team that has taken Dev-C++ and added new features such as support for multiple compilers and a RAD designer for wxWidgets applications.
On June 30, 2011 an unofficial version 4.9.9.3 of Dev-C++ was released by Orwell (Johan Mes), an independent programmer,[3] featuring the more recent GCC 4.5.2 compiler, Windows' SDK resources (Win32 and D3D), numerous bugfixes, and improved stability. On August 27, after five years of officially being in a beta stage, version 5.0 was released.[4] This version also has its own separate SourceForge[5] page since version 5.0.0.5, because the old developer isn't responding to combining requests. On July 2014, Orwell Dev-C++ 5.7.1 was released featuring the more recent GCC 4.8.1 which supports C++11.
Notable uses[edit]
On May 4, 2015, The Singapore Prime Minister Lee Hsien Loong posted his Sudoku solver program in C++ on Facebook. In his screen shot, he's using Microsoft Windows and Dev-C++ as his IDE.[6]
Dev C++ Dark Menus 2017
See also[edit]
References[edit]
- ^'Bloodshed Software - Providing Free Software to the internet community'. bloodshed.net. Retrieved 8 September 2015.
- ^'Dev-C++'. sourceforge.net. Retrieved 8 September 2015.
- ^Orwell. 'Dev-C++ Blog'. orwelldevcpp.blogspot.com. Retrieved 8 September 2015.
- ^Orwell. 'Dev-C++ Blog'. orwelldevcpp.blogspot.com. Retrieved 8 September 2015.
- ^orwelldevcpp. 'Dev-C++'. SourceForge. Retrieved 8 September 2015.
- ^'Prime Minister of Singapore shares his C++ code for Sudoku solver'. Ars Technica. Retrieved 8 September 2015.
External links[edit]
- Official website
- Dev-C++ on SourceForge.net
- Dev-C++ Portable on SourceForge.net