473,396 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

statement missing.. please help

#include<stdio.h>
#include<conio.h>
#define p printf
#define s scanf
main ()
{
p("Calculator");
p("1-add");
p("2-subtract");
p("3-multiply");
p("4-devide");
p("Enter Operation");
s("%d",&Operation);
switch(Operation)
{
case1:
p("1st#:");
s("%d",num1);
p("2nd#:");
s(%d",&num2);
formula num3=num1+num2
p("sum is %d"num3);
case2:
p("1st#:");
s("%d",num1);
p("2nd#:");
s(%d",&num2);
formula num3=num1-num2
p("difference is %d"num3);
case3:
p("1st#:");
s("%d",num1);
p("2nd#:");
s(%d",&num2);
formula num3=num1*num2
p("product is %d"num3);
case4:
p("1st#:");
s("%d",num1);
p("2nd#:");
s(%d",&num2);
formula num3=num1/num2
p("quotient is %d"num3);
getch
}
Aug 7 '14 #1
1 1190
weaknessforcats
9,208 Expert Mod 8TB
There are many coding errors here. The big one is that you are using variables without ever creatinf the variable. There are various typos.

I suggest you compile this again and fix only the first error. The first error can cause a ton of other errors which go away when the first error is fixed.

Repeat this process fixing only the first error until all the errors are gone.

The word formula is used and I have no idea what you intended. You might post again and explain that.
Aug 7 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Ciprian Ilie | last post by:
Hi there, If you look at the code below, you will see that I am using a template in order to display some photos on my website. I also have "previous" and "next" buttons/link which increment the...
2
by: Douglas | last post by:
I was trying to look up Access Help for the GetSetting, SaveSetting commands to implement in my DB code when i press F1, up pops the Microsoft Access Help, if i click Index and type in Get, all...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
4
by: crs2003c | last post by:
For some time now, other teachers have had this problem. Visual C++ 6.0 was once installed on a WIN98 platform and apstring.h and graphic.h worked. However, since moving to WIN2000 and WINXP,...
4
by: bill salkin | last post by:
I have several lengthly VB.NET Enums that I'd like to store in seperate files (not in the body of my main routine.) I hoped that VB.NET had an "Include" statement (like C) who presence indicates...
6
by: Twobridge | last post by:
I hope someone can help me out with my problem. I have found a sql statement that basically pulls all bills filed within a certain time period and the payments made on those bills with in the...
2
by: =?Utf-8?B?ZGF2ZQ==?= | last post by:
I installed 3.0 extensions for vs.net 2005 and the wcf sdk and I am missing 'add service reference' from the context menu while trying to add a reference (to wcf). Any ideas on what is going on?...
1
by: dianaroslan | last post by:
have an error in this coding. the error is statement missing at line (78,11) thank you. #include <iostream> #include <conio> const int listSize=2; struct menuItemType { char menuItem ;
4
by: Varad Mahajan | last post by:
While I was making a programme in C++ for Calculating area of the square a compiling error was found as - statement missing.
4
by: sandytayag021 | last post by:
meaning of statement missing in turbo c program
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.