473,386 Members | 1,753 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,386 software developers and data experts.

'Statement missing' error in C++

While I was making a programme in C++ for Calculating area of the square a compiling error was found as - statement missing.
Jan 14 '13 #1
4 26161
weaknessforcats
9,208 Expert Mod 8TB
Check all your braces are matched.
Check for missing semi-colon.
If you use a struct check it ends with a semi-colon.

BTW: It helps if you post your code.
Jan 14 '13 #2
dear varad,
if u post ur program it will easy for us to find error.
Jan 15 '13 #3
its the program to calucalte area of square

Expand|Select|Wrap|Line Numbers
  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. void main()
  5. {
  6.        int side,area;
  7.        printf("Enter side of Square");
  8.        scanf("%d",&side");
  9.        area=side*side;
  10.        printf(" \n Area of Square is : %d sq units",area);
  11.        getch();
  12. }
  13.  
Jan 24 '13 #4
whodgson
542 512MB
@swapnali143
The OP said she/he was writing code in C++ so its not particularly helpful to provide complete C code for the task.
(in fact this forum frowns on the practice of providing complete coding solutions because of adverse learning benefit to the OP)
Also a statement by definition ends with a semicolon (;) so as weaknessforcats suggests its absence is one likely cause.
Feb 1 '13 #5

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

Similar topics

1
by: Phil Powell | last post by:
Here is the function ArraySearch: '-------------------------------------------------------------------------------------- 'ArraySearch will return an integer value indicating the first...
4
by: kathy | last post by:
Working in a form, I have an Iif statement where if a date is not filled in, another field will show as a blank. If the date IS filled in, the 2nd field will show its actual value. The following...
3
by: NeilH | last post by:
Hello All I was wondering if someone could offer a rather inexperienced person some advice. Im trying to get my asp page to look at an access data I created the following query in access...
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...
4
by: marklawford | last post by:
Hi guys, I'm getting the following error message when trying to run a MERGE statement I'm putting together. The syntax looks right to me But i must be missing something. The "srce" table...
2
by: Scott Emick | last post by:
I am still having issues with getting Root Element Missing instead of the actual error that the webservice call is supposed to be returning. I'm using VB .Net 2003. Has anyone else been able to...
6
by: db2_d_b_a | last post by:
Hello All, I have a rather strange issue here connecting to the database on an ESE environment. A little background on the issue. The cluster is an 8 server, 64 partition system. So when I try...
11
by: honguin | last post by:
Hi, With the following code, I have created a web request to a url which I am making a HTML POST with the html page request.htm, even though it makes a HTML POST, the StreamReader produces a XML...
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 ;
1
by: Annie Soomro | last post by:
Getting "missing return statement" error for following code: import java.sql.*; public class DatabaseManager{ public static int add(String user,String password)throws Exception{ ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.