>m>>n; for(i=0;i<m;i+" name="description">

find error inc++

find error inc++

include
include

int main()
{
      int a[10],b[10],i,j,m,n;
      cout<<"Enter size of matrix";
      cin>>m>>n;

for(i=0;i<m;i++)//Initializing matrix a for(j=0;j<n;j++) { cout<<"a["<<i<<"]["<<j<<"]="; cin>>a[i][j]; } for(i=0;i<m;i++)//Transposing matrix for(j=0;j<n;j++) { b[i][j]=a[j][i]; } for(i=0;i<=m;i++)//printing matrix b { cout<<endl; for(j=0;j<=n;j++) { cout<<"\t"<<b[i][j]; } } getch(); return 0; }
View Answers

August 27, 2011 at 11:18 AM

    #include<iostream.h>
    #include<conio.h>
    void main()
    {
    clrscr();
    int a[10][10],m,n,i,j;
    cout<<"Enter number of rows: ";
    cin>>m;
    cout<<"Enter number of coloumns: ";
   cin>>n;
   if(m!=n)
   {
   cout<<"Matrix not square so Transpose not possible!";
   }
   else
   {
   cout<<endl<<"Enter elements of matrix: "<<endl;
   for(i=0;i<m;i++)
   {
  for(j=0;j<n;j++)
   {
  cout<<"Enter element a"<<i+1<<j+1<<": ";
   cin>>a[i][j];
   }
   }
   cout<<endl<<"Matrix: "<<endl<<endl;
   for(i=0;i<m;i++)
   {
   for(j=0;j<n;j++)
   {
   cout<<a[i][j]<<" ";
   }
   cout<<endl<<endl;
   }
  cout<<endl<<"Matrix Transpose: "<<endl<<endl;
   for(i=0;i<m;i++)
   {
   for(j=0;j<n;j++)
   {
  cout<<a[j][i]<<" ";
   }
   cout<<endl<<endl;
   }
   }
  getch();
   }









Related Tutorials/Questions & Answers:
find eror inc++
find error inc++   include include int main() { int a[10],b[10],i,j,m,n; cout<<"Enter size of matrix"; cin>>m>>n; for(i=0;i<m;i++)//Initializing matrix a for(j=0;j<n;j
Some error find whats the problem
Some error find whats the problem  import java.io.*; public class Replace { public void main()throwsIoException { InputStreamReader = new InputStreamReader(System.in); BufferReader br=new BufferReader(z); System.out.println
Advertisements
Error 500: WSWS3142E: Error: Could not find Web services engine. - WebSevices
Error Could not find Web services engine   Hi...: faultNode: faultDetail: {}:return code: 500 Error 500: WSWS3142E: Error: Could not find Web services engine. { http://xml.apache.org/axis
Error: Cannot find module 'jasmine-core'
Error: Cannot find module 'jasmine-core'  Hi, I am trying to make...: karma start Its throwing following error: Error: Cannot find module 'jasmine...; ^ Error: Cannot find module 'jasmine-core' at Function.Module.
Error 500: WSWS3142E: Error: Could not find Web services engine. - WebSevices
Error 500 WSWS3142E Error Could not find Web services engine  Hi all, I am getting the following error.Error 500: WSWS3142E: Error: Could not find Web services engine. Please Help. Thanks in Advance
could not find the main class programm will exit - error
could not find the main class programm will exit - error  when i tried to run the below mentioned programmed it gives a error states - could not find main class programm will exit. class Car { String name: String Color
JSP cannot find symbol error - JSP-Servlet
JSP cannot find symbol error  Suppose-- we created 'a.jsp' in which we make a database connection... how to retrieve 'new' here... If I want to access the 'new' string within the form what should i do???  
i cant find any compile time error but there is runtime error.
i cant find any compile time error but there is runtime error.  ...){ System.out.println("Error:connection not created"); } ADS_TO_REPLACE_1...){ System.out.println("Error is:" + s.getMessage()); } } catch (Exception e
Java error cannot find symbol
“cannot find symbol”. The reason behind cannot find symbol error... the java error cannot find symbol. In this example a class name 'cannot find... “Java error cannot find symbol”.ADS_TO_REPLACE_2
Java error cannot find symbol
Java error cannot find symbol       The java error cannot find symbol... error cannot made symbol. For this we have a class name 'cannot find symbol
Error : javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
Error : javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope  I am getting following error in my struts-jsp proram for adding data to the database. 500 Internal Server Error
cannot find java.exe error while opening netbean5.5 - IDE Questions
cannot find java.exe error while opening netbean5.5  HI, 1)i am working netbean5.5 tool.I got the error of cannot find c:\programfiles\java... this problem? 2)while i am installing nokiamobiletoolkit, I got the error name
Error !!! Can not find the tag library descriptor for "/WEB-INF/tlds/template.tld"
Error !!! Can not find the tag library descriptor for "/WEB-INF/tlds/template.tld"   I am not able to fix this problem. I tried different jar files, but no luck. Is there anything else apart from adding jar files that i can try
How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?
How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?  run: java.lang.NoClassDefFoundError: filecopy...) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main
Error 500-Server are not find the jar file in the program of upload the file - JSP-Servlet
Error 500-Server are not find the jar file in the program of upload the file  Hello Sir, your response: Hi friend, The 500 Internal Server Error is a "server-side" error, meaning the problem is not with your PC or Internet
plz check my codings are correct or not...There is an error..i cant find it..
plz check my codings are correct or not...There is an error..i cant find it..  import java.util.Scanner; public class Student { private String indexNo; private String gender; private char initial; private int mark1
Java error cannot find symbol
Java error cannot find symbol In this section you will learn about "cannot find symbol" in java. Java cannot find symbol is a type of error occurs... the variable in use its trying to refer, then it will give a error cannot find symbol
this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??
this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??  import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class add1 extends MIDlet implements
ModuleNotFoundError: No module named 'django-inc'
;django-inc' error? Thanks   Hi, In your python environment you...ModuleNotFoundError: No module named 'django-inc'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'django-inc'
;django-inc' error? Thanks   Hi, In your python environment you...ModuleNotFoundError: No module named 'django-inc'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
error
error  while iam compiling iam getting expected error
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
error
"+it); } } this is my program i am getting an error saying cannot find symbol class stringADS
error
error  java.lang.unsupportedclassversionerror:bad major version at offset 6 how to solve this????   Hi, Please check the version of framework used and also the JDK version.ADS_TO_REPLACE_1 This type error also comes
error
error
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5
error
error  whats the error.............. import java.util.Scanner; public class g { public static void main(String[] args) { Scanner s=new Scanner(System.in); int d,x,y; System.out.println("Enter the first number
ModuleNotFoundError: No module named 'lat-month-inc'
'lat-month-inc' error? Thanks   Hi, In your python...;lat-month-inc' error will be solved. Thanks...ModuleNotFoundError: No module named 'lat-month-inc'  Hi, My
ModuleNotFoundError: No module named 'lat-month-inc'
'lat-month-inc' error? Thanks   Hi, In your python...;lat-month-inc' error will be solved. Thanks...ModuleNotFoundError: No module named 'lat-month-inc'  Hi, My
Artifacts of com.nulab-inc
List of Artifacts of com.nulab-inc maven depenency
Version of com.nulab-inc>scala-oauth2-core_2.11 dependency
Version of com.nulab-inc>play2-oauth2-provider_2.10 dependency
Version of com.nulab-inc>scala-oauth2-core_2.10 dependency
Version of com.nulab-inc>scala-oauth2-provider_2.10 dependency
Version of com.nulab-inc>backlog4j dependency
Version of com.nulab-inc>play2-oauth2-provider_2.11 dependency
Version of com.nulab-inc>scala-oauth2-core_2.12 dependency
Version of com.nulab-inc>scala-oauth2-provider_2.11 dependency
Version of com.nulab-inc>zxcvbn dependency

Ads