A little calculator written in BCX basic and then translated to C code and modified to compile with Dev C++ (GCC/G++). Once you find your way past the standard GUI gibberish you can figure it out.
For those who need some hand holding with the Dev C++ IDE:
In the IDE go to FILE, then NEW, then Project, select Windows Application, give it a name like Calc1 then click OK. A filesave dialog box comes up, create a new folder, might as well call it Calc1, open it and save Calc1.dev there. The DevCpp IDE comes up with a bare bones template, select and delete that and cut and paste this code into the empty editor page. Now compile and run.

  1. Dev C++ Exe Cannot Calculate Output Formula
  2. Dev C++ Exe Cannot Calculate Output Windows 10
  3. Dev C++ Exe Cannot Calculate Output File
3,976 Views

Having problem with compiler of Dev-C 4.9.9.2 in Windows 8. How to remove g.exe has stopped working problem? Hey i cannot use the quotes button or the right shift button in turbo c please help me. Reply Delete. Unknown 4 March 2015 at 23:20. In the Configure your new project dialog box, select the Project name edit box, name your new project CalculatorTutorial, then choose Create. An empty C Windows console application gets created. Console applications use a Windows console window to display output and accept user input. C Program to Make a Simple Calculator to Add, Subtract, Multiply or Divide Using switch.case Example to create a simple calculator to add, subtract, multiply and divide. OnlineGDB is online IDE with C compiler. Quick and easy way to compiler c program online. It supports g compiler for c. Aug 04, 2014  Apparently it's not a Dev-C issue, I saw similar errors being posted by MinGW users in general. I didn't have the problem with 32-bit TDM-GCC. If you would like to refer to this comment somewhere else in this project, copy and paste the following link. Jun 02, 2014  yeah that's one of the reasons, you may create a new project, copy-paste the code into new project and build it. If all goes OK then cool you're good to go if not come here again!

Scientist

Narue,
see what you did?! This was my first snippet posted on DaniWeb because you wanted to know what BCX could do!

vegaseat1,735

A note on header files, the good old workhorse for C++ is the iostream header file, but beware. The one that comes with DevCpp, and likely others too, is a monster. It itself includes other headers, which in turn include more headers and so on. If you follow the internal includes with an editor you find stdio.h and math.h are there too! The result seems to be a rather bloated executable file. So sometimes it is best and cut the middle-man, here iostream, and get a cute and tiny exe file. Just comment out the line
#define CPP_HEADER

Found some time and was able to replace the iostream header. Now this baby has only a 16k footprint, like a little calculator should have.

Gary King37

[Linker error] undefined reference to `GetStockObject@4'

I get a bunch of errors when trying to Compile & Run this.

Dev C++ Exe Cannot Calculate Output

What compiler are you using, and are you compiling this as a Windows Application?

TheEliteOne

I tried to compile that source code as a .cpp on the DevC++ compiler and I got a few errors, here is a picture of the errors that I got:

Please help, I would love to have this source code as an example, I am just now getting into GUI C++ Programming.

Dev C++ Exe Cannot Calculate Output Formula

Thanks

EDIT:

Sorry for posting in a thread that hasn't had a post in 6 years lol... didn't see it until I posted, but I hope that I could get an answer before a staff member 'fixes' this (As in closes it or deleted my post) if I can, thanks.

Edited by TheEliteOne: n/a

Dev C++ Exe Cannot Calculate Output Windows 10

plz i need a scinetific calculator in this code urgently

rproffitt1,693

To saqib_3. If you need something urgently, why bury it in a 12 year old discussion?

Heat Up 3 comes as a VST plugin for Windows and a VST and Audio Unit for Mac. Also included is a standalone app for both Windows and Mac so HeatUp 3 can be played without a DAW (Digital Audio Workstation). Heat Up 3 comes as a VST plugin for Windows and a VST and Audio Unit for Mac. Initial Audio Heat Up 3 ESSENTIALS BUNDLE WiN X64 VST Size: 25 GB. Initial Audio proudly presents Heat Up 3. A major update to our hugely successful Heat Up 2 virtual instrument loved by music producers across the globe! The focus of Heat Up 3 is even better sound quality and much more expression to really bring out the best of each instrument. Initial Audio Heat Up 3 v3.0.5 Crack Free Download r2r Latest Version for Windows. It is full offline installer standalone setup of Initial Audio Heat Up 3 v3.0.5 Crack mac for 32/64. Initial Audio Heat Up 3 v3.0.5 Crack Free Download r2r Latest Version for MAC OS. Heat up 3 vst free download crack.

Dev C++ Exe Cannot Calculate Output File

Dev-C++ v 4.9.9.2 IDE
When I compile and run my program as a console project, a window flashes very briefly on the screen and disappears. The compile log says compilation was successful and execution terminated.

How to I keep the window (my output window?) from disappearing?

  • 7 Contributors
  • forum 13 Replies
  • 3,607 Views
  • 8 Years Discussion Span
  • commentLatest Postby Mohit_12Latest Post

Ancient Dragon5,243

You have to add a line just before the end of main() to stop the program from closing. Most people call getch() or c++ cin.get(), which is just waiting for keyboard entry.