Dev C++ Using Namespace Stdrenewjungle



Micheal main modified BGI library for windows application to be used under MinGW.This BGI library is renamed as WinBGIm.Now you can use all the borland specific functions under Dev-C++.

Installation :

  1. Install Dev-C++. I installed from the Version 4.9.9.2 Setup File.
  2. Download graphics.h to the include/ subdirectory of the Dev-C++ directories.
  3. Download libbgia. to the lib/ In order to use the WinBGIm subdirectory of the Dev-C++ directories.

Configuration :
At last you’ve downloaded & installed the WinBGIm,now you have to configure it to use under Dev-C++.You’ve to set some project options in Dev-C++ in order to run WinBGIm references properly.
Follow the steps below to set proper project options for WinBGIm.

Bloodshed Dev-C is a full-featured Integrated Development Environment (IDE) for the C/C programming language. It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler. Dev-C can also be used in combination with Cygwin or any other GCC based compiler. Features are: - Support GCC-based compilers - Integrated debugging (using GDB). Write C program to print day of week name using switch case HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) Rs. 31,490 Introduction. Question: Using Dev In C Language #include #include Using Namespace Std; // This Program Will Input American Money And Convert It To Foreign Currency // PLACE YOUR NAME HERE // Prototypes Of The Functions Void ConvertMulti(float Dollars, Float& Euros, Float& Pesos); Void ConvertMulti(float Dollars, Float& Euros, Float& Pesos, Float& Yen); Float ConvertToYen(float.

Dev C Using Namespace Std Renew Jungle Key

1. Go to the “File” menu and select “New”, “Project”,Choose “Empty Project” and make sure “C++ project” is selected.Give your project suitable name and click on “Ok”.

2. Go to “Project” menu and choose “Project Options”.
3. Go to the “Parameters” tab.
4. In the “Linker” field, enter the following text:

-lbgi
-lgdi32
-lcomdlg32
-luuid
-loleaut32
-lole32

5.Click “Ok” to save settings.
Now you’ve done with the configuration for WinBGIm.Please make sure you’ve donw this step properly otherwise compiler will flag error.

Testing & Debugging :

Now let’s write a small program to test how WinBGIm works.Here is the source code for the program.Type it down,save it with .cpp extension and compile and run to see the results.

#include <graphics.h>

#include <iostream>

using namespace std;

int main()
{
initwindow(800,600);
circle(200,300,600);
while(!kbhit());
closegraph();
return 0;
}

OUTPUT :

Definition

A namespace (sometimes also called a name scope) is an abstract container or environment created to hold a logical grouping of unique identifiers or symbols (i.e., names). An identifier defined in a namespace is associated only with that namespace. The same identifier can be independently defined in multiple namespaces. That is, the meaning associated with an identifier defined in one namespace may or may not have the same meaning as the same identifier defined in another namespace. Languages that support namespaces specify the rules that determine to which namespace an identifier (not its definition) belongs.

The functionality of namespaces is especially useful in the case that there is a possibility that a global object or function uses the same identifier as another one, causing redefinition errors.

Namespace Syntax

Adding Namespace:

Usage Namespace Member:

Namespace Example Program

Sample Output


C++ Class Example Programs

Namespace

Dev C Using Namespace Std Renew Jungle Guide

Read More Articles