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

Statement missing ; error in C++

I am using turbo C++
WHILE MAKING A PROGRAM TO TRANSPOSE OF A MATRIX I GOT THE ERROR STATEMENT MISSING;
INLINE 15 WHICH IS THE FOR STATEMNT
Expand|Select|Wrap|Line Numbers
  1. cout<<"\n The matrix is"
  2.  for(i=0; i<m; ++i) //****** error in this line
HERE IS THE PROGRAM

Expand|Select|Wrap|Line Numbers
  1. #include<iostream.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5.  clrscr();
  6.  int i, j, m, n, A[5][5], B[5][5];
  7.  cout<<"Enter the rows and coloums";
  8.  cin>>m>>n;
  9.  cout<<"Enter the "<<m*n<<" numbers";
  10.  for(i=0; i<m; ++i)
  11.  for(j=0; j<n; ++j)
  12.  cin>>A[i][j];
  13.  cout<<"\n The matrix is"
  14.  for(i=0; i<m; ++i)
  15.  {
  16.   cout<<"\n";
  17.   for(j=0; j<n; ++j)
  18.   cout<< A[i][j]<<" " ;
  19.  
  20.  }
  21.  getch();
  22. }
Dec 26 '16 #1
1 3894
weaknessforcats
9,208 Expert Mod 8TB
Expand|Select|Wrap|Line Numbers
  1. cout<<"\n The matrix is"   << No semi-colon here.<<-----!!
  2.  for(i=0; i<m; ++i)
  3.  {
  4.  
Dec 27 '16 #2

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

Similar topics

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...
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...
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{ ...
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
1
by: NielleC21 | last post by:
i put all the required code for the program but it just won't work -_- statement missing with the main but you can't put ";" next to main() what do i do? :( I really need this :( main() {...
1
by: faraz baloch | last post by:
hey i have formatted the whole program but the 2 errors are coming one is if statement missing and 2nd is if statement misplaced.....in last in have written just else but misplaced problem is coming...
2
by: Hafsa khan | last post by:
#include<stdio.h> #include<conio.h> void main () { int n,a; clrscr(); n=1; do { do
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.