so whenever i tried to compile it give me error 2816
ive never used dev c++ although i have used netbeans and i had to change control panel env options and put C:cygwinbin
but now im using mingw cuz dev c++ came with it.
ive never used dev c++ although i have used netbeans and i had to change control panel env options and put C:cygwinbin
but now im using mingw cuz dev c++ came with it.
- Problem with DEV C. Whenever i open Dev c for programming. This thread is locked. You can follow the question or vote as helpful, but you cannot.
- Auto keyword not working in Dev c. Ask Question. This was a code I wrote to see how auto keyword works but it didn't got compiled in Dev C and gave the following warning: Warning C11 auto only available with -std=c11 or -std=gnu11 How to overcome this.
- Hi, i have a problem with the dev c program When i compile and run my program, the run window flashes for less then a s= econd and shuts off Other people are saying that they dont have such a problem is this supposed to be like this? The code i ran:=20 #include int main printf.
so this is the compiler log i get;
Install Dev-C in Windows 10 and Issues of Program not Responding. Now Problem Fixing with Dev-C IDE There might be two types of Problem you may face.
Execution terminated
any ideas? Thanks!
Edited by centenond: misspelled
- 2 Contributors
- forum 4 Replies
- 665 Views
- 2 Days Discussion Span
- commentLatest Postby centenondLatest Post
Recommended Answers
seems like im the only one with the error 2816
Dev C++ 5.11
Or you are one of the few people still using Dev-C++, which hasn't been updated in many years. If you want to use MinGW then Code::Blocks is a lot better IDE than Dev-C++.
Jump to PostAll 4 Replies
Ancient Dragon5,243
Problem Dev C Full
'>here is a related thread. If you google for 'error 2816' you will find similar related articles.
Here is the scenario: A local bookstore buys books at a certain cost from a wholesaler. The store then marks up the price by a certain percentage and adds sales tax to it. The marked up price plus the sales tax is what the customer will pay for a given book. Write a program to get from the user the cost of the book, the mark up percentage, and the sales tax rate. Then the program should calculate the mark up amount, the sales tax and the price the customer will pay.
Cost:$50.00 with mark up percentage 10% and sales tax rate 5%
Cost: $25.00 with mark up percentage 5% and sales tax rate 10%
Cost:$100.00 with mark up percentage rate 8% and sales tax rate 3%.
Here is what I did. Please let me know what I did wrong.
// Rebecca Carolina Katz
//Filename: lab3.cpp
//Lab 3
//calculating the markup amount, the sales tax, and price the customer has to pay for books.
include <iostream>
using namespace std;
int main ()
{
// variable declaration
int num1;
int num2;
int num3;
int markupPercent;
int Salestax;
int average;
cout <<'Rebecca Carolina Katz, Lab #3' << endl;
// Get all values for input variables
num1=50.00;
markupPercent=num1*0.10
salesTax=num1*0.05
average=num1*0.10*0.05
cout << num1*0.10*0.05<< endl;
num2=25.00
markupPercent=num2*0.05
salesTax=num2*.10
average=num2*0.05*0.10
cout << average=num2*0.05*0.10<< endl;
num3=100.00
markupPercent=num3*0.08
salesTax=num3*0.03
average=num3*0.08*0.03;
cout << average=num3*0.08*0.03
return 0;
}
Cost:$50.00 with mark up percentage 10% and sales tax rate 5%
Cost: $25.00 with mark up percentage 5% and sales tax rate 10%
Cost:$100.00 with mark up percentage rate 8% and sales tax rate 3%.
Here is what I did. Please let me know what I did wrong.
// Rebecca Carolina Katz
//Filename: lab3.cpp
//Lab 3
//calculating the markup amount, the sales tax, and price the customer has to pay for books.
include <iostream>
using namespace std;
int main ()
{
// variable declaration
int num1;
int num2;
int num3;
int markupPercent;
int Salestax;
int average;
cout <<'Rebecca Carolina Katz, Lab #3' << endl;
// Get all values for input variables
num1=50.00;
markupPercent=num1*0.10
salesTax=num1*0.05
average=num1*0.10*0.05
cout << num1*0.10*0.05<< endl;
num2=25.00
markupPercent=num2*0.05
salesTax=num2*.10
average=num2*0.05*0.10
cout << average=num2*0.05*0.10<< endl;
num3=100.00
markupPercent=num3*0.08
salesTax=num3*0.03
average=num3*0.08*0.03;
cout << average=num3*0.08*0.03
return 0;
}